@vgroup/dialbox 0.6.3-0.16 → 0.6.3-0.18

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.
@@ -2636,24 +2636,14 @@ class CallProgressComponent {
2636
2636
  deviceId: this.deviceId,
2637
2637
  conferenceId: (data === null || data === void 0 ? void 0 : data.conferenceId) || 'no'
2638
2638
  };
2639
- this.extensionService.setIncomingCallStatus(payload).subscribe((res) => __awaiter(this, void 0, void 0, function* () {
2640
- if (res.status == 200) {
2641
- this.call = yield this.twilioService.connect({ conferenceId: res.conferenceId, conferenceName: res.conferenceName });
2642
- this.incomeingCallSocketService.isCurrentIncomingCallList.push(data === null || data === void 0 ? void 0 : data.id);
2643
- console.log(this.call, 'callConnect');
2644
- data.isAcceptCall = true;
2645
- this.isIncomingCallBtnDisable = false;
2646
- this.incomeingCallSocketService.pause();
2647
- }
2648
- else {
2649
- let index = this.currentCallList.findIndex((res) => res.participantId == data.participantId);
2650
- this.currentCallList.splice(index, 1);
2651
- swal("Error", res === null || res === void 0 ? void 0 : res.message.join("<br/>"), "error");
2652
- this.incomeingCallSocketService.pause();
2653
- this.isIncomingCallBtnDisable = false;
2654
- this.endCallEvent.emit(data);
2655
- }
2656
- }));
2639
+ // this.extensionService.setIncomingCallStatus(payload).subscribe(async (res: any) => {
2640
+ // if (res.status == 200) {
2641
+ this.call = yield this.twilioService.connect({ conferenceId: data.conferenceId, conferenceName: `conf_${data.conferenceId}` });
2642
+ this.incomeingCallSocketService.isCurrentIncomingCallList.push(data === null || data === void 0 ? void 0 : data.id);
2643
+ console.log(this.call, 'callConnect');
2644
+ data.isAcceptCall = true;
2645
+ this.isIncomingCallBtnDisable = false;
2646
+ this.incomeingCallSocketService.pause();
2657
2647
  });
2658
2648
  }
2659
2649
  callContact(contact, isUnsavedNumber) {
@@ -2783,7 +2773,7 @@ class CallProgressComponent {
2783
2773
  });
2784
2774
  }
2785
2775
  CallToUnsavedNumber(number, isNewConference) {
2786
- var _a, _b, _c;
2776
+ var _a;
2787
2777
  return __awaiter(this, void 0, void 0, function* () {
2788
2778
  try {
2789
2779
  const isInvalid = yield this.isInvalidNumber(number);
@@ -2850,20 +2840,20 @@ class CallProgressComponent {
2850
2840
  // if(this.currentCall.isConference) {
2851
2841
  this.isNewAddedCall = true;
2852
2842
  let participentList = [];
2853
- yield this.currentCallList.forEach((resData) => {
2854
- if (!resData.isHold && (resData === null || resData === void 0 ? void 0 : resData.participantId)) {
2855
- participentList.push(resData === null || resData === void 0 ? void 0 : resData.participantId);
2856
- }
2857
- });
2843
+ // await this.currentCallList.forEach((resData)=>{
2844
+ // if(!resData.isHold && resData?.participantId) {
2845
+ // participentList.push(resData?.participantId)
2846
+ // }
2847
+ // })
2858
2848
  if (participentList === null || participentList === void 0 ? void 0 : participentList.length) {
2859
- yield this.onholdOrUnholdParticipant({
2860
- participantId: participentList,
2861
- conferenceId: this.currentCall.conferenceId,
2862
- hold: true,
2863
- mute: ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.mute) || false,
2864
- conference: ((_b = this.currentCall) === null || _b === void 0 ? void 0 : _b.isConference) || false
2865
- });
2866
- if ((_c = this.currentCall) === null || _c === void 0 ? void 0 : _c.isConference) {
2849
+ // await this.onholdOrUnholdParticipant({
2850
+ // participantId: participentList,
2851
+ // conferenceId: this.currentCall.conferenceId,
2852
+ // hold: true,
2853
+ // mute: this.currentCall?.mute || false,
2854
+ // conference: this.currentCall?.isConference || false
2855
+ // });
2856
+ if ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.isConference) {
2867
2857
  this.isConferenceCallHold = true;
2868
2858
  }
2869
2859
  this.startCall(callData, isNewConference);