webitel-sdk 0.1.187 → 0.1.189
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 +12 -6
- 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 +18 -9
- 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/call.js +4 -2
- package/esm2015/socket/call.js.map +1 -1
- package/esm2015/socket/task.js +8 -4
- package/esm2015/socket/task.js.map +1 -1
- package/esm5/socket/call.js +10 -5
- package/esm5/socket/call.js.map +1 -1
- package/esm5/socket/task.js +8 -4
- package/esm5/socket/task.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/call.d.ts.map +1 -1
- package/types/socket/task.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -33739,6 +33739,10 @@ class Task {
|
|
|
33739
33739
|
if (e.form) {
|
|
33740
33740
|
this.form = e.form;
|
|
33741
33741
|
}
|
|
33742
|
+
if (this._autoAnswerTimerId) {
|
|
33743
|
+
clearTimeout(this._autoAnswerTimerId);
|
|
33744
|
+
this._autoAnswerTimerId = null;
|
|
33745
|
+
}
|
|
33742
33746
|
}
|
|
33743
33747
|
setProcessing(now, p) {
|
|
33744
33748
|
this.state = JobState.Processing;
|
|
@@ -33828,12 +33832,12 @@ class Task {
|
|
|
33828
33832
|
});
|
|
33829
33833
|
}
|
|
33830
33834
|
async acceptDelay() {
|
|
33831
|
-
if (this.autoAnswered) {
|
|
33832
|
-
return;
|
|
33833
|
-
}
|
|
33834
|
-
this.autoAnswered = true;
|
|
33835
33835
|
this._autoAnswerTimerId = setTimeout(async () => {
|
|
33836
|
+
if (this.autoAnswered) {
|
|
33837
|
+
return;
|
|
33838
|
+
}
|
|
33836
33839
|
if (!this.answeredAt) {
|
|
33840
|
+
this.autoAnswered = true;
|
|
33837
33841
|
await this.accept();
|
|
33838
33842
|
}
|
|
33839
33843
|
}, this.autoAnswerDelay);
|
|
@@ -34516,9 +34520,11 @@ class Call {
|
|
|
34516
34520
|
if (this.autoAnswered) {
|
|
34517
34521
|
return;
|
|
34518
34522
|
}
|
|
34519
|
-
this.autoAnswered = true;
|
|
34520
34523
|
this._autoAnswerTimerId = setTimeout(async () => {
|
|
34521
|
-
|
|
34524
|
+
if (this.autoAnswered) {
|
|
34525
|
+
return;
|
|
34526
|
+
}
|
|
34527
|
+
this.autoAnswered = await this.answer(req);
|
|
34522
34528
|
}, this.autoAnswerDelay);
|
|
34523
34529
|
}
|
|
34524
34530
|
async hangup(cause) {
|