@vgroup/dialbox 0.4.171 → 0.4.173

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.
@@ -1827,7 +1827,7 @@ class CallProgressComponent {
1827
1827
  var _a;
1828
1828
  this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
1829
1829
  this.newIncomingCallsList[i].participants.forEach((res) => __awaiter(this, void 0, void 0, function* () {
1830
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1830
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1831
1831
  if (this.currentCallList.length > 0) {
1832
1832
  let index = this.currentCallList.findIndex((item) => item.id == res.id);
1833
1833
  if (index == -1 && !res.isLeft) {
@@ -1846,18 +1846,20 @@ class CallProgressComponent {
1846
1846
  participantId: [(_f = this.currentCall) === null || _f === void 0 ? void 0 : _f.participantId],
1847
1847
  conferenceId: (_g = this.currentCall) === null || _g === void 0 ? void 0 : _g.conferenceId,
1848
1848
  hold: false,
1849
- conference: (_h = this.currentCall) === null || _h === void 0 ? void 0 : _h.isConference
1849
+ mute: ((_h = this.currentCall) === null || _h === void 0 ? void 0 : _h.mute) || false,
1850
+ conference: (_j = this.currentCall) === null || _j === void 0 ? void 0 : _j.isConference
1850
1851
  });
1851
1852
  // this.currentCallList[0].isHold = false;
1852
1853
  }
1853
- else if (((_j = this.currentCall) === null || _j === void 0 ? void 0 : _j.isHold) && ((_k = this.currentCall) === null || _k === void 0 ? void 0 : _k.isConference)) {
1854
+ else if (((_k = this.currentCall) === null || _k === void 0 ? void 0 : _k.isHold) && ((_l = this.currentCall) === null || _l === void 0 ? void 0 : _l.isConference)) {
1854
1855
  let conferenceCalllist = this.currentCallList.filter((item) => item.isConference);
1855
1856
  if (conferenceCalllist.length > 0) {
1856
1857
  yield this.onholdOrUnholdParticipant({
1857
1858
  participantId: conferenceCalllist.map((item) => item.participantId),
1858
- conferenceId: (_l = conferenceCalllist[0]) === null || _l === void 0 ? void 0 : _l.conferenceId,
1859
+ conferenceId: (_m = conferenceCalllist[0]) === null || _m === void 0 ? void 0 : _m.conferenceId,
1859
1860
  hold: false,
1860
- conference: (_m = this.currentCall) === null || _m === void 0 ? void 0 : _m.isConference
1861
+ mute: ((_o = this.currentCall) === null || _o === void 0 ? void 0 : _o.mute) || false,
1862
+ conference: ((_p = this.currentCall) === null || _p === void 0 ? void 0 : _p.isConference) || false
1861
1863
  });
1862
1864
  this.isConferenceCallHold = false;
1863
1865
  }
@@ -2126,7 +2128,8 @@ class CallProgressComponent {
2126
2128
  participantId: [c.participantId],
2127
2129
  conferenceId: c === null || c === void 0 ? void 0 : c.conferenceId,
2128
2130
  hold: !c.hold,
2129
- conference: c.isConference
2131
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2132
+ conference: c.isConference || false
2130
2133
  });
2131
2134
  c.hold = !c.hold;
2132
2135
  this.cdr.detectChanges();
@@ -2335,7 +2338,7 @@ class CallProgressComponent {
2335
2338
  // }
2336
2339
  // }
2337
2340
  endCall(isAllCallEnd) {
2338
- var _a, _b, _c;
2341
+ var _a, _b, _c, _d;
2339
2342
  return __awaiter(this, void 0, void 0, function* () {
2340
2343
  console.log('endCall() called');
2341
2344
  // console.log('Current call:', this.call?.parameters['From']);
@@ -2359,7 +2362,8 @@ class CallProgressComponent {
2359
2362
  participantId: [(_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.participantId],
2360
2363
  conferenceId: (_b = this.currentCall) === null || _b === void 0 ? void 0 : _b.conferenceId,
2361
2364
  hold: false,
2362
- isConference: (_c = this.currentCall) === null || _c === void 0 ? void 0 : _c.isConference
2365
+ mute: ((_c = this.currentCall) === null || _c === void 0 ? void 0 : _c.mute) || false,
2366
+ isConference: ((_d = this.currentCall) === null || _d === void 0 ? void 0 : _d.isConference) || false
2363
2367
  });
2364
2368
  }
2365
2369
  else {
@@ -2432,7 +2436,7 @@ class CallProgressComponent {
2432
2436
  this.filteredParticipentList = this.allParticipentList;
2433
2437
  }
2434
2438
  add(data) {
2435
- var _a, _b, _c, _d, _e, _f;
2439
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2436
2440
  return __awaiter(this, void 0, void 0, function* () {
2437
2441
  // if(data?.status != 'ringing'){
2438
2442
  this.conferenceId = this.twilioService.conferenceCallInfo.conferenceId;
@@ -2446,7 +2450,8 @@ class CallProgressComponent {
2446
2450
  participantId: [res.participantId],
2447
2451
  conferenceId: res === null || res === void 0 ? void 0 : res.conferenceId,
2448
2452
  hold: true,
2449
- conference: res.isConference
2453
+ mute: (res === null || res === void 0 ? void 0 : res.mute) || false,
2454
+ conference: res.isConference || false
2450
2455
  });
2451
2456
  }
2452
2457
  });
@@ -2459,9 +2464,10 @@ class CallProgressComponent {
2459
2464
  // }
2460
2465
  yield this.onholdOrUnholdParticipant({
2461
2466
  participantId: ((_c = this.currentCall) === null || _c === void 0 ? void 0 : _c.isIncomingCall) ? [(_d = this.currentCall) === null || _d === void 0 ? void 0 : _d.id] : [(_e = this.currentCall) === null || _e === void 0 ? void 0 : _e.participantId],
2462
- conferenceId: data === null || data === void 0 ? void 0 : data.conferenceId,
2467
+ conferenceId: (_f = this.currentCall) === null || _f === void 0 ? void 0 : _f.conferenceId,
2463
2468
  hold: true,
2464
- conference: (_f = this.currentCall) === null || _f === void 0 ? void 0 : _f.isConference
2469
+ mute: ((_g = this.currentCall) === null || _g === void 0 ? void 0 : _g.mute) || false,
2470
+ conference: ((_h = this.currentCall) === null || _h === void 0 ? void 0 : _h.isConference) || false
2465
2471
  });
2466
2472
  // data.isHold = false;
2467
2473
  }
@@ -2497,7 +2503,7 @@ class CallProgressComponent {
2497
2503
  });
2498
2504
  }
2499
2505
  callContact(contact) {
2500
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2506
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2501
2507
  return __awaiter(this, void 0, void 0, function* () {
2502
2508
  console.log('Adding participant:', contact);
2503
2509
  console.log('this.call', this.call);
@@ -2523,6 +2529,7 @@ class CallProgressComponent {
2523
2529
  participantId: [data === null || data === void 0 ? void 0 : data.participantId],
2524
2530
  conferenceId: (_g = this.currentCall) === null || _g === void 0 ? void 0 : _g.conferenceId,
2525
2531
  hold: false,
2532
+ mute: ((_h = this.currentCall) === null || _h === void 0 ? void 0 : _h.mute) || false,
2526
2533
  conference: true
2527
2534
  });
2528
2535
  this.callData = {
@@ -2532,7 +2539,7 @@ class CallProgressComponent {
2532
2539
  name: (contact === null || contact === void 0 ? void 0 : contact.name) || `${contact === null || contact === void 0 ? void 0 : contact.firstName} ${contact === null || contact === void 0 ? void 0 : contact.lastName}` || phoneNumber,
2533
2540
  img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
2534
2541
  participantId: data === null || data === void 0 ? void 0 : data.participantId,
2535
- from: (_h = this.selectedCallerId) === null || _h === void 0 ? void 0 : _h.number,
2542
+ from: (_j = this.selectedCallerId) === null || _j === void 0 ? void 0 : _j.number,
2536
2543
  isIncomingCall: false,
2537
2544
  isHold: false,
2538
2545
  isLeft: false,
@@ -2555,7 +2562,8 @@ class CallProgressComponent {
2555
2562
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2556
2563
  conferenceId: c.conferenceId,
2557
2564
  hold: true,
2558
- conference: c === null || c === void 0 ? void 0 : c.isConference
2565
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2566
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2559
2567
  });
2560
2568
  }
2561
2569
  }));
@@ -2583,10 +2591,10 @@ class CallProgressComponent {
2583
2591
  // }
2584
2592
  // Add participant to the conference
2585
2593
  let data = yield this.addParticipantToCall({
2586
- from: ((_j = this.callData) === null || _j === void 0 ? void 0 : _j.from) || ((_k = this.selectedCallerId) === null || _k === void 0 ? void 0 : _k.number),
2594
+ from: ((_k = this.callData) === null || _k === void 0 ? void 0 : _k.from) || ((_l = this.selectedCallerId) === null || _l === void 0 ? void 0 : _l.number),
2587
2595
  route: "OUTGOING",
2588
2596
  participantNumber: phoneNumber,
2589
- conferenceId: (_l = this.currentCall) === null || _l === void 0 ? void 0 : _l.conferenceId,
2597
+ conferenceId: (_m = this.currentCall) === null || _m === void 0 ? void 0 : _m.conferenceId,
2590
2598
  userId: this.userId,
2591
2599
  proxy: '',
2592
2600
  countrycode: '',
@@ -2603,7 +2611,7 @@ class CallProgressComponent {
2603
2611
  name: (contact === null || contact === void 0 ? void 0 : contact.name) || `${contact === null || contact === void 0 ? void 0 : contact.firstName} ${contact === null || contact === void 0 ? void 0 : contact.lastName}` || phoneNumber,
2604
2612
  img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
2605
2613
  participantId: data === null || data === void 0 ? void 0 : data.participantId,
2606
- from: (_m = this.selectedCallerId) === null || _m === void 0 ? void 0 : _m.number,
2614
+ from: (_o = this.selectedCallerId) === null || _o === void 0 ? void 0 : _o.number,
2607
2615
  isIncomingCall: false,
2608
2616
  isHold: false,
2609
2617
  isLeft: false,
@@ -2713,7 +2721,8 @@ class CallProgressComponent {
2713
2721
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2714
2722
  conferenceId: c.conferenceId,
2715
2723
  hold: true,
2716
- conference: c === null || c === void 0 ? void 0 : c.isConference
2724
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2725
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2717
2726
  });
2718
2727
  }
2719
2728
  else if ((callInfo === null || callInfo === void 0 ? void 0 : callInfo.isHold) && (c === null || c === void 0 ? void 0 : c.participantId) === (callInfo === null || callInfo === void 0 ? void 0 : callInfo.participantId)) {
@@ -2722,7 +2731,8 @@ class CallProgressComponent {
2722
2731
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2723
2732
  conferenceId: c.conferenceId,
2724
2733
  hold: false,
2725
- conference: c === null || c === void 0 ? void 0 : c.isConference
2734
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2735
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2726
2736
  });
2727
2737
  // this.currentCall = c;
2728
2738
  }
@@ -2738,7 +2748,8 @@ class CallProgressComponent {
2738
2748
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2739
2749
  conferenceId: c.conferenceId,
2740
2750
  hold: false,
2741
- conference: c === null || c === void 0 ? void 0 : c.isConference
2751
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2752
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2742
2753
  });
2743
2754
  }
2744
2755
  else {
@@ -2747,7 +2758,8 @@ class CallProgressComponent {
2747
2758
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2748
2759
  conferenceId: c.conferenceId,
2749
2760
  hold: true,
2750
- conference: c === null || c === void 0 ? void 0 : c.isConference
2761
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2762
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2751
2763
  });
2752
2764
  }
2753
2765
  }));
