webitel-sdk 23.7.12 → 23.7.13
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/bundles/index.esm.js +21 -3
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +21 -3
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/socket/agent.js +21 -3
- package/esm2015/socket/agent.js.map +1 -1
- package/esm5/socket/agent.js +21 -3
- package/esm5/socket/agent.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/agent.d.ts +20 -6
- package/types/socket/agent.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -42108,10 +42108,28 @@ class Agent {
|
|
|
42108
42108
|
for (const el of list) {
|
|
42109
42109
|
switch (el.channel) {
|
|
42110
42110
|
case ChannelType.Call:
|
|
42111
|
-
this.waitingListCalls.push(
|
|
42111
|
+
this.waitingListCalls.push({
|
|
42112
|
+
displayName: el.communication.name || '',
|
|
42113
|
+
displayNumber: el.communication.destination || '',
|
|
42114
|
+
attemptId: el.attempt_id,
|
|
42115
|
+
deadline: el.deadline,
|
|
42116
|
+
position: el.position,
|
|
42117
|
+
queue: el.queue,
|
|
42118
|
+
wait: el.wait,
|
|
42119
|
+
});
|
|
42112
42120
|
break;
|
|
42113
42121
|
case ChannelType.Chat:
|
|
42114
|
-
this.waitingListChats.push(
|
|
42122
|
+
this.waitingListChats.push({
|
|
42123
|
+
chat: el.communication.chat || '',
|
|
42124
|
+
displayName: el.communication.name || '',
|
|
42125
|
+
message: el.communication.msg || '',
|
|
42126
|
+
peer: el.communication.destination || '',
|
|
42127
|
+
attemptId: el.attempt_id,
|
|
42128
|
+
deadline: el.deadline,
|
|
42129
|
+
position: el.position,
|
|
42130
|
+
queue: el.queue,
|
|
42131
|
+
wait: el.wait,
|
|
42132
|
+
});
|
|
42115
42133
|
break;
|
|
42116
42134
|
default:
|
|
42117
42135
|
}
|
|
@@ -42337,7 +42355,7 @@ class Agent {
|
|
|
42337
42355
|
}
|
|
42338
42356
|
function removeWaitingList(list, attemptId) {
|
|
42339
42357
|
for (let i = 0; i < list.length; i++) {
|
|
42340
|
-
if (list[i].
|
|
42358
|
+
if (list[i].attemptId === attemptId) {
|
|
42341
42359
|
list.splice(i, 1);
|
|
42342
42360
|
return true;
|
|
42343
42361
|
}
|