@webex/contact-center 0.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/README.md +81 -0
  2. package/__mocks__/workerMock.js +15 -0
  3. package/babel.config.js +15 -0
  4. package/dist/cc.js +1416 -0
  5. package/dist/cc.js.map +1 -0
  6. package/dist/config.js +72 -0
  7. package/dist/config.js.map +1 -0
  8. package/dist/constants.js +58 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/index.js +142 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/logger-proxy.js +115 -0
  13. package/dist/logger-proxy.js.map +1 -0
  14. package/dist/metrics/MetricsManager.js +474 -0
  15. package/dist/metrics/MetricsManager.js.map +1 -0
  16. package/dist/metrics/behavioral-events.js +322 -0
  17. package/dist/metrics/behavioral-events.js.map +1 -0
  18. package/dist/metrics/constants.js +134 -0
  19. package/dist/metrics/constants.js.map +1 -0
  20. package/dist/services/WebCallingService.js +323 -0
  21. package/dist/services/WebCallingService.js.map +1 -0
  22. package/dist/services/agent/index.js +177 -0
  23. package/dist/services/agent/index.js.map +1 -0
  24. package/dist/services/agent/types.js +137 -0
  25. package/dist/services/agent/types.js.map +1 -0
  26. package/dist/services/config/Util.js +203 -0
  27. package/dist/services/config/Util.js.map +1 -0
  28. package/dist/services/config/constants.js +221 -0
  29. package/dist/services/config/constants.js.map +1 -0
  30. package/dist/services/config/index.js +607 -0
  31. package/dist/services/config/index.js.map +1 -0
  32. package/dist/services/config/types.js +334 -0
  33. package/dist/services/config/types.js.map +1 -0
  34. package/dist/services/constants.js +117 -0
  35. package/dist/services/constants.js.map +1 -0
  36. package/dist/services/core/Err.js +43 -0
  37. package/dist/services/core/Err.js.map +1 -0
  38. package/dist/services/core/GlobalTypes.js +6 -0
  39. package/dist/services/core/GlobalTypes.js.map +1 -0
  40. package/dist/services/core/Utils.js +126 -0
  41. package/dist/services/core/Utils.js.map +1 -0
  42. package/dist/services/core/WebexRequest.js +96 -0
  43. package/dist/services/core/WebexRequest.js.map +1 -0
  44. package/dist/services/core/aqm-reqs.js +246 -0
  45. package/dist/services/core/aqm-reqs.js.map +1 -0
  46. package/dist/services/core/constants.js +109 -0
  47. package/dist/services/core/constants.js.map +1 -0
  48. package/dist/services/core/types.js +6 -0
  49. package/dist/services/core/types.js.map +1 -0
  50. package/dist/services/core/websocket/WebSocketManager.js +187 -0
  51. package/dist/services/core/websocket/WebSocketManager.js.map +1 -0
  52. package/dist/services/core/websocket/connection-service.js +111 -0
  53. package/dist/services/core/websocket/connection-service.js.map +1 -0
  54. package/dist/services/core/websocket/keepalive.worker.js +94 -0
  55. package/dist/services/core/websocket/keepalive.worker.js.map +1 -0
  56. package/dist/services/core/websocket/types.js +6 -0
  57. package/dist/services/core/websocket/types.js.map +1 -0
  58. package/dist/services/index.js +78 -0
  59. package/dist/services/index.js.map +1 -0
  60. package/dist/services/task/AutoWrapup.js +88 -0
  61. package/dist/services/task/AutoWrapup.js.map +1 -0
  62. package/dist/services/task/TaskManager.js +369 -0
  63. package/dist/services/task/TaskManager.js.map +1 -0
  64. package/dist/services/task/constants.js +58 -0
  65. package/dist/services/task/constants.js.map +1 -0
  66. package/dist/services/task/contact.js +464 -0
  67. package/dist/services/task/contact.js.map +1 -0
  68. package/dist/services/task/dialer.js +60 -0
  69. package/dist/services/task/dialer.js.map +1 -0
  70. package/dist/services/task/index.js +1188 -0
  71. package/dist/services/task/index.js.map +1 -0
  72. package/dist/services/task/types.js +214 -0
  73. package/dist/services/task/types.js.map +1 -0
  74. package/dist/types/cc.d.ts +676 -0
  75. package/dist/types/config.d.ts +66 -0
  76. package/dist/types/constants.d.ts +45 -0
  77. package/dist/types/index.d.ts +178 -0
  78. package/dist/types/logger-proxy.d.ts +71 -0
  79. package/dist/types/metrics/MetricsManager.d.ts +223 -0
  80. package/dist/types/metrics/behavioral-events.d.ts +29 -0
  81. package/dist/types/metrics/constants.d.ts +127 -0
  82. package/dist/types/services/WebCallingService.d.ts +1 -0
  83. package/dist/types/services/agent/index.d.ts +46 -0
  84. package/dist/types/services/agent/types.d.ts +413 -0
  85. package/dist/types/services/config/Util.d.ts +19 -0
  86. package/dist/types/services/config/constants.d.ts +203 -0
  87. package/dist/types/services/config/index.d.ts +171 -0
  88. package/dist/types/services/config/types.d.ts +1113 -0
  89. package/dist/types/services/constants.d.ts +97 -0
  90. package/dist/types/services/core/Err.d.ts +119 -0
  91. package/dist/types/services/core/GlobalTypes.d.ts +33 -0
  92. package/dist/types/services/core/Utils.d.ts +36 -0
  93. package/dist/types/services/core/WebexRequest.d.ts +22 -0
  94. package/dist/types/services/core/aqm-reqs.d.ts +16 -0
  95. package/dist/types/services/core/constants.d.ts +85 -0
  96. package/dist/types/services/core/types.d.ts +47 -0
  97. package/dist/types/services/core/websocket/WebSocketManager.d.ts +34 -0
  98. package/dist/types/services/core/websocket/connection-service.d.ts +27 -0
  99. package/dist/types/services/core/websocket/keepalive.worker.d.ts +2 -0
  100. package/dist/types/services/core/websocket/types.d.ts +37 -0
  101. package/dist/types/services/index.d.ts +52 -0
  102. package/dist/types/services/task/AutoWrapup.d.ts +40 -0
  103. package/dist/types/services/task/TaskManager.d.ts +1 -0
  104. package/dist/types/services/task/constants.d.ts +46 -0
  105. package/dist/types/services/task/contact.d.ts +59 -0
  106. package/dist/types/services/task/dialer.d.ts +28 -0
  107. package/dist/types/services/task/index.d.ts +569 -0
  108. package/dist/types/services/task/types.d.ts +1041 -0
  109. package/dist/types/types.d.ts +452 -0
  110. package/dist/types/webex-config.d.ts +53 -0
  111. package/dist/types/webex.d.ts +7 -0
  112. package/dist/types.js +292 -0
  113. package/dist/types.js.map +1 -0
  114. package/dist/webex-config.js +60 -0
  115. package/dist/webex-config.js.map +1 -0
  116. package/dist/webex.js +99 -0
  117. package/dist/webex.js.map +1 -0
  118. package/jest.config.js +45 -0
  119. package/package.json +83 -0
  120. package/src/cc.ts +1618 -0
  121. package/src/config.ts +65 -0
  122. package/src/constants.ts +51 -0
  123. package/src/index.ts +220 -0
  124. package/src/logger-proxy.ts +110 -0
  125. package/src/metrics/MetricsManager.ts +512 -0
  126. package/src/metrics/behavioral-events.ts +332 -0
  127. package/src/metrics/constants.ts +135 -0
  128. package/src/services/WebCallingService.ts +351 -0
  129. package/src/services/agent/index.ts +149 -0
  130. package/src/services/agent/types.ts +440 -0
  131. package/src/services/config/Util.ts +261 -0
  132. package/src/services/config/constants.ts +249 -0
  133. package/src/services/config/index.ts +743 -0
  134. package/src/services/config/types.ts +1117 -0
  135. package/src/services/constants.ts +111 -0
  136. package/src/services/core/Err.ts +126 -0
  137. package/src/services/core/GlobalTypes.ts +34 -0
  138. package/src/services/core/Utils.ts +132 -0
  139. package/src/services/core/WebexRequest.ts +103 -0
  140. package/src/services/core/aqm-reqs.ts +272 -0
  141. package/src/services/core/constants.ts +106 -0
  142. package/src/services/core/types.ts +48 -0
  143. package/src/services/core/websocket/WebSocketManager.ts +196 -0
  144. package/src/services/core/websocket/connection-service.ts +142 -0
  145. package/src/services/core/websocket/keepalive.worker.js +88 -0
  146. package/src/services/core/websocket/types.ts +40 -0
  147. package/src/services/index.ts +71 -0
  148. package/src/services/task/AutoWrapup.ts +86 -0
  149. package/src/services/task/TaskManager.ts +420 -0
  150. package/src/services/task/constants.ts +52 -0
  151. package/src/services/task/contact.ts +429 -0
  152. package/src/services/task/dialer.ts +52 -0
  153. package/src/services/task/index.ts +1375 -0
  154. package/src/services/task/types.ts +1113 -0
  155. package/src/types.ts +639 -0
  156. package/src/webex-config.ts +54 -0
  157. package/src/webex.js +96 -0
  158. package/test/unit/spec/cc.ts +1985 -0
  159. package/test/unit/spec/metrics/MetricsManager.ts +491 -0
  160. package/test/unit/spec/metrics/behavioral-events.ts +102 -0
  161. package/test/unit/spec/services/WebCallingService.ts +416 -0
  162. package/test/unit/spec/services/agent/index.ts +65 -0
  163. package/test/unit/spec/services/config/index.ts +1035 -0
  164. package/test/unit/spec/services/core/Utils.ts +279 -0
  165. package/test/unit/spec/services/core/WebexRequest.ts +144 -0
  166. package/test/unit/spec/services/core/aqm-reqs.ts +570 -0
  167. package/test/unit/spec/services/core/websocket/WebSocketManager.ts +378 -0
  168. package/test/unit/spec/services/core/websocket/connection-service.ts +178 -0
  169. package/test/unit/spec/services/task/TaskManager.ts +1351 -0
  170. package/test/unit/spec/services/task/contact.ts +204 -0
  171. package/test/unit/spec/services/task/dialer.ts +157 -0
  172. package/test/unit/spec/services/task/index.ts +1474 -0
  173. package/tsconfig.json +6 -0
  174. package/typedoc.json +37 -0
  175. package/typedoc.md +240 -0
  176. package/umd/contact-center.min.js +3 -0
  177. package/umd/contact-center.min.js.map +1 -0
