@vgroup/dialbox 0.7.80 → 0.7.82

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: "u",
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://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_live_51OV9NYDjRTFWP7oMLrrgaWxCUp4nzeuwdDCCPjvwH7z6oDYUTierhavGMxBa411U0O27Yn24te7Hb43WFDwg2U7N00qbQUzTi6",
72
+ stripePublishableKey: "pk_live_51NbMVaA3guus6fhl85gdcvAWHzfHba5LdGlsnV7DxBT9spHghn4IHT9rDCjSRgFh2ijTiZn9qeazdciY1PbreOuB00t1GdQAZJ",
73
73
  sessionTimeout: 15,
74
74
  deviceType: "web",
75
- appVersion: "3.2",
75
+ appVersion: "2.9",
76
76
  channelId: '6511738039ee10367cbde2e9',
77
77
  c2c_support_point_id: '60424735f74ac306c1bfa900',
78
- c2c_support_channel_id: '67783949be93ab03faf8eea6',
78
+ c2c_support_channel_id: '677f68fcbe93ab507fbbfe0b',
79
79
  c2c_point_url: 'https://bit.ly/3blWnPv',
80
- c2c_call_label_id: 'Bn78kjz6sSottXSHgqMt',
81
- c2c_email_label_id: 'UkNer4LgzXCfFlh8u909',
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",
@@ -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 {
@@ -1878,6 +1881,9 @@ class TwilioService {
1878
1881
  if (id != null && this.incomingCallsMap.has(id)) {
1879
1882
  return this.incomingCallsMap.get(id);
1880
1883
  }
1884
+ if (!this.incomingCallDetail) {
1885
+ return null;
1886
+ }
1881
1887
  return this.incomingCallDetail.parameters?.['CallSid'] == id ? this.incomingCallDetail : null;
1882
1888
  }
1883
1889
  prepareDevice2ForIncomingCall() {
@@ -2859,18 +2865,13 @@ class CallProgressComponent {
2859
2865
  }
2860
2866
  getStatus(res) {
2861
2867
  if (res?.direction == "incoming-call") {
2862
- return res?.callStatus == "participant-join" || res?.callStatus == "participant-mute" || res?.callStatus == "participant-hold" || res?.callStatus == 'connected' ? true : false;
2868
+ return res?.callStatus == 'ringing' ? false : !res?.isLeft;
2863
2869
  }
2864
2870
  else if (res?.direction == "outgoing-call") {
2865
2871
  return true;
2866
2872
  }
2867
2873
  else {
2868
- if (res.status == 'answered' && res.direction == "incoming-call") {
2869
- return true;
2870
- }
2871
- else {
2872
- return false;
2873
- }
2874
+ return false;
2874
2875
  }
2875
2876
  }
2876
2877
  GetContactsList() {
@@ -3349,6 +3350,12 @@ class CallProgressComponent {
3349
3350
  toggleKeypad() {
3350
3351
  this.showKeypad = !this.showKeypad;
3351
3352
  this.callInput = '';
3353
+ if (this.showKeypad) {
3354
+ this.cdr.detectChanges();
3355
+ setTimeout(() => {
3356
+ document.getElementById('call-input')?.focus();
3357
+ }, 0);
3358
+ }
3352
3359
  }
3353
3360
  // Switch that silences (or restores) the incoming ring while a call is in progress.
3354
3361
  toggleMuteIncomingCall() {
@@ -4032,6 +4039,7 @@ class CallProgressComponent {
4032
4039
  }
4033
4040
  }
4034
4041
  onCallInputEnter(ev) {
4042
+ console.log(ev);
4035
4043
  try {
4036
4044
  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);
4037
4045
  let device = this.twilioService.getIncomingCallById(selfCall?.callSid || selfCall?.clientSid);
@@ -4822,10 +4830,7 @@ class DialboxComponent {
4822
4830
  incomingCallData.forEach((callInfo) => {
4823
4831
  // Check if WE are an active participant in this conference
4824
4832
  const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client) ||
4825
- (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client &&
4826
- resData?.callStatus !== 'completed' &&
4827
- (resData?.callStatus == 'participant-join' || resData?.callStatus == 'participant-mute' ||
4828
- resData?.callStatus == 'participant-hold' || resData?.callStatus == 'connected'))) && !resData?.isLeft && resData?.status != 'no-answer' && resData?.status != 'canceled');
4833
+ (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client)) && !resData?.isLeft);
4829
4834
  // Match the ACTIVE conference entry only — never a pending incoming-call
4830
4835
  // notification, which can share this conferenceId but must not be overwritten
4831
4836
  // with socket data (it is keyed/managed separately by participantId).
@@ -4838,10 +4843,6 @@ class DialboxComponent {
4838
4843
  else {
4839
4844
  this.incomingCallsList.push({ ...callInfo });
4840
4845
  }
4841
- // If this was a pending incoming notification that is now accepted → remove from notificationCallList
4842
- // this.notificationCallList = this.notificationCallList.filter(
4843
- // (n: any) => n.conferenceId !== callInfo.conferenceId && (n.to == ourNumber?.to || n.to !== ourNumber?.from)
4844
- // );
4845
4846
  }
4846
4847
  else {
4847
4848
  // We are NOT a participant — remove from incomingCallsList only if it is NOT an incoming-call notification
@@ -5338,7 +5339,7 @@ class DialboxComponent {
5338
5339
  participants: [
5339
5340
  {
5340
5341
  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,
5341
- from: notification.fromNumber, fromName: notification.fromName, participantId: notification.participantId, name: notification.fromName, time: '', id: notification.participantId, conferenceId: notification.conferenceId, clientSid: notification.clientSid,
5342
+ from: notification.fromNumber, fromName: notification.fromName, participantId: notification.participantId, name: notification.fromName, time: '', id: notification.participantId, conferenceId: notification.conferenceId, clientSid: notification.clientSid, callStatus: 'ringing'
5342
5343
  }
5343
5344
  ],
5344
5345
  };