o2g-node-sdk 2.5.5 → 2.5.6
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.
- package/README.md +5 -0
- package/dist/o2g-node-sdk.js +799 -693
- package/dist/o2g-node-sdk.js.map +1 -1
- package/dist/types/services/o2g-analytics.d.ts +40 -31
- package/dist/types/services/o2g-analytics.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-agent.d.ts +11 -7
- package/dist/types/services/o2g-cc-agent.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-mngt.d.ts +61 -40
- package/dist/types/services/o2g-cc-mngt.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-pilot.d.ts +7 -5
- package/dist/types/services/o2g-cc-pilot.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-rt.d.ts +4 -3
- package/dist/types/services/o2g-cc-rt.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-stat.d.ts +160 -163
- package/dist/types/services/o2g-cc-stat.d.ts.map +1 -1
- package/dist/types/services/o2g-comlog.d.ts +68 -67
- package/dist/types/services/o2g-comlog.d.ts.map +1 -1
- package/dist/types/services/o2g-directory.d.ts +35 -40
- package/dist/types/services/o2g-directory.d.ts.map +1 -1
- package/dist/types/services/o2g-eventSummary.d.ts +7 -8
- package/dist/types/services/o2g-eventSummary.d.ts.map +1 -1
- package/dist/types/services/o2g-maint.d.ts +10 -10
- package/dist/types/services/o2g-messaging.d.ts +3 -2
- package/dist/types/services/o2g-messaging.d.ts.map +1 -1
- package/dist/types/services/o2g-routing.d.ts +37 -19
- package/dist/types/services/o2g-routing.d.ts.map +1 -1
- package/dist/types/services/o2g-rsi.d.ts +62 -54
- package/dist/types/services/o2g-rsi.d.ts.map +1 -1
- package/dist/types/services/o2g-telephony.d.ts +255 -224
- package/dist/types/services/o2g-telephony.d.ts.map +1 -1
- package/dist/types/services/o2g-users-mngt.d.ts +21 -13
- package/dist/types/services/o2g-users-mngt.d.ts.map +1 -1
- package/dist/types/services/o2g-users.d.ts +8 -5
- package/dist/types/services/o2g-users.d.ts.map +1 -1
- package/dist/types/types/telephony/call/ccd/call-profile.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -79,8 +79,8 @@ export declare class Routing extends EventEmitter {
|
|
|
79
79
|
/**
|
|
80
80
|
* Activates the Do Not Disturb for the specified user.
|
|
81
81
|
* <p>
|
|
82
|
-
*
|
|
83
|
-
* already activated.
|
|
82
|
+
* When active, no calls are presented to the user. This method does nothing and
|
|
83
|
+
* returns `true` if the Do Not Disturb is already activated.
|
|
84
84
|
* <p>
|
|
85
85
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
86
86
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -118,7 +118,7 @@ export declare class Routing extends EventEmitter {
|
|
|
118
118
|
*/
|
|
119
119
|
getDndState(loginName?: string | null): Promise<DndState | null>;
|
|
120
120
|
/**
|
|
121
|
-
* Returns the routing capabilities
|
|
121
|
+
* Returns the routing capabilities available to the specified user.
|
|
122
122
|
* <p>
|
|
123
123
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
124
124
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -131,8 +131,9 @@ export declare class Routing extends EventEmitter {
|
|
|
131
131
|
/**
|
|
132
132
|
* Activates the remote extension device for the specified user.
|
|
133
133
|
* <p>
|
|
134
|
-
* When the remote extension
|
|
135
|
-
*
|
|
134
|
+
* When activated, the remote extension rings on incoming calls on the user's
|
|
135
|
+
* company phone. If it is already activated, this method does nothing and
|
|
136
|
+
* returns `true`.
|
|
136
137
|
* <p>
|
|
137
138
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
138
139
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -146,8 +147,8 @@ export declare class Routing extends EventEmitter {
|
|
|
146
147
|
/**
|
|
147
148
|
* Deactivates the remote extension device for the specified user.
|
|
148
149
|
* <p>
|
|
149
|
-
* When deactivated,
|
|
150
|
-
*
|
|
150
|
+
* When deactivated, the remote extension does not ring on incoming calls,
|
|
151
|
+
* but can still be used to place outgoing calls.
|
|
151
152
|
* <p>
|
|
152
153
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
153
154
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -170,10 +171,9 @@ export declare class Routing extends EventEmitter {
|
|
|
170
171
|
*/
|
|
171
172
|
getForward(loginName?: string | null): Promise<Forward | null>;
|
|
172
173
|
/**
|
|
173
|
-
* Cancels the forward for the specified user.
|
|
174
|
+
* Cancels the active forward for the specified user.
|
|
174
175
|
* <p>
|
|
175
|
-
* This method does nothing and returns `true` if there is no forward
|
|
176
|
-
* activated.
|
|
176
|
+
* This method does nothing and returns `true` if there is no forward activated.
|
|
177
177
|
* <p>
|
|
178
178
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
179
179
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -181,12 +181,15 @@ export declare class Routing extends EventEmitter {
|
|
|
181
181
|
*
|
|
182
182
|
* @param loginName the user login name
|
|
183
183
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
184
|
+
* @see forwardOnNumber
|
|
185
|
+
* @see forwardOnVoiceMail
|
|
184
186
|
*/
|
|
185
187
|
cancelForward(loginName?: string | null): Promise<boolean>;
|
|
186
188
|
/**
|
|
187
|
-
*
|
|
189
|
+
* Activates a forward to the voice mail with the specified condition, for the specified user.
|
|
188
190
|
* <p>
|
|
189
191
|
* This method will fail and return `false` if the user does not have a voice mail.
|
|
192
|
+
* If a forward is already active, it is replaced by the new one.
|
|
190
193
|
* <p>
|
|
191
194
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
192
195
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -196,12 +199,16 @@ export declare class Routing extends EventEmitter {
|
|
|
196
199
|
* @param loginName the user login name
|
|
197
200
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
198
201
|
* @see forwardOnNumber
|
|
202
|
+
* @see cancelForward
|
|
199
203
|
*/
|
|
200
204
|
forwardOnVoiceMail(condition: ForwardCondition, loginName?: string | null): Promise<boolean>;
|
|
201
205
|
/**
|
|
202
|
-
*
|
|
206
|
+
* Activates a forward to the specified number, with the specified condition, for the
|
|
203
207
|
* specified user.
|
|
204
208
|
* <p>
|
|
209
|
+
* The number must be authorized by the OmniPCX Enterprise numbering policy.
|
|
210
|
+
* If a forward is already active, it is replaced by the new one.
|
|
211
|
+
* <p>
|
|
205
212
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
206
213
|
* ignored, but it is mandatory if the session has been opened by an
|
|
207
214
|
* administrator.
|
|
@@ -230,7 +237,7 @@ export declare class Routing extends EventEmitter {
|
|
|
230
237
|
*/
|
|
231
238
|
forwardOnNumber(number: string, condition: ForwardCondition, loginName?: string | null): Promise<boolean>;
|
|
232
239
|
/**
|
|
233
|
-
* Cancels the overflow for the specified user.
|
|
240
|
+
* Cancels the active overflow for the specified user.
|
|
234
241
|
* <p>
|
|
235
242
|
* This method does nothing and returns `true` if there is no overflow activated.
|
|
236
243
|
* <p>
|
|
@@ -240,6 +247,7 @@ export declare class Routing extends EventEmitter {
|
|
|
240
247
|
*
|
|
241
248
|
* @param loginName the user login name
|
|
242
249
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
250
|
+
* @see overflowOnVoiceMail
|
|
243
251
|
*/
|
|
244
252
|
cancelOverflow(loginName?: string | null): Promise<boolean>;
|
|
245
253
|
/**
|
|
@@ -254,9 +262,12 @@ export declare class Routing extends EventEmitter {
|
|
|
254
262
|
*/
|
|
255
263
|
getOverflow(loginName?: string | null): Promise<Overflow | null>;
|
|
256
264
|
/**
|
|
257
|
-
* Activates an overflow
|
|
265
|
+
* Activates an overflow to the voice mail with the specified condition, for the
|
|
258
266
|
* specified user.
|
|
259
267
|
* <p>
|
|
268
|
+
* The overflow only applies when no forward is active. If an overflow is already
|
|
269
|
+
* active, it is replaced by the new one.
|
|
270
|
+
* <p>
|
|
260
271
|
* This method will fail and return `false` if the user does not have a voice mail.
|
|
261
272
|
* <p>
|
|
262
273
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
@@ -270,7 +281,10 @@ export declare class Routing extends EventEmitter {
|
|
|
270
281
|
*/
|
|
271
282
|
overflowOnVoiceMail(condition: OverflowCondition, loginName?: string | null): Promise<boolean>;
|
|
272
283
|
/**
|
|
273
|
-
* Gets the routing state of the specified user.
|
|
284
|
+
* Gets the complete routing state of the specified user.
|
|
285
|
+
* <p>
|
|
286
|
+
* The routing state includes the forward, overflow, Do Not Disturb and remote
|
|
287
|
+
* extension activation status in a single call.
|
|
274
288
|
* <p>
|
|
275
289
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
276
290
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -281,11 +295,15 @@ export declare class Routing extends EventEmitter {
|
|
|
281
295
|
*/
|
|
282
296
|
getRoutingState(loginName?: string | null): Promise<RoutingState | null>;
|
|
283
297
|
/**
|
|
284
|
-
*
|
|
298
|
+
* Requests a snapshot event to be fired with the current routing state of the specified user.
|
|
299
|
+
* <p>
|
|
300
|
+
* The {@link ON_ROUTING_STATE_CHANGED} event will contain the {@link RoutingState}
|
|
301
|
+
* (forward/overflow/DND state). If a second request is made while the previous one is still
|
|
302
|
+
* in progress, it has no effect.
|
|
285
303
|
* <p>
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
304
|
+
* If the session has been opened by an administrator and `loginName` is `null`, the snapshot
|
|
305
|
+
* is requested for all users. The request is immediately acknowledged but processing may take
|
|
306
|
+
* a long time if the number of users is large.
|
|
289
307
|
* <p>
|
|
290
308
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
291
309
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o2g-routing.d.ts","sourceRoot":"","sources":["../../../src/services/o2g-routing.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAIlC,OAAO,EAAE,gBAAgB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,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAItE;;;;;;;;;;;;;;;OAeG;IACG,kBAAkB,CAAC,SAAS,EAAE,gBAAgB,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,eAAe,CACjB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,gBAAgB,EAC3B,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;;;OAYG;IACG,cAAc,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvE;;;;;;;;;OASG;IACG,WAAW,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAI5E;;;;;;;;;;;;;;;;;OAiBG;IACG,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1G;;;;;;;;;;;;OAYG;IACG,eAAe,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,eAAe,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;CAG3E"}
|
|
@@ -4,8 +4,7 @@ import { Tones } from '../types/rsi/tones';
|
|
|
4
4
|
import { RsiPoint } from '../types/rsi/rsi-point';
|
|
5
5
|
import { RouteSession } from '../types/rsi/route-session';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* points features:
|
|
7
|
+
* `Rsi` provides access to the RSI (Routing Service Intelligence) point features:
|
|
9
8
|
* <ul>
|
|
10
9
|
* <li>Makes route selection.</li>
|
|
11
10
|
* <li>Makes digits collection.</li>
|
|
@@ -13,143 +12,152 @@ import { RouteSession } from '../types/rsi/route-session';
|
|
|
13
12
|
* <li>Plays announcements (prompts and/or digits).</li>
|
|
14
13
|
* </ul>
|
|
15
14
|
* <p>
|
|
16
|
-
* To be able to receive
|
|
17
|
-
*
|
|
18
|
-
* point.
|
|
15
|
+
* To be able to receive route requests from the OmniPCX Enterprise, the application
|
|
16
|
+
* must first subscribe to RSI events and then enable the RSI point.
|
|
19
17
|
* <p>
|
|
20
18
|
* Using this service requires having a <b>CONTACTCENTER_RSI</b> license.
|
|
21
19
|
*/
|
|
22
20
|
export declare class Rsi extends EventEmitter {
|
|
23
21
|
#private;
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
23
|
+
* Raised when a digit collection session has ended.
|
|
26
24
|
* @event
|
|
27
25
|
*/
|
|
28
26
|
static readonly ON_DIGIT_COLLECTED = "OnDigitCollected";
|
|
29
27
|
/**
|
|
30
|
-
* Raised from
|
|
28
|
+
* Raised from an RSI point when a tone generation starts.
|
|
31
29
|
* @event
|
|
32
30
|
*/
|
|
33
31
|
static readonly ON_TONE_GENERATED_START = "OnToneGeneratedStart";
|
|
34
32
|
/**
|
|
35
|
-
* Raised from
|
|
33
|
+
* Raised from an RSI point when a tone generation stops.
|
|
36
34
|
* @event
|
|
37
35
|
*/
|
|
38
36
|
static readonly ON_TONE_GENERATED_STOP = "OnToneGeneratedStop";
|
|
39
37
|
/**
|
|
40
|
-
* Raised from a
|
|
38
|
+
* Raised from a routing point to close a route session (the routing Crid is no longer valid).
|
|
41
39
|
* @event
|
|
42
40
|
*/
|
|
43
41
|
static readonly ON_ROUTE_END = "OnRouteEnd";
|
|
44
42
|
/**
|
|
45
|
-
* Raised from a
|
|
43
|
+
* Raised from a routing point to request a route selection.
|
|
46
44
|
* @event
|
|
47
45
|
*/
|
|
48
46
|
static readonly ON_ROUTE_REQUEST = "OnRouteRequest";
|
|
49
47
|
/**
|
|
50
|
-
* Gets the configured
|
|
48
|
+
* Gets the configured RSI points.
|
|
49
|
+
*
|
|
50
|
+
* @returns the list of {@link RsiPoint} objects representing all declared RSI points, or `null` in case of error.
|
|
51
51
|
*/
|
|
52
52
|
getRsiPoints(): Promise<RsiPoint[] | null>;
|
|
53
53
|
/**
|
|
54
|
-
* Enables the specified
|
|
54
|
+
* Enables the specified RSI point.
|
|
55
55
|
*
|
|
56
|
-
* @param rsiNumber the
|
|
57
|
-
* @param
|
|
56
|
+
* @param rsiNumber the RSI point extension number
|
|
57
|
+
* @param backup `true` to enable the RSI point in backup mode
|
|
58
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
58
59
|
*/
|
|
59
60
|
enableRsiPoint(rsiNumber: string, backup?: boolean): Promise<boolean>;
|
|
60
61
|
/**
|
|
61
|
-
* Disables the specified
|
|
62
|
+
* Disables the specified RSI point.
|
|
62
63
|
*
|
|
63
|
-
* @param rsiNumber the
|
|
64
|
+
* @param rsiNumber the RSI point extension number
|
|
65
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
64
66
|
*/
|
|
65
67
|
disableRsiPoint(rsiNumber: string): Promise<boolean>;
|
|
66
68
|
/**
|
|
67
|
-
* Starts a digits collection
|
|
69
|
+
* Starts a digits collection on the specified RSI point, for the specified call.
|
|
68
70
|
*
|
|
69
|
-
* @param rsiNumber the
|
|
71
|
+
* @param rsiNumber the RSI point extension number
|
|
70
72
|
* @param callRef the call reference
|
|
71
|
-
* @param numChars the
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @param flushChar the optional character used to stop the digit
|
|
75
|
-
* collection when pressed.
|
|
76
|
-
* @param timeout optional timeout in second. Stop the digit
|
|
77
|
-
* collection after this time elapses.
|
|
73
|
+
* @param numChars the optional number of digits to collect; the digit collection stops when this number is reached
|
|
74
|
+
* @param flushChar the optional character that stops the digit collection when pressed
|
|
75
|
+
* @param timeout the optional timeout in seconds; the digit collection stops when this delay elapses
|
|
78
76
|
* @param additionalCriteria extension criteria used to collect digits
|
|
77
|
+
* @returns a unique identifier (Crid) for this digit collection session, or `null` in case of error.
|
|
79
78
|
* @see {@link ON_DIGIT_COLLECTED} event
|
|
80
79
|
* @see {@link stopCollectDigits}
|
|
81
80
|
*/
|
|
82
81
|
startCollectDigits(rsiNumber: string, callRef: string, numChars: number, flushChar?: string | null, timeout?: number | null, additionalCriteria?: AdditionalDigitCollectionCriteria | null): Promise<boolean | null>;
|
|
83
82
|
/**
|
|
84
|
-
* Stops the specified digits collection.
|
|
83
|
+
* Stops the specified digits collection on the specified RSI point.
|
|
85
84
|
*
|
|
86
|
-
* @param rsiNumber the
|
|
87
|
-
* @param
|
|
88
|
-
* @
|
|
85
|
+
* @param rsiNumber the RSI point extension number
|
|
86
|
+
* @param collCrid the digit collection identifier returned by {@link startCollectDigits}
|
|
87
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
88
|
+
* @see {@link startCollectDigits}
|
|
89
89
|
*/
|
|
90
90
|
stopCollectDigits(rsiNumber: string, collCrid: string): Promise<boolean>;
|
|
91
91
|
/**
|
|
92
92
|
* Plays the specified tone on the specified call.
|
|
93
93
|
*
|
|
94
|
-
* @param rsiNumber the
|
|
94
|
+
* @param rsiNumber the RSI point extension number
|
|
95
95
|
* @param callRef the call reference
|
|
96
96
|
* @param tone the tone to play
|
|
97
|
-
* @param duration the duration the tone is played
|
|
98
|
-
* @
|
|
99
|
-
* @see {@link
|
|
97
|
+
* @param duration the duration the tone is played, in seconds
|
|
98
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
99
|
+
* @see {@link ON_TONE_GENERATED_START} event
|
|
100
|
+
* @see {@link cancelTone}
|
|
100
101
|
*/
|
|
101
102
|
playTone(rsiNumber: string, callRef: string, tone: Tones, duration: number): Promise<boolean>;
|
|
102
103
|
/**
|
|
103
|
-
* Cancels
|
|
104
|
+
* Cancels the tone currently playing on the specified call.
|
|
104
105
|
*
|
|
105
|
-
* @param rsiNumber the
|
|
106
|
+
* @param rsiNumber the RSI point extension number
|
|
106
107
|
* @param callRef the call reference
|
|
107
|
-
* @
|
|
108
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
109
|
+
* @see {@link ON_TONE_GENERATED_STOP} event
|
|
108
110
|
* @see {@link playTone}
|
|
109
111
|
*/
|
|
110
112
|
cancelTone(rsiNumber: string, callRef: string): Promise<boolean>;
|
|
111
113
|
/**
|
|
112
114
|
* Plays the specified voice guide on the specified call.
|
|
113
115
|
*
|
|
114
|
-
* @param rsiNumber the
|
|
116
|
+
* @param rsiNumber the RSI point extension number
|
|
115
117
|
* @param callRef the call reference
|
|
116
|
-
* @param guideNumber the voice guide number as defined in the
|
|
117
|
-
*
|
|
118
|
-
* @
|
|
118
|
+
* @param guideNumber the voice guide number as defined in the OmniPCX Enterprise
|
|
119
|
+
* @param duration an optional duration for the voice guide, in seconds
|
|
120
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
119
121
|
* @see {@link ON_TONE_GENERATED_START}
|
|
120
122
|
*/
|
|
121
123
|
playVoiceGuide(rsiNumber: string, callRef: string, guideNumber: number, duration?: number | null): Promise<boolean>;
|
|
122
124
|
/**
|
|
123
|
-
* Ends a route session.
|
|
125
|
+
* Ends a route session, indicating that no route will be selected.
|
|
124
126
|
*
|
|
125
|
-
* @param rsiNumber the
|
|
127
|
+
* @param rsiNumber the RSI point extension number
|
|
126
128
|
* @param routeCrid the routing session unique identifier
|
|
127
|
-
* @
|
|
129
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
130
|
+
* @see {@link ON_ROUTE_REQUEST} event
|
|
128
131
|
*/
|
|
129
132
|
routeEnd(rsiNumber: string, routeCrid: string): Promise<boolean>;
|
|
130
133
|
/**
|
|
131
|
-
* Selects a route
|
|
132
|
-
*
|
|
134
|
+
* Selects a route as a response to a route request.
|
|
135
|
+
* <p>
|
|
136
|
+
* `callingLine` can be used to change the identity of the calling number presented to the called party.
|
|
137
|
+
*
|
|
138
|
+
* @param rsiNumber the RSI point extension number
|
|
133
139
|
* @param routeCrid the routing session unique identifier
|
|
134
140
|
* @param selectedRoute the selected route number
|
|
135
|
-
* @param callingLine an optional calling line
|
|
136
|
-
*
|
|
137
|
-
* @param
|
|
138
|
-
* @
|
|
139
|
-
* @see {@link ON_ROUTE_REQUEST} event
|
|
141
|
+
* @param callingLine an optional calling line number that will be presented to the selected route
|
|
142
|
+
* @param associatedData optional correlator data to attach to the call
|
|
143
|
+
* @param routeToVoiceMail `true` if the selected route is the voice mail; `false` otherwise
|
|
144
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
145
|
+
* @see {@link ON_ROUTE_REQUEST} event
|
|
140
146
|
*/
|
|
141
147
|
routeSelect(rsiNumber: string, routeCrid: string, selectedRoute: string, callingLine?: string | null, associatedData?: string | null, routeToVoiceMail?: boolean | null): Promise<boolean>;
|
|
142
148
|
/**
|
|
143
|
-
* Gets the list of existing route sessions for the specified
|
|
149
|
+
* Gets the list of existing route sessions for the specified RSI point.
|
|
144
150
|
*
|
|
145
|
-
* @param rsiNumber the
|
|
151
|
+
* @param rsiNumber the RSI point extension number
|
|
152
|
+
* @returns the list of {@link RouteSession} objects representing the route sessions in progress, or `null` in case of error.
|
|
146
153
|
*/
|
|
147
154
|
getRouteSessions(rsiNumber: string): Promise<RouteSession[] | null>;
|
|
148
155
|
/**
|
|
149
|
-
*
|
|
156
|
+
* Returns the specified route session.
|
|
150
157
|
*
|
|
151
|
-
* @param rsiNumber the
|
|
158
|
+
* @param rsiNumber the RSI point extension number
|
|
152
159
|
* @param routeCrid the routing session unique identifier
|
|
160
|
+
* @returns the {@link RouteSession} object on success; `null` in case of error or if no such route session exists.
|
|
153
161
|
*/
|
|
154
162
|
getRouteSession(rsiNumber: string, routeCrid: string): Promise<RouteSession | null>;
|
|
155
163
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o2g-rsi.d.ts","sourceRoot":"","sources":["../../../src/services/o2g-rsi.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CA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