@vgroup/dialbox 0.7.34 → 0.7.36
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 +59 -29
- package/esm2020/lib/environments/environments.mjs +10 -10
- package/fesm2015/vgroup-dialbox.mjs +68 -37
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +67 -37
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export const environment = {
|
|
2
|
-
abb: "
|
|
2
|
+
abb: "d",
|
|
3
3
|
production: false,
|
|
4
4
|
secureCookies: true,
|
|
5
|
-
feUrl: 'https://
|
|
6
|
-
apiUrl: 'https://
|
|
7
|
-
websocketUrl: 'wss://
|
|
5
|
+
feUrl: 'https://dev.vgroupinc.com:91/',
|
|
6
|
+
apiUrl: 'https://dev-api-t10.vgroupinc.com/dev_softphone_p91',
|
|
7
|
+
websocketUrl: 'wss://dev-api-t10.vgroupinc.com/dev_softphone_p91/',
|
|
8
8
|
captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
|
|
9
|
-
stripePublishableKey: "
|
|
9
|
+
stripePublishableKey: "pk_test_51K6aTuBiNVV2TMlQfmBWY8jziwiDo0IZ3TrqWPqth1m32cpMAAg5Qpi2AlSMDEAX6hCZRBXoTzBB1uQQLc8B4tco00q2SgG6zO",
|
|
10
10
|
sessionTimeout: 15,
|
|
11
11
|
deviceType: "web",
|
|
12
12
|
appVersion: "2.3",
|
|
13
13
|
channelId: '61481b12e138eb7dc3007579',
|
|
14
14
|
c2c_support_point_id: '60424735f74ac306c1bfa900',
|
|
15
|
-
c2c_support_channel_id: '
|
|
15
|
+
c2c_support_channel_id: '677f67f3be93ab507fbbfdfc',
|
|
16
16
|
c2c_point_url: 'https://app.contexttocall.com/assets/cdn/c2c.js',
|
|
17
|
-
c2c_call_label_id: '
|
|
18
|
-
c2c_email_label_id: '
|
|
17
|
+
c2c_call_label_id: 'ye2XFLfOHCr12GFVRzPh',
|
|
18
|
+
c2c_email_label_id: 'mvjVgOP2VCiYsVovQqdq',
|
|
19
19
|
radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
|
|
20
20
|
firebase: {
|
|
21
21
|
apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
|
|
@@ -29,7 +29,7 @@ export const environment = {
|
|
|
29
29
|
},
|
|
30
30
|
perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
|
|
31
31
|
keycloakURL: 'https://test-keycloak.vgroupinc.com/',
|
|
32
|
-
keycloakRealm: 'vgroup-
|
|
32
|
+
keycloakRealm: 'vgroup-dev',
|
|
33
33
|
keycloakClientId: 'c2c-softphone-app'
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGlhbGJveC9zcmMvbGliL2Vudmlyb25tZW50cy9lbnZpcm9ubWVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHO0lBQ3pCLEdBQUcsRUFBRSxHQUFHO0lBQ1IsVUFBVSxFQUFFLEtBQUs7SUFDakIsYUFBYSxFQUFFLElBQUk7SUFDbkIsS0FBSyxFQUFFLCtCQUErQjtJQUN0QyxNQUFNLEVBQUUscURBQXFEO0lBQzdELFlBQVksRUFBRSxvREFBb0Q7SUFDbEUsVUFBVSxFQUFFLDBDQUEwQztJQUN0RCxvQkFBb0IsRUFBRSw2R0FBN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BOExTUHJxbERxX3RoazI2TGhCUWV4QVFlWTZwa1U1WVwiLFxyXG4gICAgYXV0aERvbWFpbjogXCJzb2Z0cGhvbmUtZDU3NzcuZmlyZWJhc2VhcHAuY29tXCIsXHJcbiAgICBwcm9qZWN0SWQ6IFwic29mdHBob25lLWQ1Nzc3XCIsXHJcbiAgICBzdG9yYWdlQnVja2V0OiBcInNvZnRwaG9uZS1kNTc3Ny5hcHBzcG90LmNvbVwiLFxyXG4gICAgbWVzc2FnaW5nU2VuZGVySWQ6IFwiODUwODEyNDk0NTM4XCIsXHJcbiAgICBhcHBJZDogXCIxOjg1MDgxMjQ5NDUzODp3ZWI6NzRmOGEzMGZjMThlMjhkZWQ3OGEzM1wiLFxyXG4gICAgbWVhc3VyZW1lbnRJZDogXCJHLU5HWFRTVjlTSDNcIixcclxuICAgIHZhcGlkS2V5OiBcIkJENkVnY1FnYlpUak9RZmxlRzNZbEVjMF9TYWpCMDNwcnFUZER5LXFHSmt4VHhlemJxLUFfcXR1WEUxbDN5VDQ3bzhoblRBYlRLQmNIMTVEMkFKQjJUb1wiXHJcbiAgfSxcclxuICBwZXJzcGVjdGl2ZUFwaUtleTogJ0FJemFTeUNsZjMybHZMSDRRT3ktdk9uekx6d1NObnRLSWdhcEg4cycsXHJcbiAga2V5Y2xvYWtVUkw6ICdodHRwczovL3Rlc3Qta2V5Y2xvYWsudmdyb3VwaW5jLmNvbS8nLFxyXG4gIGtleWNsb2FrUmVhbG06ICd2Z3JvdXAtZGV2JyxcclxuICBrZXljbG9ha0NsaWVudElkOiAnYzJjLXNvZnRwaG9uZS1hcHAnXHJcbn07Il19
|
|
@@ -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
|
|
|
@@ -2997,7 +2997,7 @@ class CallProgressComponent {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
this.intervalId = setInterval(() => {
|
|
2999
2999
|
seconds++;
|
|
3000
|
-
this.timer = this.formatTime(seconds);
|
|
3000
|
+
// this.timer = this.formatTime(seconds);
|
|
3001
3001
|
this.cdr.detectChanges();
|
|
3002
3002
|
}, 1000);
|
|
3003
3003
|
}
|
|
@@ -3149,7 +3149,7 @@ class CallProgressComponent {
|
|
|
3149
3149
|
}
|
|
3150
3150
|
// Set selection immediately so the highlight appears before the API responds.
|
|
3151
3151
|
this.selectedUserInfo = userInfo;
|
|
3152
|
-
let participantID = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.businessParticipantId) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.participantId);
|
|
3152
|
+
let participantID = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.businessParticipantId) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.participantId) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id);
|
|
3153
3153
|
if (!this.C2ConfoList[userInfo === null || userInfo === void 0 ? void 0 : userInfo.participantId] && !this.C2ConfoList[userInfo === null || userInfo === void 0 ? void 0 : userInfo.businessParticipantId]) {
|
|
3154
3154
|
this.extensionService.getUserInformation(participantID).subscribe({
|
|
3155
3155
|
next: (resInfo) => {
|
|
@@ -3174,36 +3174,67 @@ class CallProgressComponent {
|
|
|
3174
3174
|
this.filteredParticipentList = this.allParticipentList;
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
|
+
// async waitingCallAccept(incomingCallInfo:any) {
|
|
3178
|
+
// let ourNumberInfo: any = {}
|
|
3179
|
+
// this.newIncomingCallsList.forEach((callInfo: any, i: number) => {
|
|
3180
|
+
// // this.currentCall?.conferenceId == callInfo.conferenceId
|
|
3181
|
+
// ourNumberInfo = callInfo.participants.find((resData: any) =>
|
|
3182
|
+
// ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData)
|
|
3183
|
+
// );
|
|
3184
|
+
// if (ourNumberInfo?.id && ourNumberInfo?.conferenceId !== incomingCallInfo?.conferenceId) {
|
|
3185
|
+
// this.isUnholdConferenceCall = true;
|
|
3186
|
+
// let holdInfo: any = await this.onholdOrUnholdParticipant({
|
|
3187
|
+
// participantId: [ourNumberInfo?.id],
|
|
3188
|
+
// conferenceId: ourNumberInfo?.conferenceId,
|
|
3189
|
+
// hold: true,
|
|
3190
|
+
// mute: ourNumberInfo?.mute || false
|
|
3191
|
+
// });
|
|
3192
|
+
// if(holdInfo?.status != 200) {
|
|
3193
|
+
// console.error('holdInfo 1091', holdInfo)
|
|
3194
|
+
// }
|
|
3195
|
+
// this.isConferenceCallHold = true;
|
|
3196
|
+
// }
|
|
3197
|
+
// })
|
|
3198
|
+
// // if (callInfo?.participants?.length) {
|
|
3199
|
+
// // ourNumberInfo = callInfo.participants.find((resData: any) =>
|
|
3200
|
+
// // ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData)
|
|
3201
|
+
// // );
|
|
3202
|
+
// // }
|
|
3203
|
+
// const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo?.clientSid) || this.twilioService.incomingCallDetail;
|
|
3204
|
+
// this.twilioService.acceptedCallList.forEach((call: any) => {
|
|
3205
|
+
// call.mute(true);
|
|
3206
|
+
// });
|
|
3207
|
+
// this.add(incomingCallInfo, ourNumberInfo, capturedCall);
|
|
3208
|
+
// }
|
|
3177
3209
|
waitingCallAccept(incomingCallInfo) {
|
|
3210
|
+
var _a;
|
|
3178
3211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3179
3212
|
let ourNumberInfo = {};
|
|
3180
|
-
this.newIncomingCallsList.
|
|
3181
|
-
|
|
3213
|
+
let callInfo = this.newIncomingCallsList.find((callInfo, i) => { var _a; return ((_a = this.currentCall) === null || _a === void 0 ? void 0 : _a.conferenceId) == callInfo.conferenceId; });
|
|
3214
|
+
if ((_a = callInfo === null || callInfo === void 0 ? void 0 : callInfo.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3182
3215
|
ourNumberInfo = callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.from) && (resData === null || resData === void 0 ? void 0 : resData.client)) || (this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.to) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'incoming-call' && !(resData === null || resData === void 0 ? void 0 : resData.businessNumber))) && !(resData === null || resData === void 0 ? void 0 : resData.isLeft) && this.getStatus(resData));
|
|
3183
|
-
|
|
3184
|
-
this.isUnholdConferenceCall = true;
|
|
3185
|
-
let holdInfo = this.onholdOrUnholdParticipant({
|
|
3186
|
-
participantId: [ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.id],
|
|
3187
|
-
conferenceId: ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.conferenceId,
|
|
3188
|
-
hold: true,
|
|
3189
|
-
mute: (ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.mute) || false
|
|
3190
|
-
});
|
|
3191
|
-
if ((holdInfo === null || holdInfo === void 0 ? void 0 : holdInfo.status) != 200) {
|
|
3192
|
-
console.error('holdInfo 1091', holdInfo);
|
|
3193
|
-
}
|
|
3194
|
-
this.isConferenceCallHold = true;
|
|
3195
|
-
}
|
|
3196
|
-
});
|
|
3197
|
-
// if (callInfo?.participants?.length) {
|
|
3198
|
-
// ourNumberInfo = callInfo.participants.find((resData: any) =>
|
|
3199
|
-
// ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData)
|
|
3200
|
-
// );
|
|
3201
|
-
// }
|
|
3216
|
+
}
|
|
3202
3217
|
const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo === null || incomingCallInfo === void 0 ? void 0 : incomingCallInfo.clientSid) || this.twilioService.incomingCallDetail;
|
|
3203
3218
|
this.twilioService.acceptedCallList.forEach((call) => {
|
|
3204
3219
|
call.mute(true);
|
|
3205
3220
|
});
|
|
3206
|
-
|
|
3221
|
+
if ((ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.id) && (ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.conferenceId) !== (incomingCallInfo === null || incomingCallInfo === void 0 ? void 0 : incomingCallInfo.conferenceId)) {
|
|
3222
|
+
this.isUnholdConferenceCall = true;
|
|
3223
|
+
let holdInfo = yield this.onholdOrUnholdParticipant({
|
|
3224
|
+
participantId: [ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.id],
|
|
3225
|
+
conferenceId: ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.conferenceId,
|
|
3226
|
+
hold: true,
|
|
3227
|
+
mute: (ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.mute) || false
|
|
3228
|
+
});
|
|
3229
|
+
if ((holdInfo === null || holdInfo === void 0 ? void 0 : holdInfo.status) != 200) {
|
|
3230
|
+
console.error('holdInfo 1091', holdInfo);
|
|
3231
|
+
}
|
|
3232
|
+
this.isConferenceCallHold = true;
|
|
3233
|
+
this.add(incomingCallInfo, ourNumberInfo, capturedCall);
|
|
3234
|
+
}
|
|
3235
|
+
else {
|
|
3236
|
+
this.add(incomingCallInfo, ourNumberInfo, capturedCall);
|
|
3237
|
+
}
|
|
3207
3238
|
});
|
|
3208
3239
|
}
|
|
3209
3240
|
add(data, ourNumberInfo, capturedCall) {
|
|
@@ -4049,7 +4080,7 @@ class CallProgressComponent {
|
|
|
4049
4080
|
};
|
|
4050
4081
|
this.extensionService.setIncomingCallStatus(payload).subscribe((res) => __awaiter(this, void 0, void 0, function* () {
|
|
4051
4082
|
this.currentCallList = this.currentCallList.filter((res) => (res === null || res === void 0 ? void 0 : res.id) != (callInfo === null || callInfo === void 0 ? void 0 : callInfo.id));
|
|
4052
|
-
this.
|
|
4083
|
+
this.onCloseC2CInfoPanel();
|
|
4053
4084
|
this.cdr.detectChanges();
|
|
4054
4085
|
}));
|
|
4055
4086
|
}
|
|
@@ -4063,10 +4094,10 @@ class CallProgressComponent {
|
|
|
4063
4094
|
onCloseC2CInfoPanel() {
|
|
4064
4095
|
var _a;
|
|
4065
4096
|
// this.isClickExpand = false;
|
|
4066
|
-
let businessInfo = (_a = this.currentConferenceCall) === null || _a === void 0 ? void 0 : _a.participants.find((item) => !!(item === null || item === void 0 ? void 0 : item.businessNumber) && this.deviceNumberList.includes(item === null || item === void 0 ? void 0 : item.to));
|
|
4097
|
+
let businessInfo = (_a = this.currentConferenceCall) === null || _a === void 0 ? void 0 : _a.participants.find((item) => !!(item === null || item === void 0 ? void 0 : item.businessNumber) && this.deviceNumberList.includes(item === null || item === void 0 ? void 0 : item.to) && !(item === null || item === void 0 ? void 0 : item.host));
|
|
4067
4098
|
if (businessInfo) {
|
|
4068
|
-
this.selectedUserInfo = businessInfo;
|
|
4069
|
-
this.toggleC2CInfoPanel(
|
|
4099
|
+
this.selectedUserInfo = this.currentCallList.find(res => (businessInfo === null || businessInfo === void 0 ? void 0 : businessInfo.id) == (res === null || res === void 0 ? void 0 : res.id));
|
|
4100
|
+
this.toggleC2CInfoPanel(this.selectedUserInfo);
|
|
4070
4101
|
}
|
|
4071
4102
|
else {
|
|
4072
4103
|
this.isClickExpand = false;
|