@vgroup/dialbox 0.7.72 → 0.7.73

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.
@@ -62,23 +62,23 @@ const keypad = [
62
62
  ];
63
63
 
64
64
  const environment = {
65
- abb: "t",
65
+ abb: "u",
66
66
  production: false,
67
67
  secureCookies: true,
68
- feUrl: 'https://test.vgroupinc.com:91/',
69
- apiUrl: 'https://apis.vgroupinc.com/test_softphone',
70
- websocketUrl: 'wss://apis.vgroupinc.com/test_softphone/',
68
+ feUrl: 'https://c2c-uat.contexttocall.com:85/',
69
+ apiUrl: 'https://c2c-uatapi-t10.contexttocall.com/uat_softphone',
70
+ websocketUrl: 'wss://c2c-uatapi-t10.contexttocall.com/uat_softphone/',
71
71
  captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
72
- stripePublishableKey: "pk_test_51NbMVaA3guus6fhlTuCV5ycFTIJmwgN38dDUf9pNPfM319x5CkLbV6EbTQaZiNOrRsfR16RWLE8hQmR0eZFTBqTy00Wlsug4qS",
72
+ stripePublishableKey: "pk_live_51NbMVaA3guus6fhl85gdcvAWHzfHba5LdGlsnV7DxBT9spHghn4IHT9rDCjSRgFh2ijTiZn9qeazdciY1PbreOuB00t1GdQAZJ",
73
73
  sessionTimeout: 15,
74
74
  deviceType: "web",
75
- appVersion: "2.3",
76
- channelId: '61481b12e138eb7dc3007579',
75
+ appVersion: "2.9",
76
+ channelId: '6511738039ee10367cbde2e9',
77
77
  c2c_support_point_id: '60424735f74ac306c1bfa900',
78
- c2c_support_channel_id: '677f6726be93ab507fbbfdf0',
79
- c2c_point_url: 'https://app.contexttocall.com/assets/cdn/c2c.js',
80
- c2c_call_label_id: '6NU5fKE2mGTyXDC3yhmK',
81
- c2c_email_label_id: 'YPMamj8RvsGORVvqXWyc',
78
+ c2c_support_channel_id: '677f68fcbe93ab507fbbfe0b',
79
+ c2c_point_url: 'https://bit.ly/3blWnPv',
80
+ c2c_call_label_id: '5M4taT8xzAg9pPIUADOW',
81
+ c2c_email_label_id: 'MUUC4NV5bLqHixXyhmok',
82
82
  radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
83
83
  firebase: {
84
84
  apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
@@ -3512,6 +3512,7 @@ class CallProgressComponent {
3512
3512
  this.acceptedCallList = this.acceptedCallList.filter(c => c.callSid !== sid);
3513
3513
  this.twilioService.acceptedCallList = this.twilioService.acceptedCallList.filter((c) => c.parameters?.CallSid !== sid);
3514
3514
  clearInterval(intervalId);
3515
+ this.isConnectingIncomingCallId = '';
3515
3516
  this.twilioService.isConnectingIncomingCallId.next('');
3516
3517
  let index = this.currentCallList.findIndex((res) => res.participantId == data.participantId);
3517
3518
  this.currentCallList.splice(index, 1);
@@ -3534,7 +3535,7 @@ class CallProgressComponent {
3534
3535
  else if (this.missCallInfo?.data?.data?.recordId == data?.id && !callToAccept.parameters?.CallSid) {
3535
3536
  clearInterval(intervalId);
3536
3537
  const sid = callToAccept.parameters?.CallSid;
3537
- this.isConnectingIncomingCallId = '';
3538
+ this.twilioService.isConnectingIncomingCallId.next('');
3538
3539
  this.isConnectingIncomingCallId = '';
3539
3540
  this.acceptedCallList = this.acceptedCallList.filter(c => c.callSid !== sid);
3540
3541
  this.twilioService.acceptedCallList = this.twilioService.acceptedCallList.filter((c) => c.parameters?.CallSid !== sid);
@@ -5110,7 +5111,7 @@ class DialboxComponent {
5110
5111
  if (this.twilioService.incomingCallToken != this.updatedTwilioToken) {
5111
5112
  this.twilioService.incomingCallToken = this.updatedTwilioToken;
5112
5113
  this.twilioService.tokenInitialized = true;
5113
- this.twilioService.initializeTwilioDevice(this.deviceId || localStorage.getItem('deviceId'));
5114
+ this.twilioService.initializeTwilioDevice(localStorage.getItem('deviceId'));
5114
5115
  }
5115
5116
  }
5116
5117
  if (changes['userId']?.currentValue && this.userId) {
@@ -5812,6 +5813,7 @@ class DialboxComponent {
5812
5813
  this.incomingCallsList = [];
5813
5814
  // Clean up Twilio device when component is destroyed
5814
5815
  if (this.twilioService['device']) {
5816
+ console.log('Destroying Twilio device...');
5815
5817
  this.twilioService['device'].disconnectAll();
5816
5818
  this.twilioService['device'].destroy();
5817
5819
  }