ue-softphone-sdk-beta 4.0.28 → 4.0.29
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.
|
@@ -19,6 +19,7 @@ interface InitOptions {
|
|
|
19
19
|
error?: Function;
|
|
20
20
|
server?: string;
|
|
21
21
|
audioInfo?: AudioInfo;
|
|
22
|
+
sdkMonitorType?: any;
|
|
22
23
|
isOpenNetwork?: boolean;
|
|
23
24
|
volume?: {
|
|
24
25
|
open: boolean;
|
|
@@ -28,6 +29,7 @@ interface InitOptions {
|
|
|
28
29
|
pushCallinRingStatistics?: boolean;
|
|
29
30
|
isOpenCallQueue?: boolean;
|
|
30
31
|
openNlsTranslation?: boolean;
|
|
32
|
+
monitor?: boolean;
|
|
31
33
|
}
|
|
32
34
|
interface OnCallEventParams {
|
|
33
35
|
success?: Function;
|
|
@@ -140,6 +142,31 @@ interface meetingParams {
|
|
|
140
142
|
success?: Function;
|
|
141
143
|
fail?: Function;
|
|
142
144
|
}
|
|
145
|
+
interface listenParams {
|
|
146
|
+
agentNumber: String;
|
|
147
|
+
success?: Function;
|
|
148
|
+
fail?: Function;
|
|
149
|
+
}
|
|
150
|
+
interface lootParams {
|
|
151
|
+
agentNumber: String;
|
|
152
|
+
success?: Function;
|
|
153
|
+
fail?: Function;
|
|
154
|
+
}
|
|
155
|
+
interface whisperParams {
|
|
156
|
+
agentNumber: String;
|
|
157
|
+
success?: Function;
|
|
158
|
+
fail?: Function;
|
|
159
|
+
}
|
|
160
|
+
interface forcedHangupParams {
|
|
161
|
+
agentNumber: String;
|
|
162
|
+
success?: Function;
|
|
163
|
+
fail?: Function;
|
|
164
|
+
}
|
|
165
|
+
interface breakinParams {
|
|
166
|
+
agentNumber: String;
|
|
167
|
+
success?: Function;
|
|
168
|
+
fail?: Function;
|
|
169
|
+
}
|
|
143
170
|
export default class ueSoftphone {
|
|
144
171
|
static ueTimer: any;
|
|
145
172
|
static loginToken: String | undefined;
|
|
@@ -164,6 +191,7 @@ export default class ueSoftphone {
|
|
|
164
191
|
private attachEventCallbacks;
|
|
165
192
|
private attachMonitorEventCallbacks;
|
|
166
193
|
private attachNlsTranslationEventCallbacks;
|
|
194
|
+
private allMonitorEventCallbacks;
|
|
167
195
|
constructor(options?: InitOptions);
|
|
168
196
|
private init;
|
|
169
197
|
private getDomain;
|
|
@@ -190,12 +218,16 @@ export default class ueSoftphone {
|
|
|
190
218
|
stopListenVolume: (callbacks: OnCallVolumeParams) => void;
|
|
191
219
|
private turnOffRingCallbacks;
|
|
192
220
|
muteRing: (callbacks: OnCallVolumeParams) => void;
|
|
221
|
+
sdkMonitorMsg: (params: any) => void;
|
|
193
222
|
private initAgentQueue;
|
|
194
223
|
private initQueue;
|
|
195
224
|
static createQueueMonitorEventHandle(callbacks?: any): void;
|
|
196
225
|
static createopenNlsTransEventHandle(callbacks?: any): void;
|
|
226
|
+
static createopenAllMonitorEventHandle(callbacks?: any, msg?: any): void;
|
|
227
|
+
static handleHttpMonitor(msg: any, callbacks: any): void;
|
|
197
228
|
listenCallQueueEvent: (callbacks: any) => void;
|
|
198
229
|
listenTranslationEvent: (callbacks: any) => void;
|
|
230
|
+
listenMonitor: (callbacks: any) => void;
|
|
199
231
|
static useDefaultDependencies(deps: any): {
|
|
200
232
|
newWebSocket(server: string, proto: any): any;
|
|
201
233
|
request(url: string, options: any): any;
|
|
@@ -232,6 +264,11 @@ export default class ueSoftphone {
|
|
|
232
264
|
threeWayCall(params: threeWayCallParams): void;
|
|
233
265
|
evaluate(params: satisfactionParams): void;
|
|
234
266
|
meeting(params: meetingParams): void;
|
|
267
|
+
listen(params: listenParams): void;
|
|
268
|
+
loot(params: lootParams): void;
|
|
269
|
+
forcedHangup(params: forcedHangupParams): void;
|
|
270
|
+
breakIn(params: breakinParams): void;
|
|
271
|
+
whisper(params: whisperParams): void;
|
|
235
272
|
};
|
|
236
273
|
private _callApi;
|
|
237
274
|
private _agentApi;
|