@vgroup/dialbox 0.7.79 → 0.7.81

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: "u",
66
- production: false,
65
+ abb: "p",
66
+ production: true,
67
67
  secureCookies: true,
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/',
68
+ feUrl: 'https://app-phone.contexttocall.com/',
69
+ apiUrl: 'https://phone-api.contexttocall.com/softphone/',
70
+ websocketUrl: 'wss://phone-api.contexttocall.com/softphone/',
71
71
  captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
72
- stripePublishableKey: "pk_live_51NbMVaA3guus6fhl85gdcvAWHzfHba5LdGlsnV7DxBT9spHghn4IHT9rDCjSRgFh2ijTiZn9qeazdciY1PbreOuB00t1GdQAZJ",
72
+ stripePublishableKey: "pk_live_51OV9NYDjRTFWP7oMLrrgaWxCUp4nzeuwdDCCPjvwH7z6oDYUTierhavGMxBa411U0O27Yn24te7Hb43WFDwg2U7N00qbQUzTi6",
73
73
  sessionTimeout: 15,
74
74
  deviceType: "web",
75
- appVersion: "2.9",
75
+ appVersion: "3.2",
76
76
  channelId: '6511738039ee10367cbde2e9',
77
77
  c2c_support_point_id: '60424735f74ac306c1bfa900',
78
- c2c_support_channel_id: '677f68fcbe93ab507fbbfe0b',
78
+ c2c_support_channel_id: '67783949be93ab03faf8eea6',
79
79
  c2c_point_url: 'https://bit.ly/3blWnPv',
80
- c2c_call_label_id: '5M4taT8xzAg9pPIUADOW',
81
- c2c_email_label_id: 'MUUC4NV5bLqHixXyhmok',
80
+ c2c_call_label_id: 'Bn78kjz6sSottXSHgqMt',
81
+ c2c_email_label_id: 'UkNer4LgzXCfFlh8u909',
82
82
  radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
83
83
  firebase: {
84
84
  apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
@@ -90,10 +90,7 @@ const environment = {
90
90
  measurementId: "G-NGXTSV9SH3",
91
91
  vapidKey: "BD6EgcQgbZTjOQfleG3YlEc0_SajB03prqTdDy-qGJkxTxezbq-A_qtuXE1l3yT47o8hnTAbTKBcH15D2AJB2To"
92
92
  },
93
- perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
94
- keycloakURL: 'https://test-keycloak.vgroupinc.com/',
95
- keycloakRealm: 'vgroup-test',
96
- keycloakClientId: 'c2c-softphone-app'
93
+ perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s'
97
94
  };
98
95
 
99
96
  class IpAddressService {
@@ -2862,18 +2859,13 @@ class CallProgressComponent {
2862
2859
  }
2863
2860
  getStatus(res) {
2864
2861
  if (res?.direction == "incoming-call") {
2865
- return res?.callStatus == "participant-join" || res?.callStatus == "participant-mute" || res?.callStatus == "participant-hold" || res?.callStatus == 'connected' ? true : false;
2862
+ return res?.callStatus == 'ringing' ? false : !res?.isLeft;
2866
2863
  }
2867
2864
  else if (res?.direction == "outgoing-call") {
2868
2865
  return true;
2869
2866
  }
2870
2867
  else {
2871
- if (res.status == 'answered' && res.direction == "incoming-call") {
2872
- return true;
2873
- }
2874
- else {
2875
- return false;
2876
- }
2868
+ return false;
2877
2869
  }
2878
2870
  }
2879
2871
  GetContactsList() {
@@ -4825,10 +4817,7 @@ class DialboxComponent {
4825
4817
  incomingCallData.forEach((callInfo) => {
4826
4818
  // Check if WE are an active participant in this conference
4827
4819
  const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client) ||
4828
- (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client &&
4829
- resData?.callStatus !== 'completed' &&
4830
- (resData?.callStatus == 'participant-join' || resData?.callStatus == 'participant-mute' ||
4831
- resData?.callStatus == 'participant-hold' || resData?.callStatus == 'connected'))) && !resData?.isLeft && resData?.status != 'no-answer' && resData?.status != 'canceled');
4820
+ (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client)) && !resData?.isLeft);
4832
4821
  // Match the ACTIVE conference entry only — never a pending incoming-call
4833
4822
  // notification, which can share this conferenceId but must not be overwritten
4834
4823
  // with socket data (it is keyed/managed separately by participantId).
@@ -4841,10 +4830,6 @@ class DialboxComponent {
4841
4830
  else {
4842
4831
  this.incomingCallsList.push({ ...callInfo });
4843
4832
  }
4844
- // If this was a pending incoming notification that is now accepted → remove from notificationCallList
4845
- // this.notificationCallList = this.notificationCallList.filter(
4846
- // (n: any) => n.conferenceId !== callInfo.conferenceId && (n.to == ourNumber?.to || n.to !== ourNumber?.from)
4847
- // );
4848
4833
  }
4849
4834
  else {
4850
4835
  // We are NOT a participant — remove from incomingCallsList only if it is NOT an incoming-call notification
@@ -5341,7 +5326,7 @@ class DialboxComponent {
5341
5326
  participants: [
5342
5327
  {
5343
5328
  direction: "incoming-call", businessNumber: notification.c2cBusiness, img: notification.fromImage || notification.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: notification.fromNumber, to: notification.toNumber,
5344
- from: notification.fromNumber, fromName: notification.fromName, participantId: notification.participantId, name: notification.fromName, time: '', id: notification.participantId, conferenceId: notification.conferenceId, clientSid: notification.clientSid,
5329
+ from: notification.fromNumber, fromName: notification.fromName, participantId: notification.participantId, name: notification.fromName, time: '', id: notification.participantId, conferenceId: notification.conferenceId, clientSid: notification.clientSid, callStatus: 'ringing'
5345
5330
  }
5346
5331
  ],
5347
5332
  };