@vgroup/dialbox 0.4.130 → 0.4.131
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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +12 -7
- package/esm2020/lib/environments/environments.mjs +10 -10
- package/esm2020/lib/service/extension.service.mjs +4 -1
- package/fesm2015/vgroup-dialbox.mjs +27 -19
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +23 -15
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/service/extension.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -63,23 +63,23 @@ const keypad = [
|
|
|
63
63
|
];
|
|
64
64
|
|
|
65
65
|
const environment = {
|
|
66
|
-
abb: "
|
|
66
|
+
abb: "d",
|
|
67
67
|
production: false,
|
|
68
68
|
secureCookies: true,
|
|
69
|
-
feUrl: 'https://
|
|
70
|
-
apiUrl: 'https://
|
|
71
|
-
websocketUrl: 'wss://
|
|
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/',
|
|
72
72
|
captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
|
|
73
|
-
stripePublishableKey: "
|
|
73
|
+
stripePublishableKey: "pk_test_51K6aTuBiNVV2TMlQfmBWY8jziwiDo0IZ3TrqWPqth1m32cpMAAg5Qpi2AlSMDEAX6hCZRBXoTzBB1uQQLc8B4tco00q2SgG6zO",
|
|
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: '
|
|
79
|
+
c2c_support_channel_id: '677f67f3be93ab507fbbfdfc',
|
|
80
80
|
c2c_point_url: 'https://app.contexttocall.com/assets/cdn/c2c.js',
|
|
81
|
-
c2c_call_label_id: '
|
|
82
|
-
c2c_email_label_id: '
|
|
81
|
+
c2c_call_label_id: 'ye2XFLfOHCr12GFVRzPh',
|
|
82
|
+
c2c_email_label_id: 'mvjVgOP2VCiYsVovQqdq',
|
|
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-
|
|
96
|
+
keycloakRealm: 'vgroup-dev',
|
|
97
97
|
keycloakClientId: 'c2c-softphone-app'
|
|
98
98
|
};
|
|
99
99
|
|
|
@@ -569,6 +569,7 @@ class ExtensionService {
|
|
|
569
569
|
initiateCall(payload) {
|
|
570
570
|
return this.fetchBlockedCountries().pipe(switchMap(blockedCountries => {
|
|
571
571
|
return this.ipAddressService.getIpAddressInfo().pipe(switchMap(ipAddressInfo => {
|
|
572
|
+
this.ipAddressInfo = { ...ipAddressInfo };
|
|
572
573
|
const params = {
|
|
573
574
|
'Content-Type': 'application/json',
|
|
574
575
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token'),
|
|
@@ -602,6 +603,8 @@ class ExtensionService {
|
|
|
602
603
|
});
|
|
603
604
|
const httpOptions = { headers: headers };
|
|
604
605
|
console.log(payload, 'payload');
|
|
606
|
+
payload = { ...payload, proxy: this.ipAddressInfo.proxy.toString() };
|
|
607
|
+
payload = { ...payload, countryCode: this.ipAddressInfo.address.countryCode.toString() };
|
|
605
608
|
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
606
609
|
}
|
|
607
610
|
holdParticipant(payload) {
|
|
@@ -2070,7 +2073,7 @@ class CallProgressComponent {
|
|
|
2070
2073
|
this.showRingAnimation = true;
|
|
2071
2074
|
const payload = {
|
|
2072
2075
|
channelId: environment.channelId,
|
|
2073
|
-
userId:
|
|
2076
|
+
userId: callData?.userId,
|
|
2074
2077
|
to: callData.phone,
|
|
2075
2078
|
fromNumber: callData.from,
|
|
2076
2079
|
scope: 'local',
|
|
@@ -2485,10 +2488,10 @@ class CallProgressComponent {
|
|
|
2485
2488
|
}
|
|
2486
2489
|
else {
|
|
2487
2490
|
this.isConferenceCallHold = false;
|
|
2488
|
-
const index = this.currentCallList.findIndex((item) => item.participantId == this.currentCall?.participantId);
|
|
2489
|
-
if (index != -1) {
|
|
2490
|
-
|
|
2491
|
-
}
|
|
2491
|
+
// const index = this.currentCallList.findIndex((item: any) => item.participantId == this.currentCall?.participantId);
|
|
2492
|
+
// if (index != -1) {
|
|
2493
|
+
// // this.currentCallList[index].isHold = true;
|
|
2494
|
+
// }
|
|
2492
2495
|
await this.onholdOrUnholdParticipant({
|
|
2493
2496
|
participantId: this.currentCall?.isIncomingCall ? [this.currentCall?.id] : [this.currentCall?.participantId],
|
|
2494
2497
|
conferenceId: this.conferenceId,
|
|
@@ -2548,7 +2551,10 @@ class CallProgressComponent {
|
|
|
2548
2551
|
from: this.callData?.from || this.selectedCallerId?.number,
|
|
2549
2552
|
route: "OUTGOING",
|
|
2550
2553
|
participantNumber: phoneNumber,
|
|
2551
|
-
conferenceId: this.conferenceId
|
|
2554
|
+
conferenceId: this.conferenceId,
|
|
2555
|
+
userId: this.callData?.userId,
|
|
2556
|
+
proxy: '',
|
|
2557
|
+
countrycode: '',
|
|
2552
2558
|
});
|
|
2553
2559
|
this.onholdOrUnholdParticipant({
|
|
2554
2560
|
participantId: [data?.participantId],
|
|
@@ -3199,6 +3205,8 @@ class CallProgressComponent {
|
|
|
3199
3205
|
ipAddress: '',
|
|
3200
3206
|
ipCountry: '',
|
|
3201
3207
|
callStatus: 'answered',
|
|
3208
|
+
deviceId: this.deviceId,
|
|
3209
|
+
conferenceId: this.conferenceId || 'no'
|
|
3202
3210
|
};
|
|
3203
3211
|
this.extensionService.setIncomingCallStatus(payload).subscribe((res) => {
|
|
3204
3212
|
console.log(res);
|