@vgroup/dialbox 0.7.85 → 0.7.87

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: "p",
66
- production: true,
65
+ abb: "t",
66
+ production: false,
67
67
  secureCookies: true,
68
- feUrl: 'https://app-phone.contexttocall.com/',
69
- apiUrl: 'https://phone-api.contexttocall.com/softphone/',
70
- websocketUrl: 'wss://phone-api.contexttocall.com/softphone/',
68
+ feUrl: 'https://test.vgroupinc.com:91/',
69
+ apiUrl: 'https://apis.vgroupinc.com/test_softphone',
70
+ websocketUrl: 'wss://apis.vgroupinc.com/test_softphone/',
71
71
  captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
72
- stripePublishableKey: "pk_live_51OV9NYDjRTFWP7oMLrrgaWxCUp4nzeuwdDCCPjvwH7z6oDYUTierhavGMxBa411U0O27Yn24te7Hb43WFDwg2U7N00qbQUzTi6",
72
+ stripePublishableKey: "pk_test_51NbMVaA3guus6fhlTuCV5ycFTIJmwgN38dDUf9pNPfM319x5CkLbV6EbTQaZiNOrRsfR16RWLE8hQmR0eZFTBqTy00Wlsug4qS",
73
73
  sessionTimeout: 15,
74
74
  deviceType: "web",
75
- appVersion: "3.2",
76
- channelId: '6511738039ee10367cbde2e9',
75
+ appVersion: "2.3",
76
+ channelId: '61481b12e138eb7dc3007579',
77
77
  c2c_support_point_id: '60424735f74ac306c1bfa900',
78
- c2c_support_channel_id: '67783949be93ab03faf8eea6',
79
- c2c_point_url: 'https://bit.ly/3blWnPv',
80
- c2c_call_label_id: 'Bn78kjz6sSottXSHgqMt',
81
- c2c_email_label_id: 'UkNer4LgzXCfFlh8u909',
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',
82
82
  radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
83
83
  firebase: {
84
84
  apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
@@ -90,7 +90,10 @@ const environment = {
90
90
  measurementId: "G-NGXTSV9SH3",
91
91
  vapidKey: "BD6EgcQgbZTjOQfleG3YlEc0_SajB03prqTdDy-qGJkxTxezbq-A_qtuXE1l3yT47o8hnTAbTKBcH15D2AJB2To"
92
92
  },
93
- perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s'
93
+ perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
94
+ keycloakURL: 'https://test-keycloak.vgroupinc.com/',
95
+ keycloakRealm: 'vgroup-test',
96
+ keycloakClientId: 'c2c-softphone-app'
94
97
  };
95
98
 
96
99
  class IpAddressService {
@@ -3483,11 +3486,6 @@ class CallProgressComponent {
3483
3486
  };
3484
3487
  this.acceptedCallList.push(acceptedEntry);
3485
3488
  this.twilioService.acceptedCallList.push(callToAccept);
3486
- // Twilio's accept() only starts the connection handshake — it does not
3487
- // guarantee the call actually connects. Only call the API once Twilio
3488
- // confirms the connection ('accept' event); if Twilio fails/breaks
3489
- // before that, show an error instead of telling the backend the call
3490
- // was answered.
3491
3489
  let isTwilioConnectSettled = false;
3492
3490
  const handleTwilioConnectFailure = (message) => {
3493
3491
  if (isTwilioConnectSettled)
@@ -3599,7 +3597,7 @@ class CallProgressComponent {
3599
3597
  else if (this.missCallInfo?.data?.data?.recordId == data?.id && !callToAccept.parameters?.CallSid) {
3600
3598
  clearInterval(intervalId);
3601
3599
  const sid = callToAccept.parameters?.CallSid;
3602
- this.twilioService.isConnectingIncomingCallId.next('');
3600
+ this.isConnectingIncomingCallId = '';
3603
3601
  this.isConnectingIncomingCallId = '';
3604
3602
  this.acceptedCallList = this.acceptedCallList.filter(c => c.callSid !== sid);
3605
3603
  this.twilioService.acceptedCallList = this.twilioService.acceptedCallList.filter((c) => c.parameters?.CallSid !== sid);
@@ -4051,7 +4049,9 @@ class CallProgressComponent {
4051
4049
  console.log(ev);
4052
4050
  try {
4053
4051
  let selfCall = this.newIncomingCallsList.find((res) => res?.conferenceId == this.currentCall?.conferenceId)?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.host)) && !resData?.isLeft);
4052
+ console.log(selfCall);
4054
4053
  let device = this.twilioService.getIncomingCallById(selfCall?.callSid || selfCall?.clientSid);
4054
+ console.log(device);
4055
4055
  if (device && device?._status == 'open') {
4056
4056
  device.sendDigits(String(ev.key));
4057
4057
  }
@@ -5178,7 +5178,7 @@ class DialboxComponent {
5178
5178
  if (this.twilioService.incomingCallToken != this.updatedTwilioToken) {
5179
5179
  this.twilioService.incomingCallToken = this.updatedTwilioToken;
5180
5180
  this.twilioService.tokenInitialized = true;
5181
- this.twilioService.initializeTwilioDevice(localStorage.getItem('deviceId'));
5181
+ this.twilioService.initializeTwilioDevice(this.deviceId || localStorage.getItem('deviceId'));
5182
5182
  }
5183
5183
  }
5184
5184
  if (changes['userId']?.currentValue && this.userId) {
@@ -5885,7 +5885,6 @@ class DialboxComponent {
5885
5885
  this.incomingCallsList = [];
5886
5886
  // Clean up Twilio device when component is destroyed
5887
5887
  if (this.twilioService['device']) {
5888
- console.log('Destroying Twilio device...');
5889
5888
  this.twilioService['device'].disconnectAll();
5890
5889
  this.twilioService['device'].destroy();
5891
5890
  }