@@ -2761,7 +2773,8 @@ class CallProgressComponent {
2761
2773
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2762
2774
  conferenceId: c.conferenceId,
2763
2775
  hold: true,
2764
- conference: c === null || c === void 0 ? void 0 : c.isConference
2776
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2777
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2765
2778
  });
2766
2779
  }
2767
2780
  else if ((callInfo === null || callInfo === void 0 ? void 0 : callInfo.isHold) && (c === null || c === void 0 ? void 0 : c.participantId) === (callInfo === null || callInfo === void 0 ? void 0 : callInfo.participantId)) {
@@ -2770,7 +2783,8 @@ class CallProgressComponent {
2770
2783
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2771
2784
  conferenceId: c.conferenceId,
2772
2785
  hold: false,
2773
- conference: c === null || c === void 0 ? void 0 : c.isConference
2786
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2787
+ conference: (c === null || c === void 0 ? void 0 : c.isConference) || false
2774
2788
  });
2775
2789
  // this.currentCall = c;
2776
2790
  }
@@ -2826,6 +2840,7 @@ class CallProgressComponent {
2826
2840
  participantId: [c === null || c === void 0 ? void 0 : c.participantId],
2827
2841
  conferenceId: c.conferenceId,
2828
2842
  hold: false,
2843
+ mute: (c === null || c === void 0 ? void 0 : c.mute) || false,
2829
2844
  conference: true
2830
2845
  });
2831
2846
  c.isConference = true;