@vgroup/dialbox 0.5.32 → 0.5.34

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.
@@ -63,23 +63,23 @@ const keypad = [
63
63
  ];
64
64
 
65
65
  const environment = {
66
- abb: "d",
66
+ abb: "t",
67
67
  production: false,
68
68
  secureCookies: true,
69
- feUrl: 'https://dev.vgroupinc.com:91/',
70
- apiUrl: 'https://dev-api-t10.vgroupinc.com/dev_softphone_p91',
71
- websocketUrl: 'wss://dev-api-t10.vgroupinc.com/dev_softphone_p91/',
69
+ feUrl: 'https://test.vgroupinc.com:91/',
70
+ apiUrl: 'https://apis.vgroupinc.com/test_softphone',
71
+ websocketUrl: 'wss://apis.vgroupinc.com/test_softphone/',
72
72
  captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
73
- stripePublishableKey: "pk_test_51K6aTuBiNVV2TMlQfmBWY8jziwiDo0IZ3TrqWPqth1m32cpMAAg5Qpi2AlSMDEAX6hCZRBXoTzBB1uQQLc8B4tco00q2SgG6zO",
73
+ stripePublishableKey: "pk_test_51NbMVaA3guus6fhlTuCV5ycFTIJmwgN38dDUf9pNPfM319x5CkLbV6EbTQaZiNOrRsfR16RWLE8hQmR0eZFTBqTy00Wlsug4qS",
74
74
  sessionTimeout: 15,
75
75
  deviceType: "web",
76
76
  appVersion: "2.3",
77
77
  channelId: '61481b12e138eb7dc3007579',
78
78
  c2c_support_point_id: '60424735f74ac306c1bfa900',
79
- c2c_support_channel_id: '677f67f3be93ab507fbbfdfc',
79
+ c2c_support_channel_id: '677f6726be93ab507fbbfdf0',
80
80
  c2c_point_url: 'https://app.contexttocall.com/assets/cdn/c2c.js',
81
- c2c_call_label_id: 'ye2XFLfOHCr12GFVRzPh',
82
- c2c_email_label_id: 'mvjVgOP2VCiYsVovQqdq',
81
+ c2c_call_label_id: '6NU5fKE2mGTyXDC3yhmK',
82
+ c2c_email_label_id: 'YPMamj8RvsGORVvqXWyc',
83
83
  radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
84
84
  firebase: {
85
85
  apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
@@ -93,7 +93,7 @@ const environment = {
93
93
  },
94
94
  perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
95
95
  keycloakURL: 'https://test-keycloak.vgroupinc.com/',
96
- keycloakRealm: 'vgroup-dev',
96
+ keycloakRealm: 'vgroup-test',
97
97
  keycloakClientId: 'c2c-softphone-app'
98
98
  };
99
99
 
@@ -2146,13 +2146,14 @@ class CallProgressComponent {
2146
2146
  this.endIncomingCallEvent.emit(c);
2147
2147
  return false;
2148
2148
  }
2149
- let participantId = isAllCallEnd ? 'all' : c.participantId || c.participantId;
2149
+ let participantId = isAllCallEnd ? 'all' : c.participantId;
2150
2150
  let conferenceId = isAllCallEnd ? 'all' : c.conferenceId || this.currentCall.conferenceId;
2151
2151
  let res = await this.getRemoveParticipants(participantId, conferenceId);
2152
2152
  if (res?.status == 201 && res?.message == 'participant already left') {
2153
2153
  this.cdr.detectChanges();
2154
2154
  }
2155
2155
  await this.getAllParticipants(this.currentCall.conferenceSid);
2156
+ this.currentCallList = this.currentCallList.filter((res) => res.participantId !== c.participantId);
2156
2157
  this.incomeingCallSocketService.pause();
2157
2158
  this.endIncomingCallEvent.emit(c);
2158
2159
  this.cdr.detectChanges();
@@ -2525,6 +2526,7 @@ class CallProgressComponent {
2525
2526
  else {
2526
2527
  let index = this.currentCallList.findIndex((res) => res.participantId == data.participantId);
2527
2528
  this.currentCallList.splice(index, 1);
2529
+ swal("Error", res?.message, "error");
2528
2530
  this.incomeingCallSocketService.pause();
2529
2531
  this.endCallEvent.emit(data);
2530
2532
  }
@@ -3583,18 +3585,22 @@ class DialboxComponent {
3583
3585
  // console.log("WS Event Received:", incomingCallData.data);
3584
3586
  this.twilioService.conferenceCallInfo = incomingCallData;
3585
3587
  if (!!incomingCallData?.length) {
3588
+ incomingCallData = incomingCallData.filter((item) => item.participants?.length > 0);
3586
3589
  // this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
3587
3590
  this.incomingCallsList = incomingCallData || [];
3588
3591
  let parentCall = [];
3589
- this.notificationCallList.forEach((call) => {
3590
- incomingCallData.forEach((item) => {
3591
- let info = item.participants.find((resInfo) => resInfo?.id === call?.participantId);
3592
- // return info?.id
3593
- if (info) {
3594
- parentCall.push(info.id);
3595
- }
3592
+ if (this.notificationCallList.length) {
3593
+ this.notificationCallList.filter((res) => res.endTime >= Date.now());
3594
+ this.notificationCallList.forEach((call) => {
3595
+ incomingCallData.forEach((item) => {
3596
+ let info = item.participants.find((resInfo) => resInfo?.id === call?.participantId);
3597
+ // return info?.id
3598
+ if (info) {
3599
+ parentCall.push(info.id);
3600
+ }
3601
+ });
3596
3602
  });
3597
- });
3603
+ }
3598
3604
  if (parentCall?.length > 0) {
3599
3605
  this.notificationCallList = this.notificationCallList.filter((item) => !parentCall.includes(item?.participantId));
3600
3606
  this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
@@ -4014,8 +4020,10 @@ class DialboxComponent {
4014
4020
  incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
4015
4021
  incomingCall.participants[0]['subject'] = callerInfo.subject;
4016
4022
  }
4017
- this.incomingCallsList.push(incomingCall);
4023
+ incomingCall['endTime'] = (Date.now() + 45 * 1000);
4018
4024
  this.notificationCallList.push(incomingCall);
4025
+ this.notificationCallList.filter((res) => res.endTime >= Date.now());
4026
+ this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
4019
4027
  this.cdk.detectChanges();
4020
4028
  if (this.incomingCallnotification.data.data?.participantId) {
4021
4029
  this.isCallInProgress = true;