@@ -0,0 +1,1117 @@
1
+ import * as Agent from '../agent/types';
2
+
3
+ /**
4
+ * Generic type for converting a const enum object into a union type of its values
5
+ * @internal
6
+ */
7
+ type Enum<T extends Record<string, unknown>> = T[keyof T];
8
+
9
+ /**
10
+ * Events emitted on task objects
11
+ * @enum {string}
12
+ * @private
13
+ * @ignore
14
+ */
15
+ export const CC_TASK_EVENTS = {
16
+ /** Event emitted when assigning contact to agent fails */
17
+ AGENT_CONTACT_ASSIGN_FAILED: 'AgentContactAssignFailed',
18
+ /** Event emitted when agent does not respond to contact offer */
19
+ AGENT_CONTACT_OFFER_RONA: 'AgentOfferContactRona',
20
+ /** Event emitted when contact is put on hold */
21
+ AGENT_CONTACT_HELD: 'AgentContactHeld',
22
+ /** Event emitted when putting contact on hold fails */
23
+ AGENT_CONTACT_HOLD_FAILED: 'AgentContactHoldFailed',
24
+ /** Event emitted when contact is taken off hold */
25
+ AGENT_CONTACT_UNHELD: 'AgentContactUnheld',
26
+ /** Event emitted when taking contact off hold fails */
27
+ AGENT_CONTACT_UNHOLD_FAILED: 'AgentContactUnHoldFailed',
28
+ /** Event emitted when consultation is created */
29
+ AGENT_CONSULT_CREATED: 'AgentConsultCreated',
30
+ /** Event emitted when consultation is offered */
31
+ AGENT_OFFER_CONSULT: 'AgentOfferConsult',
32
+ /** Event emitted when agent is consulting */
33
+ AGENT_CONSULTING: 'AgentConsulting',
34
+ /** Event emitted when consultation fails */
35
+ AGENT_CONSULT_FAILED: 'AgentConsultFailed',
36
+ /** Event emitted when consulting to queue (CTQ) fails */
37
+ AGENT_CTQ_FAILED: 'AgentCtqFailed',
38
+ /** Event emitted when CTQ is cancelled */
39
+ AGENT_CTQ_CANCELLED: 'AgentCtqCancelled',
40
+ /** Event emitted when CTQ cancellation fails */
41
+ AGENT_CTQ_CANCEL_FAILED: 'AgentCtqCancelFailed',
42
+ /** Event emitted when consultation ends */
43
+ AGENT_CONSULT_ENDED: 'AgentConsultEnded',
44
+ /** Event emitted when ending consultation fails */
45
+ AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',
46
+ /** Event emitted when consultation conference ends */
47
+ AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',
48
+ /** Event emitted when contact is blind transferred */
49
+ AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',
50
+ /** Event emitted when blind transfer fails */
51
+ AGENT_BLIND_TRANSFER_FAILED: 'AgentBlindTransferFailed',
52
+ /** Event emitted when contact is transferred to virtual team */
53
+ AGENT_VTEAM_TRANSFERRED: 'AgentVteamTransferred',
54
+ /** Event emitted when virtual team transfer fails */
55
+ AGENT_VTEAM_TRANSFER_FAILED: 'AgentVteamTransferFailed',
56
+ /** Event emitted when consultation transfer is in progress */
57
+ AGENT_CONSULT_TRANSFERRING: 'AgentConsultTransferring',
58
+ /** Event emitted when consultation transfer completes */
59
+ AGENT_CONSULT_TRANSFERRED: 'AgentConsultTransferred',
60
+ /** Event emitted when consultation transfer fails */
61
+ AGENT_CONSULT_TRANSFER_FAILED: 'AgentConsultTransferFailed',
62
+ /** Event emitted when contact recording is paused */
63
+ CONTACT_RECORDING_PAUSED: 'ContactRecordingPaused',
64
+ /** Event emitted when pausing contact recording fails */
65
+ CONTACT_RECORDING_PAUSE_FAILED: 'ContactRecordingPauseFailed',
66
+ /** Event emitted when contact recording is resumed */
67
+ CONTACT_RECORDING_RESUMED: 'ContactRecordingResumed',
68
+ /** Event emitted when resuming contact recording fails */
69
+ CONTACT_RECORDING_RESUME_FAILED: 'ContactRecordingResumeFailed',
70
+ /** Event emitted when contact ends */
71
+ CONTACT_ENDED: 'ContactEnded',
72
+ /** Event emitted when ending contact fails */
73
+ AGENT_CONTACT_END_FAILED: 'AgentContactEndFailed',
74
+ /** Event emitted when agent enters wrap-up state */
75
+ AGENT_WRAPUP: 'AgentWrapup',
76
+ /** Event emitted when agent completes wrap-up */
77
+ AGENT_WRAPPEDUP: 'AgentWrappedUp',
78
+ /** Event emitted when wrap-up fails */
79
+ AGENT_WRAPUP_FAILED: 'AgentWrapupFailed',
80
+ /** Event emitted when outbound call fails */
81
+ AGENT_OUTBOUND_FAILED: 'AgentOutboundFailed',
82
+ /** Event emitted for general agent contact events */
83
+ AGENT_CONTACT: 'AgentContact',
84
+ /** Event emitted when contact is offered to agent */
85
+ AGENT_OFFER_CONTACT: 'AgentOfferContact',
86
+ /** Event emitted when contact is assigned to agent */
87
+ AGENT_CONTACT_ASSIGNED: 'AgentContactAssigned',
88
+ /** Event emitted when contact is unassigned from agent */
89
+ AGENT_CONTACT_UNASSIGNED: 'AgentContactUnassigned',
90
+ /** Event emitted when inviting agent fails */
91
+ AGENT_INVITE_FAILED: 'AgentInviteFailed',
92
+ } as const;
93
+
94
+ /**
95
+ * Events emitted on Contact Center agent operations
96
+ * @enum {string}
97
+ * @private
98
+ * @ignore
99
+ */
100
+ export const CC_AGENT_EVENTS = {
101
+ /** Welcome event when agent connects to websocket/backend */
102
+ WELCOME: 'Welcome',
103
+ /** Event emitted when agent re-login is successful */
104
+ AGENT_RELOGIN_SUCCESS: 'AgentReloginSuccess',
105
+ /** Event emitted when agent re-login fails */
106
+ AGENT_RELOGIN_FAILED: 'AgentReloginFailed',
107
+ /** Event emitted when agent DN registration completes */
108
+ AGENT_DN_REGISTERED: 'AgentDNRegistered',
109
+ /** Event emitted when agent initiates logout */
110
+ AGENT_LOGOUT: 'Logout',
111
+ /** Event emitted when agent logout is successful */
112
+ AGENT_LOGOUT_SUCCESS: 'AgentLogoutSuccess',
113
+ /** Event emitted when agent logout fails */
114
+ AGENT_LOGOUT_FAILED: 'AgentLogoutFailed',
115
+ /** Event emitted when agent initiates station login */
116
+ AGENT_STATION_LOGIN: 'StationLogin',
117
+ /** Event emitted when agent station login is successful */
118
+ AGENT_STATION_LOGIN_SUCCESS: 'AgentStationLoginSuccess',
119
+ /** Event emitted when agent station login fails */
120
+ AGENT_STATION_LOGIN_FAILED: 'AgentStationLoginFailed',
121
+ /** Event emitted when agent's state changes */
122
+ AGENT_STATE_CHANGE: 'AgentStateChange',
123
+ /** Event emitted when multiple logins detected for same agent */
124
+ AGENT_MULTI_LOGIN: 'AGENT_MULTI_LOGIN',
125
+ /** Event emitted when agent state change is successful */
126
+ AGENT_STATE_CHANGE_SUCCESS: 'AgentStateChangeSuccess',
127
+ /** Event emitted when agent state change fails */
128
+ AGENT_STATE_CHANGE_FAILED: 'AgentStateChangeFailed',
129
+ /** Event emitted when requesting buddy agents list */
130
+ AGENT_BUDDY_AGENTS: 'BuddyAgents',
131
+ /** Event emitted when buddy agents list is successfully retrieved */
132
+ AGENT_BUDDY_AGENTS_SUCCESS: 'BuddyAgents',
133
+ /** Event emitted when retrieving buddy agents list fails */
134
+ AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',
135
+ /** Event emitted when contact is reserved for agent */
136
+ AGENT_CONTACT_RESERVED: 'AgentContactReserved',
137
+ } as const;
138
+
139
+ /**
140
+ * Combined Contact Center events including both agent and task events
141
+ * @enum {string}
142
+ * @public
143
+ */
144
+ export const CC_EVENTS = {
145
+ ...CC_AGENT_EVENTS,
146
+ ...CC_TASK_EVENTS,
147
+ } as const;
148
+
149
+ /**
150
+ * Event data received when agent connects to the system
151
+ * @public
152
+ */
153
+ export type WelcomeEvent = {
154
+ /** ID of the agent that connected */
155
+ agentId: string;
156
+ };
157
+
158
+ /**
159
+ * Response type for welcome events which can be either success or error
160
+ * @public
161
+ */
162
+ export type WelcomeResponse = WelcomeEvent | Error;
163
+
164
+ /**
165
+ * Type representing the union of all possible Contact Center events
166
+ * @public
167
+ */
168
+ export type CC_EVENTS = Enum<typeof CC_EVENTS>;
169
+
170
+ /**
171
+ * WebSocket event structure for Contact Center events
172
+ * @public
173
+ */
174
+ export type WebSocketEvent = {
175
+ /** Type of the event */
176
+ type: CC_EVENTS;
177
+ /** Event payload data */
178
+ data:
179
+ | WelcomeEvent
180
+ | Agent.StationLoginSuccess
181
+ | Agent.LogoutSuccess
182
+ | Agent.ReloginSuccess
183
+ | Agent.StateChangeSuccess
184
+ | Agent.BuddyAgentsSuccess;
185
+ };
186
+
187
+ /**
188
+ * Represents the response from getUserUsingCI method.
189
+ */
190
+ export type AgentResponse = {
191
+ /**
192
+ * ID of the agent.
193
+ */
194
+ id: string;
195
+
196
+ /**
197
+ * The ciUserId of the agent.
198
+ */
199
+ ciUserId: string;
200
+
201
+ /**
202
+ * The first name of the agent.
203
+ */
204
+ firstName: string;
205
+
206
+ /**
207
+ * The last name of the agent.
208
+ */
209
+ lastName: string;
210
+
211
+ /**
212
+ * Identifier for a Desktop Profile.
213
+ */
214
+ agentProfileId: string;
215
+
216
+ /**
217
+ * The email address of the agent.
218
+ */
219
+ email: string;
220
+
221
+ /**
222
+ * Team IDs assigned to the agent.
223
+ */
224
+ teamIds: string[];
225
+
226
+ /**
227
+ * Multimedia profile ID associated with the agent.
228
+ */
229
+ multimediaProfileId: string;
230
+
231
+ /**
232
+ * Skill profile ID of the agent.
233
+ */
234
+ skillProfileId: string;
235
+
236
+ /**
237
+ * Site ID of the agent.
238
+ */
239
+ siteId: string;
240
+
241
+ /**
242
+ * Database ID of the agent.
243
+ */
244
+ dbId?: string;
245
+
246
+ /**
247
+ * The default dialed number of the agent.
248
+ */
249
+ defaultDialledNumber?: string;
250
+ };
251
+
252
+ /**
253
+ * Represents the response from getDesktopProfileById method.
254
+ */
255
+ export type DesktopProfileResponse = {
256
+ /**
257
+ * Represents the voice options of an agent.
258
+ */
259
+ loginVoiceOptions: LoginOption[];
260
+
261
+ /**
262
+ * Wrap-up codes that the agents can select when they wrap up a contact. It can take one of these values: ALL - To make all wrap-up codes available. SPECIFIC - To make specific codes available.
263
+ */
264
+ accessWrapUpCode: string;
265
+
266
+ /**
267
+ * Idle codes that the agents can select in Agent Desktop. It can take one of these values: ALL - To make all idle codes available. SPECIFIC - To make specific codes available.
268
+ */
269
+ accessIdleCode: string;
270
+
271
+ /**
272
+ * Wrap-up codes list that the agents can select when they wrap up a contact.
273
+ */
274
+ wrapUpCodes: string[];
275
+
276
+ /**
277
+ * Idle codes list that the agents can select in Agent Desktop.
278
+ */
279
+ idleCodes: string[];
280
+
281
+ /**
282
+ * Dial plan enabled for the agent.
283
+ */
284
+ dialPlanEnabled: boolean;
285
+
286
+ /**
287
+ * Last agent routing enabled for the agent.
288
+ */
289
+ lastAgentRouting: boolean;
290
+
291
+ /**
292
+ * Auto wrap-up allowed.
293
+ */
294
+ autoWrapUp: boolean;
295
+
296
+ /**
297
+ * Auto answer allowed.
298
+ */
299
+ autoAnswer: boolean;
300
+
301
+ /**
302
+ * Auto wrap-up after seconds.
303
+ */
304
+ autoWrapAfterSeconds: number;
305
+
306
+ /**
307
+ * Agent available after outdial.
308
+ */
309
+ agentAvailableAfterOutdial: boolean;
310
+
311
+ /**
312
+ * Allow auto wrap-up extension.
313
+ */
314
+ allowAutoWrapUpExtension: boolean;
315
+
316
+ /**
317
+ * Outdial enabled for the agent.
318
+ */
319
+ outdialEnabled: boolean;
320
+
321
+ /**
322
+ * Outdial entry point ID of the agent.
323
+ */
324
+ outdialEntryPointId: string;
325
+
326
+ /**
327
+ * Outdial ANI ID of the agent.
328
+ */
329
+ outdialANIId: string;
330
+
331
+ /**
332
+ * Consult to queue allowed.
333
+ */
334
+ consultToQueue: boolean;
335
+
336
+ /**
337
+ * Address book ID of the agent.
338
+ */
339
+ addressBookId: string;
340
+
341
+ /**
342
+ * Viewable statistics of the agent.
343
+ */
344
+ viewableStatistics: {
345
+ id: string;
346
+ agentStats: boolean;
347
+ accessQueueStats: string;
348
+ contactServiceQueues: string[];
349
+ loggedInTeamStats: boolean;
350
+ accessTeamStats: string;
351
+ teams: string[];
352
+ };
353
+
354
+ /**
355
+ * Agent DN validation of the agent.
356
+ */
357
+ agentDNValidation: string;
358
+
359
+ /**
360
+ * Dial plans of the agent.
361
+ */
362
+ dialPlans: string[];
363
+
364
+ /**
365
+ * Timeout desktop inactivity custom enabled.
366
+ */
367
+ timeoutDesktopInactivityCustomEnabled: boolean;
368
+
369
+ /**
370
+ * Timeout desktop inactivity minutes.
371
+ */
372
+ timeoutDesktopInactivityMins: number;
373
+
374
+ /**
375
+ * Show user details in Microsoft enabled or not.
376
+ */
377
+ showUserDetailsMS: boolean;
378
+
379
+ /**
380
+ * State synchronization in Microsoft enabled or not.
381
+ */
382
+ stateSynchronizationMS: boolean;
383
+
384
+ /**
385
+ * Show user details in Webex enabled or not.
386
+ */
387
+ showUserDetailsWebex: boolean;
388
+
389
+ /**
390
+ * State synchronization in Webex enabled or not.
391
+ */
392
+ stateSynchronizationWebex: boolean;
393
+ };
394
+
395
+ /**
396
+ * Response containing multimedia profile configuration for an agent
397
+ * Defines capabilities across different communication channels
398
+ * @private
399
+ */
400
+ export type MultimediaProfileResponse = {
401
+ /** Organization identifier */
402
+ organizationId: string;
403
+ /** Profile identifier */
404
+ id: string;
405
+ /** Version number of the profile */
406
+ version: number;
407
+ /** Profile name */
408
+ name: string;
409
+ /** Profile description */
410
+ description: string;
411
+ /** Maximum number of concurrent chat interactions */
412
+ chat: number;
413
+ /** Maximum number of concurrent email interactions */
414
+ email: number;
415
+ /** Maximum number of concurrent voice interactions */
416
+ telephony: number;
417
+ /** Maximum number of concurrent social media interactions */
418
+ social: number;
419
+ /** Whether the profile is active */
420
+ active: boolean;
421
+ /** Whether channel blending is enabled */
422
+ blendingModeEnabled: boolean;
423
+ /** Type of blending mode configuration */
424
+ blendingMode: string;
425
+ /** Whether this is the system default profile */
426
+ systemDefault: boolean;
427
+ /** Timestamp when profile was created */
428
+ createdTime: number;
429
+ /** Timestamp when profile was last updated */
430
+ lastUpdatedTime: number;
431
+ };
432
+
433
+ /**
434
+ * Response from subscription requests containing WebSocket connection details
435
+ * @public
436
+ */
437
+ export type SubscribeResponse = {
438
+ /** HTTP status code of the response */
439
+ statusCode: number;
440
+ /** Response body containing connection details */
441
+ body: {
442
+ /** WebSocket URL for real-time updates */
443
+ webSocketUrl?: string;
444
+ /** Unique subscription identifier */
445
+ subscriptionId?: string;
446
+ };
447
+ /** Optional status or error message */
448
+ message: string | null;
449
+ };
450
+
451
+ export type AuxCode = {
452
+ /**
453
+ * ID of the Auxiliary Code.
454
+ */
455
+ id: string;
456
+
457
+ /**
458
+ * Indicates whether the auxiliary code is active or not.
459
+ */
460
+ active: boolean;
461
+
462
+ /**
463
+ * Indicates whether this is the default code (true) or not (false).
464
+ */
465
+ defaultCode: boolean;
466
+
467
+ /**
468
+ * Indicates whether this is the system default code (true) or not (false).
469
+ */
470
+ isSystemCode: boolean;
471
+
472
+ /**
473
+ * A short description indicating the context of the code.
474
+ */
475
+ description: string;
476
+
477
+ /**
478
+ * Name of the Auxiliary Code.
479
+ */
480
+ name: string;
481
+
482
+ /**
483
+ * Indicates the work type associated with this code.
484
+ */
485
+ workTypeCode: string;
486
+ };
487
+
488
+ export type ListAuxCodesResponse = {
489
+ data: AuxCode[];
490
+ meta: {
491
+ page: number;
492
+ pageSize: number;
493
+ totalPages: number;
494
+ totalRecords: number;
495
+ };
496
+ };
497
+
498
+ /**
499
+ * Configuration for a team in the contact center system
500
+ * @private
501
+ */
502
+ export type TeamList = {
503
+ /** Unique identifier for the team */
504
+ id: string;
505
+ /** Team name */
506
+ name: string;
507
+ /** Type of team (e.g., 'AGENT_BASED') */
508
+ teamType: string;
509
+ /** Current status of the team */
510
+ teamStatus: string;
511
+ /** Whether the team is active */
512
+ active: boolean;
513
+ /** Site identifier where team is located */
514
+ siteId: string;
515
+ /** Name of the site */
516
+ siteName: string;
517
+ /** Optional multimedia profile ID for team */
518
+ multiMediaProfileId?: string;
519
+ /** List of user IDs belonging to team */
520
+ userIds: string[];
521
+ /** Whether queue rankings are enabled for team */
522
+ rankQueuesForTeam: boolean;
523
+ /** Ordered list of queue rankings */
524
+ queueRankings: string[];
525
+ /** Optional database identifier */
526
+ dbId?: string;
527
+ /** Optional desktop layout identifier */
528
+ desktopLayoutId?: string;
529
+ };
530
+
531
+ /**
532
+ * Response type for listing teams with pagination metadata
533
+ * @private
534
+ */
535
+ export type ListTeamsResponse = {
536
+ /** Array of team configurations */
537
+ data: TeamList[];
538
+ /** Pagination metadata */
539
+ meta: {
540
+ /** Current page number */
541
+ page: number;
542
+ /** Number of items per page */
543
+ pageSize: number;
544
+ /** Total number of pages */
545
+ totalPages: number;
546
+ /** Total number of records */
547
+ totalRecords: number;
548
+ };
549
+ };
550
+
551
+ /**
552
+ * Basic organization information in the contact center system
553
+ * @private
554
+ * @ignore
555
+ */
556
+ export type OrgInfo = {
557
+ /** Tenant identifier */
558
+ tenantId: string;
559
+ /** Organization timezone */
560
+ timezone: string;
561
+ };
562
+
563
+ /**
564
+ * Organization-wide feature settings and configurations
565
+ * @private
566
+ */
567
+ export type OrgSettings = {
568
+ /** Whether WebRTC functionality is enabled */
569
+ webRtcEnabled: boolean;
570
+ /** Whether sensitive data masking is enabled */
571
+ maskSensitiveData: boolean;
572
+ /** Whether campaign manager features are enabled */
573
+ campaignManagerEnabled: boolean;
574
+ };
575
+
576
+ /**
577
+ * Contact center site configuration information
578
+ * @private
579
+ */
580
+ export type SiteInfo = {
581
+ /** Unique site identifier */
582
+ id: string;
583
+ /** Site name */
584
+ name: string;
585
+ /** Whether site is active */
586
+ active: boolean;
587
+ /** Multimedia profile ID for site */
588
+ multimediaProfileId: string;
589
+ /** Whether this is the system default site */
590
+ systemDefault: boolean;
591
+ };
592
+
593
+ /**
594
+ * Tenant-level configuration data and settings
595
+ * @private
596
+ */
597
+ export type TenantData = {
598
+ /** Desktop inactivity timeout in minutes */
599
+ timeoutDesktopInactivityMins: number;
600
+ /** Whether default DN is enforced */
601
+ forceDefaultDn: boolean;
602
+ /** Regex pattern for default DN validation */
603
+ dnDefaultRegex: string;
604
+ /** Regex pattern for other DN validation */
605
+ dnOtherRegex: string;
606
+ /** Whether privacy shield feature is visible */
607
+ privacyShieldVisible: boolean;
608
+ /** Whether outbound dialing is enabled */
609
+ outdialEnabled: boolean;
610
+ /** Whether ending calls is enabled */
611
+ endCallEnabled: boolean;
612
+ /** Whether ending consultations is enabled */
613
+ endConsultEnabled: boolean;
614
+ /** Whether call variables are suppressed */
615
+ callVariablesSuppressed: boolean;
616
+ /** Whether desktop inactivity timeout is enabled */
617
+ timeoutDesktopInactivityEnabled: boolean;
618
+ /** Lost connection recovery timeout in seconds */
619
+ lostConnectionRecoveryTimeout: number;
620
+ };
621
+
622
+ /**
623
+ * URL mapping configuration for external integrations
624
+ * @public
625
+ */
626
+ export type URLMapping = {
627
+ id: string;
628
+ name: string;
629
+ url: string;
630
+ links: string[]; // Assuming 'links' is an array of strings, adjust if necessary
631
+ createdTime: number; // Assuming timestamps are represented as numbers
632
+ lastUpdatedTime: number;
633
+ };
634
+
635
+ /**
636
+ * Constant representing idle code
637
+ * @public
638
+ * @ignore
639
+ */
640
+ export const IDLE_CODE = 'IDLE_CODE';
641
+
642
+ /**
643
+ * Constant representing wrap up code
644
+ * @public
645
+ * @ignore
646
+ */
647
+ export const WRAP_UP_CODE = 'WRAP_UP_CODE';
648
+
649
+ /**
650
+ * Type representing the possible auxiliary code types
651
+ * @public
652
+ */
653
+ export type AuxCodeType = typeof IDLE_CODE | typeof WRAP_UP_CODE;
654
+
655
+ /**
656
+ * Sort order configuration for queries
657
+ * @internal
658
+ */
659
+ type SortOrder = {
660
+ /** Property to sort by */
661
+ property: string;
662
+ /** Sort order direction */
663
+ order: string;
664
+ };
665
+
666
+ /**
667
+ * Search query configuration
668
+ * @internal
669
+ */
670
+ type SearchQuery = {
671
+ /** Properties to search in */
672
+ properties: string;
673
+ /** Search value */
674
+ value: string;
675
+ };
676
+
677
+ /**
678
+ * Parameters for querying Contact Center resources
679
+ * @public
680
+ */
681
+ export type QueryParams = {
682
+ /** Page number for pagination */
683
+ pageNumber?: number;
684
+ pageSize?: number;
685
+ attributes?: Array<string>;
686
+ ids?: Array<string>;
687
+ queueType?: string;
688
+ entryPointType?: string;
689
+ channelType?: string;
690
+ isActive?: boolean;
691
+ workTypeCode?: AuxCodeType;
692
+ names?: Array<string>;
693
+ sortOrder?: SortOrder;
694
+ searchQuery?: SearchQuery;
695
+ defaultCode?: boolean;
696
+ search?: string;
697
+ desktopProfileFilter?: boolean;
698
+ };
699
+
700
+ /**
701
+ * Basic entity information used throughout the system
702
+ * @public
703
+ */
704
+ export type Entity = {
705
+ /** Whether this is a system entity */
706
+ isSystem: boolean;
707
+ /** Entity name */
708
+ name: string;
709
+ /** Unique entity identifier */
710
+ id: string;
711
+ /** Whether this is the default entity */
712
+ isDefault: boolean;
713
+ };
714
+
715
+ /**
716
+ * Dial plan entity definition containing number manipulation rules
717
+ * @public
718
+ */
719
+ export type DialPlanEntity = {
720
+ /** Unique identifier for the dial plan */
721
+ id: string;
722
+ /** Regular expression pattern for matching numbers */
723
+ regularExpression: string;
724
+ /** Prefix to add to matched numbers */
725
+ prefix: string;
726
+ /** Characters to strip from matched numbers */
727
+ strippedChars: string;
728
+ /** Name of the dial plan */
729
+ name: string;
730
+ };
731
+
732
+ /**
733
+ * Complete dial plan configuration for number handling
734
+ * @public
735
+ */
736
+ export type DialPlan = {
737
+ /** Type of dial plan (e.g., 'adhocDial') */
738
+ type: string;
739
+ /** List of dial plan entities with transformation rules */
740
+ dialPlanEntity: {
741
+ /** Regular expression pattern */
742
+ regex: string;
743
+ /** Number prefix */
744
+ prefix: string;
745
+ /** Characters to strip */
746
+ strippedChars: string;
747
+ /** Entity name */
748
+ name: string;
749
+ }[];
750
+ };
751
+
752
+ /**
753
+ * Agent wrap-up codes configuration with pagination metadata
754
+ * @public
755
+ */
756
+ export type agentWrapUpCodes = {
757
+ /** Array of wrap-up code entities */
758
+ data: Entity[];
759
+ /** Pagination and navigation metadata */
760
+ meta: {
761
+ /** Navigation URLs for pagination */
762
+ links: {
763
+ /** URL for first page */
764
+ first: string;
765
+ /** URL for last page */
766
+ last: string;
767
+ /** URL for next page */
768
+ next: string;
769
+ /** URL for current page */
770
+ self: string;
771
+ };
772
+ /** Organization identifier */
773
+ orgid: string;
774
+ /** Current page number */
775
+ page: number;
776
+ /** Number of items per page */
777
+ pageSize: number;
778
+ /** Total number of pages */
779
+ totalPages: number;
780
+ /** Total number of records */
781
+ totalRecords: number;
782
+ };
783
+ };
784
+
785
+ /**
786
+ * Default wrap-up code configuration for an agent
787
+ * @public
788
+ */
789
+ export type agentDefaultWrapupCode = {
790
+ /** Unique identifier for the wrap-up code */
791
+ id: string;
792
+ /** Display name of the wrap-up code */
793
+ name: string;
794
+ };
795
+
796
+ /**
797
+ * Wrap-up reason configuration used to classify completed interactions
798
+ * @public
799
+ */
800
+ export type WrapUpReason = {
801
+ /** Whether this is a system-defined reason */
802
+ isSystem: boolean;
803
+ /** Display name of the reason */
804
+ name: string;
805
+ /** Unique identifier */
806
+ id: string;
807
+ /** Whether this is the default reason */
808
+ isDefault: boolean;
809
+ };
810
+
811
+ /**
812
+ * Wrap-up configuration data containing settings and available options
813
+ * @public
814
+ */
815
+ export type WrapupData = {
816
+ /** Wrap-up configuration properties */
817
+ wrapUpProps: {
818
+ /** Whether automatic wrap-up is enabled */
819
+ autoWrapup?: boolean;
820
+ /** Time in seconds before auto wrap-up triggers */
821
+ autoWrapupInterval?: number;
822
+ /** Whether last agent routing is enabled */
823
+ lastAgentRoute?: boolean;
824
+ /** List of available wrap-up reasons */
825
+ wrapUpReasonList: Array<WrapUpReason>;
826
+ /** List of available wrap-up codes */
827
+ wrapUpCodesList?: Array<string>;
828
+ /** Access control for idle codes ('ALL' or 'SPECIFIC') */
829
+ idleCodesAccess?: 'ALL' | 'SPECIFIC';
830
+ /** Associated interaction identifier */
831
+ interactionId?: string;
832
+ /** Whether cancelling auto wrap-up is allowed */
833
+ allowCancelAutoWrapup?: boolean;
834
+ };
835
+ };
836
+
837
+ /**
838
+ * Available login options for voice channel access
839
+ * 'AGENT_DN' - Login using agent's DN
840
+ * 'EXTENSION' - Login using extension number
841
+ * 'BROWSER' - Login using browser-based WebRTC
842
+ * @public
843
+ */
844
+ export type LoginOption = 'AGENT_DN' | 'EXTENSION' | 'BROWSER';
845
+
846
+ /**
847
+ * Team configuration information
848
+ * @public
849
+ */
850
+ export type Team = {
851
+ /** Unique team identifier */
852
+ teamId: string;
853
+ /** Team display name */
854
+ teamName: string;
855
+ /** Optional desktop layout configuration identifier */
856
+ desktopLayoutId?: string;
857
+ };
858
+
859
+ /**
860
+ * Basic queue configuration information
861
+ * @public
862
+ */
863
+ export type Queue = {
864
+ /** Queue identifier */
865
+ queueId: string;
866
+ /** Queue display name */
867
+ queueName: string;
868
+ };
869
+
870
+ /**
871
+ * URL mappings for external system integrations
872
+ * @public
873
+ */
874
+ export type URLMappings = {
875
+ /** Acqueon API endpoint URL */
876
+ acqueonApiUrl: string;
877
+ /** Acqueon console URL */
878
+ acqueonConsoleUrl: string;
879
+ };
880
+
881
+ /**
882
+ * Comprehensive agent profile configuration in the contact center system
883
+ * Contains all settings and capabilities for an agent
884
+ * @public
885
+ */
886
+ export type Profile = {
887
+ /** Microsoft Teams integration configuration */
888
+ microsoftConfig?: {
889
+ /** Whether to show user details in Teams */
890
+ showUserDetailsMS?: boolean;
891
+ /** Whether to sync agent state with Teams */
892
+ stateSynchronizationMS?: boolean;
893
+ };
894
+ /** Webex integration configuration */
895
+ webexConfig?: {
896
+ /** Whether to show user details in Webex */
897
+ showUserDetailsWebex?: boolean;
898
+ /** Whether to sync agent state with Webex */
899
+ stateSynchronizationWebex?: boolean;
900
+ };
901
+ /** List of teams the agent belongs to */
902
+ teams: Team[];
903
+ /** Agent's default dial number */
904
+ defaultDn: string;
905
+ dn?: string;
906
+ /** Whether default DN is enforced at tenant level */
907
+ forceDefaultDn: boolean;
908
+ /** Whether default DN is enforced for this agent */
909
+ forceDefaultDnForAgent: boolean;
910
+ /** Regex pattern for US phone number validation */
911
+ regexUS: RegExp | string;
912
+ /** Regex pattern for international phone number validation */
913
+ regexOther: RegExp | string;
914
+ /** Unique identifier for the agent */
915
+ agentId: string;
916
+ /** Display name for the agent */
917
+ agentName: string;
918
+ /** Email address for the agent */
919
+ agentMailId: string;
920
+ /** Agent's profile configuration ID */
921
+ agentProfileID: string;
922
+ /** Dial plan configuration for number handling */
923
+ dialPlan: DialPlan;
924
+ /** Multimedia profile defining channel capabilities */
925
+ multimediaProfileId: string;
926
+ /** Skill profile defining agent competencies */
927
+ skillProfileId: string;
928
+ /** Site where agent is located */
929
+ siteId: string;
930
+ /** Enterprise-wide identifier */
931
+ enterpriseId: string;
932
+ /** Whether privacy shield feature is visible */
933
+ privacyShieldVisible: boolean;
934
+ /** Available idle codes */
935
+ idleCodes: Entity[];
936
+ /** List of specific idle codes */
937
+ idleCodesList?: Array<string>;
938
+ /** Access control for idle codes */
939
+ idleCodesAccess?: 'ALL' | 'SPECIFIC';
940
+ /** Available wrap-up codes */
941
+ wrapupCodes: Entity[];
942
+ /** Agent-specific wrap-up codes */
943
+ agentWrapUpCodes?: agentWrapUpCodes;
944
+ /** Default wrap-up code for agent */
945
+ agentDefaultWrapUpCode?: agentDefaultWrapupCode;
946
+ /** Default wrap-up code identifier */
947
+ defaultWrapupCode: string;
948
+ /** Wrap-up configuration data */
949
+ wrapUpData: WrapupData;
950
+ /** Organization identifier */
951
+ orgId?: string;
952
+ /** Whether outbound is enabled at tenant level */
953
+ isOutboundEnabledForTenant: boolean;
954
+ /** Whether outbound is enabled for this agent */
955
+ isOutboundEnabledForAgent: boolean;
956
+ /** Whether ad-hoc dialing is enabled */
957
+ isAdhocDialingEnabled: boolean;
958
+ /** Whether agent becomes available after outdial */
959
+ isAgentAvailableAfterOutdial: boolean;
960
+ /** Whether campaign management is enabled */
961
+ isCampaignManagementEnabled: boolean;
962
+ /** Outbound entry point */
963
+ outDialEp: string;
964
+ /** Whether ending calls is enabled */
965
+ isEndCallEnabled: boolean;
966
+ /** Whether ending consultations is enabled */
967
+ isEndConsultEnabled: boolean;
968
+ /** Optional lifecycle manager URL */
969
+ lcmUrl?: string;
970
+ /** Database identifier for agent */
971
+ agentDbId: string;
972
+ /** Optional analyzer identifier for agent */
973
+ agentAnalyzerId?: string;
974
+ /** Whether consult to queue is allowed */
975
+ allowConsultToQueue: boolean;
976
+ /** Additional campaign manager information */
977
+ campaignManagerAdditionalInfo?: string;
978
+ /** Whether personal statistics are enabled */
979
+ agentPersonalStatsEnabled: boolean;
980
+ /** Optional address book identifier */
981
+ addressBookId?: string;
982
+ /** Optional outbound ANI identifier */
983
+ outdialANIId?: string;
984
+ /** Optional analyzer user identifier */
985
+ analyserUserId?: string;
986
+ /** Whether call monitoring is enabled */
987
+ isCallMonitoringEnabled?: boolean;
988
+ /** Whether mid-call monitoring is enabled */
989
+ isMidCallMonitoringEnabled?: boolean;
990
+ /** Whether barge-in functionality is enabled */
991
+ isBargeInEnabled?: boolean;
992
+ /** Whether managed teams feature is enabled */
993
+ isManagedTeamsEnabled?: boolean;
994
+ /** Whether managed queues feature is enabled */
995
+ isManagedQueuesEnabled?: boolean;
996
+ /** Whether sending messages is enabled */
997
+ isSendMessageEnabled?: boolean;
998
+ /** Whether agent state changes are enabled */
999
+ isAgentStateChangeEnabled?: boolean;
1000
+ /** Whether signing out agents is enabled */
1001
+ isSignOutAgentsEnabled?: boolean;
1002
+ /** Integration URL mappings */
1003
+ urlMappings?: URLMappings;
1004
+ /** Whether desktop inactivity timeout is enabled */
1005
+ isTimeoutDesktopInactivityEnabled: boolean;
1006
+ /** Desktop inactivity timeout in minutes */
1007
+ timeoutDesktopInactivityMins?: number;
1008
+ /** Whether analyzer features are enabled */
1009
+ isAnalyzerEnabled?: boolean;
1010
+ /** Tenant timezone */
1011
+ tenantTimezone?: string;
1012
+ /** Available voice login options */
1013
+ loginVoiceOptions?: LoginOption[];
1014
+ /** Current login device type */
1015
+ deviceType?: LoginOption;
1016
+ /** Current team identifier */
1017
+ currentTeamId?: string;
1018
+ /** Whether WebRTC is enabled */
1019
+ webRtcEnabled: boolean;
1020
+ /** Organization-wide idle codes */
1021
+ organizationIdleCodes?: Entity[];
1022
+ /** Whether recording management is enabled */
1023
+ isRecordingManagementEnabled?: boolean;
1024
+ /** Connection recovery timeout in milliseconds */
1025
+ lostConnectionRecoveryTimeout: number;
1026
+ /** Whether sensitive data masking is enabled */
1027
+ maskSensitiveData?: boolean;
1028
+ /** Whether agent is currently logged in */
1029
+ isAgentLoggedIn?: boolean;
1030
+ /** Last auxiliary code ID used for state change */
1031
+ lastStateAuxCodeId?: string;
1032
+ /** Timestamp of last state change */
1033
+ lastStateChangeTimestamp?: number;
1034
+ /** Timestamp of last idle code change */
1035
+ lastIdleCodeChangeTimestamp?: number;
1036
+ };
1037
+
1038
+ /**
1039
+ * Contact distribution group configuration for routing logic
1040
+ * @public
1041
+ */
1042
+ export type CallDistributionGroup = {
1043
+ /** List of agent groups in this distribution group */
1044
+ agentGroups: {
1045
+ /** Team identifier */
1046
+ teamId: string;
1047
+ }[];
1048
+ /** Distribution order priority */
1049
+ order: number;
1050
+ /** Distribution time duration in seconds */
1051
+ duration: number;
1052
+ };
1053
+
1054
+ /**
1055
+ * Comprehensive configuration for a contact service queue
1056
+ * @public
1057
+ */
1058
+ export type ContactServiceQueue = {
1059
+ /** Unique identifier for the queue */
1060
+ id: string;
1061
+ /** Queue name */
1062
+ name: string;
1063
+ /** Queue description */
1064
+ description: string;
1065
+ /** Type of queue */
1066
+ queueType: string;
1067
+ /** Whether to check agent availability before routing */
1068
+ checkAgentAvailability: boolean;
1069
+ /** Type of channel this queue handles */
1070
+ channelType: string;
1071
+ /** Service level threshold in seconds */
1072
+ serviceLevelThreshold: number;
1073
+ /** Maximum number of active contacts allowed */
1074
+ maxActiveContacts: number;
1075
+ /** Maximum time contacts can wait in queue (seconds) */
1076
+ maxTimeInQueue: number;
1077
+ /** Default music on hold media file ID */
1078
+ defaultMusicInQueueMediaFileId: string;
1079
+ /** Queue timezone */
1080
+ timezone: string;
1081
+ /** Whether queue is active */
1082
+ active: boolean;
1083
+ /** Whether outbound campaign routing is enabled */
1084
+ outdialCampaignEnabled: boolean;
1085
+ /** Whether monitoring is permitted */
1086
+ monitoringPermitted: boolean;
1087
+ /** Whether parking is permitted */
1088
+ parkingPermitted: boolean;
1089
+ /** Whether recording is permitted */
1090
+ recordingPermitted: boolean;
1091
+ /** Whether recording all calls is permitted */
1092
+ recordingAllCallsPermitted: boolean;
1093
+ /** Whether pausing recordings is permitted */
1094
+ pauseRecordingPermitted: boolean;
1095
+ /** Maximum recording pause duration in seconds */
1096
+ recordingPauseDuration: number;
1097
+ /** Control flow script URL */
1098
+ controlFlowScriptUrl: string;
1099
+ /** IVR requeue URL */
1100
+ ivrRequeueUrl: string;
1101
+ /** Type of routing strategy */
1102
+ routingType: string;
1103
+ /** Queue-specific routing type */
1104
+ queueRoutingType: string;
1105
+ /** Queue skill requirements for routing */
1106
+ queueSkillRequirements: object[];
1107
+ /** Associated agents */
1108
+ agents: object[];
1109
+ /** Call distribution group configurations */
1110
+ callDistributionGroups: CallDistributionGroup[];
1111
+ /** Associated resource links */
1112
+ links: Array<string>;
1113
+ /** Timestamp when queue was created */
1114
+ createdTime: string;
1115
+ /** Timestamp when queue was last updated */
1116
+ lastUpdatedTime: string;
1117
+ };