This repository was archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathConst.js
More file actions
49 lines (46 loc) · 1.34 KB
/
Const.js
File metadata and controls
49 lines (46 loc) · 1.34 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
'use strict';
const SERVICES = {
MESSAGING: 'messaging',
AUTHENTICATION: 'authentication',
DOMAIN_NAMES: 'domainNames'
};
const ENDPOINTS = {
LOGIN: 'login',
REFRESH_SESSION: 'refreshSession'
};
module.exports = {
SERVICES,
ENDPOINTS,
AUTH_SERVICE_CONTEXT: {
LOGIN: `${SERVICES.AUTHENTICATION}.${ENDPOINTS.LOGIN}`,
REFRESH_SESSION: `${SERVICES.AUTHENTICATION}.${ENDPOINTS.REFRESH_SESSION}`
},
EVENTS: {
CONNECTED: 'connected',
CLOSED: 'closed',
NOTIFICATION: 'notification'
},
KINDS: {
REQUEST: 'req',
RESPONSE: 'resp',
NOTIFICATION: 'notification'
},
REQUESTS: [
'.GetClock',
'.ams.cm.AgentRequestConversation',
'.ams.aam.SubscribeExConversations',
'.ams.aam.UnsubscribeExConversations',
'.ams.cm.UpdateConversationField',
'.ams.ms.PublishEvent',
'.ams.routing.UpdateRingState',
'.ams.routing.SubscribeRoutingTasks',
'.ams.routing.UpdateRoutingTaskSubscription',
'.ams.userprofile.GetUserProfile',
'.ams.routing.SetAgentState',
'.ams.routing.SubscribeAgentsState',
'ms.SubscribeMessagingEvents',
'.ams.ms.GenerateURLForDownloadFile',
'.ams.ms.GenerateURLForUploadFile',
'.ams.ms.token.GenerateDownloadToken'
]
};