@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
|
@@ -64,23 +64,23 @@ const keypad = [
|
|
|
64
64
|
];
|
|
65
65
|
|
|
66
66
|
const environment = {
|
|
67
|
-
abb: "
|
|
67
|
+
abb: "d",
|
|
68
68
|
production: false,
|
|
69
69
|
secureCookies: true,
|
|
70
|
-
feUrl: 'https://
|
|
71
|
-
apiUrl: 'https://
|
|
72
|
-
websocketUrl: 'wss://
|
|
70
|
+
feUrl: 'https://dev.vgroupinc.com:91/',
|
|
71
|
+
apiUrl: 'https://dev-api-t10.vgroupinc.com/dev_softphone_p91',
|
|
72
|
+
websocketUrl: 'wss://dev-api-t10.vgroupinc.com/dev_softphone_p91/',
|
|
73
73
|
captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
|
|
74
|
-
stripePublishableKey: "
|
|
74
|
+
stripePublishableKey: "pk_test_51K6aTuBiNVV2TMlQfmBWY8jziwiDo0IZ3TrqWPqth1m32cpMAAg5Qpi2AlSMDEAX6hCZRBXoTzBB1uQQLc8B4tco00q2SgG6zO",
|
|
75
75
|
sessionTimeout: 15,
|
|
76
76
|
deviceType: "web",
|
|
77
77
|
appVersion: "2.3",
|
|
78
78
|
channelId: '61481b12e138eb7dc3007579',
|
|
79
79
|
c2c_support_point_id: '60424735f74ac306c1bfa900',
|
|
80
|
-
c2c_support_channel_id: '
|
|
80
|
+
c2c_support_channel_id: '677f67f3be93ab507fbbfdfc',
|
|
81
81
|
c2c_point_url: 'https://app.contexttocall.com/assets/cdn/c2c.js',
|
|
82
|
-
c2c_call_label_id: '
|
|
83
|
-
c2c_email_label_id: '
|
|
82
|
+
c2c_call_label_id: 'ye2XFLfOHCr12GFVRzPh',
|
|
83
|
+
c2c_email_label_id: 'mvjVgOP2VCiYsVovQqdq',
|
|
84
84
|
radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
|
|
85
85
|
firebase: {
|
|
86
86
|
apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
|
|
@@ -94,7 +94,7 @@ const environment = {
|
|
|
94
94
|
},
|
|
95
95
|
perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
|
|
96
96
|
keycloakURL: 'https://test-keycloak.vgroupinc.com/',
|
|
97
|
-
keycloakRealm: 'vgroup-
|
|
97
|
+
keycloakRealm: 'vgroup-dev',
|
|
98
98
|
keycloakClientId: 'c2c-softphone-app'
|
|
99
99
|
};
|
|
100
100
|
|
|
@@ -570,6 +570,7 @@ class ExtensionService {
|
|
|
570
570
|
initiateCall(payload) {
|
|
571
571
|
return this.fetchBlockedCountries().pipe(switchMap(blockedCountries => {
|
|
572
572
|
return this.ipAddressService.getIpAddressInfo().pipe(switchMap(ipAddressInfo => {
|
|
573
|
+
this.ipAddressInfo = Object.assign({}, ipAddressInfo);
|
|
573
574
|
const params = {
|
|
574
575
|
'Content-Type': 'application/json',
|
|
575
576
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token'),
|
|
@@ -603,6 +604,8 @@ class ExtensionService {
|
|
|
603
604
|
});
|
|
604
605
|
const httpOptions = { headers: headers };
|
|
605
606
|
console.log(payload, 'payload');
|
|
607
|
+
payload = Object.assign(Object.assign({}, payload), { proxy: this.ipAddressInfo.proxy.toString() });
|
|
608
|
+
payload = Object.assign(Object.assign({}, payload), { countryCode: this.ipAddressInfo.address.countryCode.toString() });
|
|
606
609
|
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
607
610
|
}
|
|
608
611
|
holdParticipant(payload) {
|
|
@@ -2024,7 +2027,7 @@ class CallProgressComponent {
|
|
|
2024
2027
|
this.showRingAnimation = true;
|
|
2025
2028
|
const payload = {
|
|
2026
2029
|
channelId: environment.channelId,
|
|
2027
|
-
userId:
|
|
2030
|
+
userId: callData === null || callData === void 0 ? void 0 : callData.userId,
|
|
2028
2031
|
to: callData.phone,
|
|
2029
2032
|
fromNumber: callData.from,
|
|
2030
2033
|
scope: 'local',
|
|
@@ -2433,10 +2436,10 @@ class CallProgressComponent {
|
|
|
2433
2436
|
}
|
|
2434
2437
|
else {
|
|
2435
2438
|
this.isConferenceCallHold = false;
|
|
2436
|
-
const index = this.currentCallList.findIndex((item) =>
|
|
2437
|
-
if (index != -1) {
|
|
2438
|
-
|
|
2439
|
-
}
|
|
2439
|
+
// const index = this.currentCallList.findIndex((item: any) => item.participantId == this.currentCall?.participantId);
|
|
2440
|
+
// if (index != -1) {
|
|
2441
|
+
// // this.currentCallList[index].isHold = true;
|
|
2442
|
+
// }
|
|
2440
2443
|
yield this.onholdOrUnholdParticipant({
|
|
2441
2444
|
participantId: ((_c = this.currentCall) === null || _c === void 0 ? void 0 : _c.isIncomingCall) ? [(_d = this.currentCall) === null || _d === void 0 ? void 0 : _d.id] : [(_e = this.currentCall) === null || _e === void 0 ? void 0 : _e.participantId],
|
|
2442
2445
|
conferenceId: this.conferenceId,
|
|
@@ -2468,7 +2471,7 @@ class CallProgressComponent {
|
|
|
2468
2471
|
});
|
|
2469
2472
|
}
|
|
2470
2473
|
callContact(contact) {
|
|
2471
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2474
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2472
2475
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2473
2476
|
console.log('Adding participant:', contact);
|
|
2474
2477
|
console.log('this.call', this.call);
|
|
@@ -2491,7 +2494,10 @@ class CallProgressComponent {
|
|
|
2491
2494
|
from: ((_c = this.callData) === null || _c === void 0 ? void 0 : _c.from) || ((_d = this.selectedCallerId) === null || _d === void 0 ? void 0 : _d.number),
|
|
2492
2495
|
route: "OUTGOING",
|
|
2493
2496
|
participantNumber: phoneNumber,
|
|
2494
|
-
conferenceId: this.conferenceId
|
|
2497
|
+
conferenceId: this.conferenceId,
|
|
2498
|
+
userId: (_e = this.callData) === null || _e === void 0 ? void 0 : _e.userId,
|
|
2499
|
+
proxy: '',
|
|
2500
|
+
countrycode: '',
|
|
2495
2501
|
});
|
|
2496
2502
|
this.onholdOrUnholdParticipant({
|
|
2497
2503
|
participantId: [data === null || data === void 0 ? void 0 : data.participantId],
|
|
@@ -2506,7 +2512,7 @@ class CallProgressComponent {
|
|
|
2506
2512
|
name: (contact === null || contact === void 0 ? void 0 : contact.name) || `${contact === null || contact === void 0 ? void 0 : contact.firstName} ${contact === null || contact === void 0 ? void 0 : contact.lastName}` || phoneNumber,
|
|
2507
2513
|
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2508
2514
|
participantId: data === null || data === void 0 ? void 0 : data.participantId,
|
|
2509
|
-
from: (
|
|
2515
|
+
from: (_f = this.selectedCallerId) === null || _f === void 0 ? void 0 : _f.number,
|
|
2510
2516
|
isIncomingCall: false,
|
|
2511
2517
|
isHold: false,
|
|
2512
2518
|
isLeft: false,
|
|
@@ -2557,7 +2563,7 @@ class CallProgressComponent {
|
|
|
2557
2563
|
}
|
|
2558
2564
|
// Add participant to the conference
|
|
2559
2565
|
let data = yield this.addParticipantToCall({
|
|
2560
|
-
from: ((
|
|
2566
|
+
from: ((_g = this.callData) === null || _g === void 0 ? void 0 : _g.from) || ((_h = this.selectedCallerId) === null || _h === void 0 ? void 0 : _h.number),
|
|
2561
2567
|
route: "OUTGOING",
|
|
2562
2568
|
participantNumber: phoneNumber,
|
|
2563
2569
|
conferenceId: this.conferenceId
|
|
@@ -2573,7 +2579,7 @@ class CallProgressComponent {
|
|
|
2573
2579
|
name: (contact === null || contact === void 0 ? void 0 : contact.name) || `${contact === null || contact === void 0 ? void 0 : contact.firstName} ${contact === null || contact === void 0 ? void 0 : contact.lastName}` || phoneNumber,
|
|
2574
2580
|
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2575
2581
|
participantId: data === null || data === void 0 ? void 0 : data.participantId,
|
|
2576
|
-
from: (
|
|
2582
|
+
from: (_j = this.selectedCallerId) === null || _j === void 0 ? void 0 : _j.number,
|
|
2577
2583
|
isIncomingCall: false,
|
|
2578
2584
|
isHold: false,
|
|
2579
2585
|
isLeft: false,
|
|
@@ -3152,6 +3158,8 @@ class CallProgressComponent {
|
|
|
3152
3158
|
ipAddress: '',
|
|
3153
3159
|
ipCountry: '',
|
|
3154
3160
|
callStatus: 'answered',
|
|
3161
|
+
deviceId: this.deviceId,
|
|
3162
|
+
conferenceId: this.conferenceId || 'no'
|
|
3155
3163
|
};
|
|
3156
3164
|
this.extensionService.setIncomingCallStatus(payload).subscribe((res) => {
|
|
3157
3165
|
console.log(res);
|