@vgroup/dialbox 0.5.51 → 0.5.52

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.
@@ -573,6 +573,7 @@ class ExtensionService {
573
573
  this.ipAddressInfo = { ...ipAddressInfo };
574
574
  const params = {
575
575
  'Content-Type': 'application/json',
576
+ 'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token'),
576
577
  'ip-address': ipAddressInfo.ip,
577
578
  'ip-country': ipAddressInfo.address.country,
578
579
  };
@@ -1767,8 +1768,6 @@ class CallProgressComponent {
1767
1768
  ngOnInit() {
1768
1769
  console.log('Call Progress Component ngOnInit');
1769
1770
  // Subscribe to incoming calls from TwilioService
1770
- console.log(localStorage.getItem('userData'));
1771
- this.userData = JSON.parse(localStorage.getItem('userData') || '');
1772
1771
  try {
1773
1772
  // this.incomingAudio = new Audio('../../../assets/phone-ringing.mp3');
1774
1773
  // this.incomingAudio['loop'] = true;
@@ -1801,7 +1800,6 @@ class CallProgressComponent {
1801
1800
  this.GetContactsList();
1802
1801
  }
1803
1802
  ngOnChanges(changes) {
1804
- console.log(changes);
1805
1803
  if (this.userId) {
1806
1804
  this.extensionService.userId = this.userId;
1807
1805
  }
@@ -2047,7 +2045,7 @@ class CallProgressComponent {
2047
2045
  });
2048
2046
  }
2049
2047
  async startCall(callData) {
2050
- this.userData = JSON.parse(localStorage.getItem('userData') || '');
2048
+ console.log(callData, 'callData');
2051
2049
  try {
2052
2050
  this.showRingAnimation = true;
2053
2051
  const payload = {
@@ -2057,7 +2055,6 @@ class CallProgressComponent {
2057
2055
  fromNumber: callData.from,
2058
2056
  scope: 'local',
2059
2057
  deviceId: this.deviceId,
2060
- companyId: this.userData.businessData?.companyId
2061
2058
  };
2062
2059
  this.currentCall = {
2063
2060
  businessNumber: false,
@@ -2106,8 +2103,7 @@ class CallProgressComponent {
2106
2103
  userId: this.userId || localStorage.getItem('userId'),
2107
2104
  proxy: '',
2108
2105
  countrycode: '',
2109
- deviceId: this.deviceId,
2110
- companyId: this.userData.businessData?.companyId
2106
+ deviceId: this.deviceId
2111
2107
  });
2112
2108
  this.isLoadershow.emit(false);
2113
2109
  console.log('Initial participantId:', this.addRes?.participantId);
@@ -2563,8 +2559,7 @@ class CallProgressComponent {
2563
2559
  userId: this.userId,
2564
2560
  proxy: '',
2565
2561
  countrycode: '',
2566
- deviceId: this.deviceId,
2567
- companyId: this.userData.businessData?.companyId
2562
+ deviceId: this.deviceId
2568
2563
  });
2569
2564
  this.onholdOrUnholdParticipant({
2570
2565
  participantId: [data?.participantId],
@@ -2639,8 +2634,7 @@ class CallProgressComponent {
2639
2634
  userId: this.userId,
2640
2635
  proxy: '',
2641
2636
  countrycode: '',
2642
- deviceId: this.deviceId,
2643
- companyId: this.userData.businessData?.companyId
2637
+ deviceId: this.deviceId
2644
2638
  });
2645
2639
  // this.callData = {
2646
2640
  // ...this.callData,