@vgroup/dialbox 0.6.26 → 0.6.28
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/esm2020/lib/components/call-progress/call-progress.component.mjs +6 -3
- package/esm2020/lib/dialbox.component.mjs +4 -4
- package/fesm2015/vgroup-dialbox.mjs +16 -13
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +8 -5
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2103,8 +2103,8 @@ class CallProgressComponent {
|
|
|
2103
2103
|
conference: c.isConference || false
|
|
2104
2104
|
});
|
|
2105
2105
|
c.isMute = !c.isMute;
|
|
2106
|
-
|
|
2107
|
-
this.filteredParticipentList = this.allParticipentList;
|
|
2106
|
+
// await this.getAllParticipants(c?.conferenceSid);
|
|
2107
|
+
// this.filteredParticipentList = this.allParticipentList;
|
|
2108
2108
|
this.cdr.detectChanges();
|
|
2109
2109
|
});
|
|
2110
2110
|
}
|
|
@@ -2710,6 +2710,9 @@ class CallProgressComponent {
|
|
|
2710
2710
|
// this.isCallInProgress = true;
|
|
2711
2711
|
console.log('call startted', callData);
|
|
2712
2712
|
this.callContact(number, true);
|
|
2713
|
+
if (false) {
|
|
2714
|
+
this.startCall({});
|
|
2715
|
+
}
|
|
2713
2716
|
// this.callInitiated.emit({ ...this.callData });
|
|
2714
2717
|
return true;
|
|
2715
2718
|
}
|
|
@@ -3866,15 +3869,15 @@ class DialboxComponent {
|
|
|
3866
3869
|
this.registerDragElement();
|
|
3867
3870
|
}
|
|
3868
3871
|
ngOnChanges(changes) {
|
|
3869
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
3870
|
-
if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification && this.incomingCallnotification.data.content != "Voicemail") {
|
|
3871
|
-
if (((
|
|
3872
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
3873
|
+
if (((_a = changes['incomingCallnotification']) === null || _a === void 0 ? void 0 : _a.currentValue) && this.incomingCallnotification && ((_c = (_b = this.incomingCallnotification) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.content) != "Voicemail") {
|
|
3874
|
+
if (((_e = (_d = this.incomingCallnotification) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.content) == "IncomingCall" && ((_g = (_f = this.incomingCallnotification) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.status) != "rejected" && ((_k = (_j = (_h = this.incomingCallnotification) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.status) != "accepted") {
|
|
3872
3875
|
this.isIncomingCallnotification = true;
|
|
3873
3876
|
let callerInfo;
|
|
3874
3877
|
let numberList = this.callerIdList.map((res) => res.number);
|
|
3875
|
-
if (!numberList.includes((
|
|
3876
|
-
if (((
|
|
3877
|
-
this.extensionService.getUserInformation((
|
|
3878
|
+
if (!numberList.includes((_l = this.incomingCallnotification.data.data) === null || _l === void 0 ? void 0 : _l.fromNumber)) {
|
|
3879
|
+
if (((_o = (_m = this.incomingCallnotification.data) === null || _m === void 0 ? void 0 : _m.data) === null || _o === void 0 ? void 0 : _o.c2cBusiness) != 'false' && ((_p = this.incomingCallnotification.data.data) === null || _p === void 0 ? void 0 : _p.participantId)) {
|
|
3880
|
+
this.extensionService.getUserInformation((_q = this.incomingCallnotification.data.data) === null || _q === void 0 ? void 0 : _q.participantId).subscribe((resInfo) => {
|
|
3878
3881
|
callerInfo = (resInfo === null || resInfo === void 0 ? void 0 : resInfo.c2cInformation) || {};
|
|
3879
3882
|
this.incomingCallNotification(callerInfo);
|
|
3880
3883
|
});
|
|
@@ -3884,7 +3887,7 @@ class DialboxComponent {
|
|
|
3884
3887
|
}
|
|
3885
3888
|
}
|
|
3886
3889
|
}
|
|
3887
|
-
else if (this.incomingCallnotification.data.content == "Missed Call" || ((
|
|
3890
|
+
else if (((_s = (_r = this.incomingCallnotification) === null || _r === void 0 ? void 0 : _r.data) === null || _s === void 0 ? void 0 : _s.content) == "Missed Call" || ((_v = (_u = (_t = this.incomingCallnotification) === null || _t === void 0 ? void 0 : _t.data) === null || _u === void 0 ? void 0 : _u.data) === null || _v === void 0 ? void 0 : _v.status) == "rejected" || ((_y = (_x = (_w = this.incomingCallnotification) === null || _w === void 0 ? void 0 : _w.data) === null || _x === void 0 ? void 0 : _x.data) === null || _y === void 0 ? void 0 : _y.status) == "accepted") {
|
|
3888
3891
|
let index = this.notificationCallList.findIndex((call) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j; return call.participantId === ((_c = (_b = (_a = this.incomingCallnotification) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.recordId) || call.participantId === ((_f = (_e = (_d = this.incomingCallnotification) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.recordId) || call.participantId === ((_j = (_h = (_g = this.incomingCallnotification) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.participantId); });
|
|
3889
3892
|
if (index > -1) {
|
|
3890
3893
|
this.notificationCallList.splice(index, 1);
|
|
@@ -3895,7 +3898,7 @@ class DialboxComponent {
|
|
|
3895
3898
|
this.cdk.detectChanges();
|
|
3896
3899
|
}
|
|
3897
3900
|
console.log('test', this.incomingCallsList);
|
|
3898
|
-
if (!((
|
|
3901
|
+
if (!((_z = this.incomingCallsList) === null || _z === void 0 ? void 0 : _z.length)) {
|
|
3899
3902
|
this.isCallInProgress = false;
|
|
3900
3903
|
}
|
|
3901
3904
|
this.incomeingCallSocketService.pause();
|
|
@@ -3905,7 +3908,7 @@ class DialboxComponent {
|
|
|
3905
3908
|
}
|
|
3906
3909
|
console.log('notificationCallList', this.notificationCallList);
|
|
3907
3910
|
let parentCall = [];
|
|
3908
|
-
if ((
|
|
3911
|
+
if ((_0 = this.notificationCallList) === null || _0 === void 0 ? void 0 : _0.length) {
|
|
3909
3912
|
this.notificationCallList = this.notificationCallList.filter((res) => res.endTime >= (new Date().getTime()));
|
|
3910
3913
|
this.notificationCallList.forEach((call) => {
|
|
3911
3914
|
this.incomingCallsList.forEach((item) => {
|
|
@@ -3932,10 +3935,10 @@ class DialboxComponent {
|
|
|
3932
3935
|
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3933
3936
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3934
3937
|
}
|
|
3935
|
-
if (((
|
|
3938
|
+
if (((_1 = changes['userId']) === null || _1 === void 0 ? void 0 : _1.currentValue) && this.userId) {
|
|
3936
3939
|
this.extensionService.userId = this.userId;
|
|
3937
3940
|
}
|
|
3938
|
-
if (((
|
|
3941
|
+
if (((_2 = changes['contactInfo']) === null || _2 === void 0 ? void 0 : _2.currentValue) && this.contactInfo) {
|
|
3939
3942
|
let contact = this.contactInfo;
|
|
3940
3943
|
console.log('contactInfo', contact);
|
|
3941
3944
|
if (contact.number) {
|