@vgroup/dialbox 0.6.78 → 0.6.79

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.
@@ -3856,7 +3856,7 @@ class DialboxComponent {
3856
3856
  this.registerDragElement();
3857
3857
  }
3858
3858
  ngOnChanges(changes) {
3859
- 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, _3;
3859
+ 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, _3, _4, _5, _6;
3860
3860
  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") {
3861
3861
  let index = this.notificationCallList.findIndex((resInfo) => { var _a, _b, _c; return (resInfo === null || resInfo === void 0 ? void 0 : resInfo.conferenceId) == ((_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.conferenceId); });
3862
3862
  if (index == -1 && ((_e = (_d = this.incomingCallnotification) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.content) == "IncomingCall" && ((_h = (_g = (_f = this.incomingCallnotification) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.status) != "rejected" && ((_l = (_k = (_j = this.incomingCallnotification) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.data) === null || _l === void 0 ? void 0 : _l.status) != "accepted") {
@@ -3875,7 +3875,7 @@ class DialboxComponent {
3875
3875
  }
3876
3876
  }
3877
3877
  }
3878
- else if (((_t = (_s = this.incomingCallnotification) === null || _s === void 0 ? void 0 : _s.data) === null || _t === void 0 ? void 0 : _t.content) == "Missed Call" || ((_w = (_v = (_u = this.incomingCallnotification) === null || _u === void 0 ? void 0 : _u.data) === null || _v === void 0 ? void 0 : _v.data) === null || _w === void 0 ? void 0 : _w.status) == "rejected") {
3878
+ else if (((_t = (_s = this.incomingCallnotification) === null || _s === void 0 ? void 0 : _s.data) === null || _t === void 0 ? void 0 : _t.content) == "Missed Call" || ((_w = (_v = (_u = this.incomingCallnotification) === null || _u === void 0 ? void 0 : _u.data) === null || _v === void 0 ? void 0 : _v.data) === null || _w === void 0 ? void 0 : _w.status) == "rejected" || ((_z = (_y = (_x = this.incomingCallnotification) === null || _x === void 0 ? void 0 : _x.data) === null || _y === void 0 ? void 0 : _y.data) === null || _z === void 0 ? void 0 : _z.status) == "accepted") {
3879
3879
  let index = this.notificationCallList.findIndex((call) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j; return (call === null || call === void 0 ? void 0 : 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 === null || call === void 0 ? void 0 : 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 === null || call === void 0 ? void 0 : 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); });
3880
3880
  if (index > -1) {
3881
3881
  this.notificationCallList.splice(index, 1);
@@ -3885,7 +3885,7 @@ class DialboxComponent {
3885
3885
  this.incomingCallsList.splice(incomingCallIndex, 1);
3886
3886
  this.incomeingCallSocketService.pause();
3887
3887
  this.cdk.detectChanges();
3888
- if (!((_x = this.incomingCallsList) === null || _x === void 0 ? void 0 : _x.length)) {
3888
+ if (!((_0 = this.incomingCallsList) === null || _0 === void 0 ? void 0 : _0.length)) {
3889
3889
  console.log('407');
3890
3890
  this.isCallInProgress = false;
3891
3891
  }
@@ -3898,7 +3898,7 @@ class DialboxComponent {
3898
3898
  }
3899
3899
  console.log('notificationCallList', this.notificationCallList);
3900
3900
  let parentCall = [];
3901
- if ((_y = this.notificationCallList) === null || _y === void 0 ? void 0 : _y.length) {
3901
+ if ((_1 = this.notificationCallList) === null || _1 === void 0 ? void 0 : _1.length) {
3902
3902
  this.notificationCallList = this.notificationCallList.filter((res) => res.endTime >= (new Date().getTime()));
3903
3903
  this.notificationCallList.forEach((call) => {
3904
3904
  this.incomingCallsList.forEach((item) => {
@@ -3925,10 +3925,10 @@ class DialboxComponent {
3925
3925
  this.twilioService.deviceId = changes['deviceId'].currentValue;
3926
3926
  console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
3927
3927
  }
3928
- if (((_z = changes['userId']) === null || _z === void 0 ? void 0 : _z.currentValue) && this.userId) {
3928
+ if (((_2 = changes['userId']) === null || _2 === void 0 ? void 0 : _2.currentValue) && this.userId) {
3929
3929
  this.extensionService.userId = this.userId;
3930
3930
  }
3931
- if (((_0 = changes['contactInfo']) === null || _0 === void 0 ? void 0 : _0.currentValue) && this.contactInfo) {
3931
+ if (((_3 = changes['contactInfo']) === null || _3 === void 0 ? void 0 : _3.currentValue) && this.contactInfo) {
3932
3932
  let contact = this.contactInfo;
3933
3933
  this.isValidationMessageShow = true;
3934
3934
  if (contact.number) {
@@ -4013,14 +4013,14 @@ class DialboxComponent {
4013
4013
  this.incomingCallData.on('disconnect', () => { });
4014
4014
  }
4015
4015
  }
4016
- if ((_1 = changes['callAction']) === null || _1 === void 0 ? void 0 : _1.currentValue) {
4017
- if (((_2 = this.callAction) === null || _2 === void 0 ? void 0 : _2.type) == 'reJoin') {
4016
+ if ((_4 = changes['callAction']) === null || _4 === void 0 ? void 0 : _4.currentValue) {
4017
+ if (((_5 = this.callAction) === null || _5 === void 0 ? void 0 : _5.type) == 'reJoin') {
4018
4018
  console.log('532');
4019
4019
  this.isCallInProgress = true;
4020
4020
  }
4021
4021
  else {
4022
4022
  console.log('534');
4023
- this.extensionService.getRemoveParticipants('all', (_3 = this.callAction) === null || _3 === void 0 ? void 0 : _3.conferenceId).subscribe((res) => { });
4023
+ this.extensionService.getRemoveParticipants('all', (_6 = this.callAction) === null || _6 === void 0 ? void 0 : _6.conferenceId).subscribe((res) => { });
4024
4024
  }
4025
4025
  }
4026
4026
  }