index.constants.js
1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* global window:true */
(function() {
'use strict';
angular
.module('dialoga')
.constant('PATH', {
host: 'http://hom.dialoga.gov.br',
image: 'http://hom.login.dialoga.gov.br'
})
.constant('APP', {
facebook_app_id: '1',
google_app_id: '4',
recaptcha_key: '6LeDTRUTAAAAAA1VMOmIa2oqqWaPfXsv7J90r_49',
})
.constant('API', {
token: null,
articleId: {
home: '103358',
about: '108073',
acessibility: '117319',
terms: '107880',
faq: '117322'
},
communityId: '19195',
})
.constant('AUTH_EVENTS', {
loginSuccess: 'auth-login-success',
loginFailed: 'auth-login-failed',
registerSuccess: 'auth-register-success',
registerFailed: 'auth-register-failed',
activateSuccess: 'auth-activate-success',
activateFailed: 'auth-activate-failed',
resendConfirmationSuccess: 'auth-resend-confirmation-success',
resendConfirmationFailed: 'auth-resend-confirmation-failed',
changePasswordSuccess: 'auth-changePassword-success',
changePasswordFailed: 'auth-changePassword-failed',
forgotPassowrdSuccess: 'auth-forgotPassowrd-success',
forgotPassowrdFailed: 'auth-forgotPassowrd-failed',
sessionTimeout: 'auth-session-timeout',
notAuthenticated: 'auth-not-authenticated',
notAuthorized: 'auth-not-authorized'
})
.constant('VOTE_STATUS', {
SUCCESS: 1,
ERROR: 2,
LOADING: 4,
LOADED: 8
})
.constant('VOTE_OPTIONS', {
UP: 1,
DOWN: -1,
SKIP: 0
})
.constant('PROPOSAL_STATUS', {
SUCCESS: 1,
ERROR: 2,
LOADING: 4,
LOADED: 8,
SENDING: 16,
SENT: 32
})
.constant('USER_ROLES', {
all: '*',
admin: 'admin',
restrict: 'restrict',
visitor: 'visitor'
})
.constant('Modernizr', window.Modernizr)
.constant('jQuery', window.jQuery)
.constant('outdatedBrowser', window.outdatedBrowser)
;
})();