index.constants.js
935 Bytes
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
/* global window:true */
(function() {
'use strict';
angular
.module('dialoga')
.constant('API', {
token: null,
hostDev: '',
hostHom: 'http://hom.dialoga.gov.br',
hostProd: 'http://login.dialoga.gov.br',
articleId: {
home: '103358',
about: '108073',
terms: '107880'
},
communityId: '19195'
})
.constant('AUTH_EVENTS', {
loginSuccess: 'auth-login-success',
loginFailed: 'auth-login-failed',
logoutSuccess: 'auth-logout-success',
sessionTimeout: 'auth-session-timeout',
notAuthenticated: 'auth-not-authenticated',
notAuthorized: 'auth-not-authorized'
})
.constant('USER_ROLES', {
all: '*',
admin: 'admin',
restrict: 'restrict',
visitor: 'visitor'
})
.constant('Modernizr', window.Modernizr)
.constant('jQuery', window.jQuery)
// .constant('key', value)
;
})();