@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
|
@@ -62,23 +62,23 @@ const keypad = [
|
|
|
62
62
|
];
|
|
63
63
|
|
|
64
64
|
const environment = {
|
|
65
|
-
abb: "
|
|
65
|
+
abb: "d",
|
|
66
66
|
production: false,
|
|
67
67
|
secureCookies: true,
|
|
68
|
-
feUrl: 'https://
|
|
69
|
-
apiUrl: 'https://
|
|
70
|
-
websocketUrl: 'wss://
|
|
68
|
+
feUrl: 'https://dev.vgroupinc.com:91/',
|
|
69
|
+
apiUrl: 'https://dev-api-t10.vgroupinc.com/dev_softphone_p91',
|
|
70
|
+
websocketUrl: 'wss://dev-api-t10.vgroupinc.com/dev_softphone_p91/',
|
|
71
71
|
captchaKey: "6LfpOmEaAAAAAGsI6JXlMzOl3b7rW4YmYXFDjldD",
|
|
72
|
-
stripePublishableKey: "
|
|
72
|
+
stripePublishableKey: "pk_test_51K6aTuBiNVV2TMlQfmBWY8jziwiDo0IZ3TrqWPqth1m32cpMAAg5Qpi2AlSMDEAX6hCZRBXoTzBB1uQQLc8B4tco00q2SgG6zO",
|
|
73
73
|
sessionTimeout: 15,
|
|
74
74
|
deviceType: "web",
|
|
75
75
|
appVersion: "2.3",
|
|
76
76
|
channelId: '61481b12e138eb7dc3007579',
|
|
77
77
|
c2c_support_point_id: '60424735f74ac306c1bfa900',
|
|
78
|
-
c2c_support_channel_id: '
|
|
78
|
+
c2c_support_channel_id: '677f67f3be93ab507fbbfdfc',
|
|
79
79
|
c2c_point_url: 'https://app.contexttocall.com/assets/cdn/c2c.js',
|
|
80
|
-
c2c_call_label_id: '
|
|
81
|
-
c2c_email_label_id: '
|
|
80
|
+
c2c_call_label_id: 'ye2XFLfOHCr12GFVRzPh',
|
|
81
|
+
c2c_email_label_id: 'mvjVgOP2VCiYsVovQqdq',
|
|
82
82
|
radarAPIKey: 'prj_live_sk_569b6f639edde6120a26f703511c61aaecd3f7ef',
|
|
83
83
|
firebase: {
|
|
84
84
|
apiKey: "AIzaSyCA8LSPrqlDq_thk26LhBQexAQeY6pkU5Y",
|
|
@@ -92,7 +92,7 @@ const environment = {
|
|
|
92
92
|
},
|
|
93
93
|
perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
|
|
94
94
|
keycloakURL: 'https://test-keycloak.vgroupinc.com/',
|
|
95
|
-
keycloakRealm: 'vgroup-
|
|
95
|
+
keycloakRealm: 'vgroup-dev',
|
|
96
96
|
keycloakClientId: 'c2c-softphone-app'
|
|
97
97
|
};
|
|
98
98
|
|
|
@@ -3011,7 +3011,7 @@ class CallProgressComponent {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
this.intervalId = setInterval(() => {
|
|
3013
3013
|
seconds++;
|
|
3014
|
-
this.timer = this.formatTime(seconds);
|
|
3014
|
+
// this.timer = this.formatTime(seconds);
|
|
3015
3015
|
this.cdr.detectChanges();
|
|
3016
3016
|
}, 1000);
|
|
3017
3017
|
}
|
|
@@ -3156,7 +3156,7 @@ class CallProgressComponent {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
// Set selection immediately so the highlight appears before the API responds.
|
|
3158
3158
|
this.selectedUserInfo = userInfo;
|
|
3159
|
-
let participantID = userInfo?.businessParticipantId || userInfo?.participantId;
|
|
3159
|
+
let participantID = userInfo?.businessParticipantId || userInfo?.participantId || userInfo?.id;
|
|
3160
3160
|
if (!this.C2ConfoList[userInfo?.participantId] && !this.C2ConfoList[userInfo?.businessParticipantId]) {
|
|
3161
3161
|
this.extensionService.getUserInformation(participantID).subscribe({
|
|
3162
3162
|
next: (resInfo) => {
|
|
@@ -3179,35 +3179,65 @@ class CallProgressComponent {
|
|
|
3179
3179
|
// await this.getAllParticipants(this.currentCall.conferenceId);
|
|
3180
3180
|
this.filteredParticipentList = this.allParticipentList;
|
|
3181
3181
|
}
|
|
3182
|
+
// async waitingCallAccept(incomingCallInfo:any) {
|
|
3183
|
+
// let ourNumberInfo: any = {}
|
|
3184
|
+
// this.newIncomingCallsList.forEach((callInfo: any, i: number) => {
|
|
3185
|
+
// // this.currentCall?.conferenceId == callInfo.conferenceId
|
|
3186
|
+
// ourNumberInfo = callInfo.participants.find((resData: any) =>
|
|
3187
|
+
// ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData)
|
|
3188
|
+
// );
|
|
3189
|
+
// if (ourNumberInfo?.id && ourNumberInfo?.conferenceId !== incomingCallInfo?.conferenceId) {
|
|
3190
|
+
// this.isUnholdConferenceCall = true;
|
|
3191
|
+
// let holdInfo: any = await this.onholdOrUnholdParticipant({
|
|
3192
|
+
// participantId: [ourNumberInfo?.id],
|
|
3193
|
+
// conferenceId: ourNumberInfo?.conferenceId,
|
|
3194
|
+
// hold: true,
|
|
3195
|
+
// mute: ourNumberInfo?.mute || false
|
|
3196
|
+
// });
|
|
3197
|
+
// if(holdInfo?.status != 200) {
|
|
3198
|
+
// console.error('holdInfo 1091', holdInfo)
|
|
3199
|
+
// }
|
|
3200
|
+
// this.isConferenceCallHold = true;
|
|
3201
|
+
// }
|
|
3202
|
+
// })
|
|
3203
|
+
// // if (callInfo?.participants?.length) {
|
|
3204
|
+
// // ourNumberInfo = callInfo.participants.find((resData: any) =>
|
|
3205
|
+
// // ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData)
|
|
3206
|
+
// // );
|
|
3207
|
+
// // }
|
|
3208
|
+
// const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo?.clientSid) || this.twilioService.incomingCallDetail;
|
|
3209
|
+
// this.twilioService.acceptedCallList.forEach((call: any) => {
|
|
3210
|
+
// call.mute(true);
|
|
3211
|
+
// });
|
|
3212
|
+
// this.add(incomingCallInfo, ourNumberInfo, capturedCall);
|
|
3213
|
+
// }
|
|
3182
3214
|
async waitingCallAccept(incomingCallInfo) {
|
|
3183
3215
|
let ourNumberInfo = {};
|
|
3184
|
-
this.newIncomingCallsList.
|
|
3185
|
-
|
|
3216
|
+
let callInfo = this.newIncomingCallsList.find((callInfo, i) => this.currentCall?.conferenceId == callInfo.conferenceId);
|
|
3217
|
+
if (callInfo?.participants?.length) {
|
|
3186
3218
|
ourNumberInfo = callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData));
|
|
3187
|
-
|
|
3188
|
-
this.isUnholdConferenceCall = true;
|
|
3189
|
-
let holdInfo = this.onholdOrUnholdParticipant({
|
|
3190
|
-
participantId: [ourNumberInfo?.id],
|
|
3191
|
-
conferenceId: ourNumberInfo?.conferenceId,
|
|
3192
|
-
hold: true,
|
|
3193
|
-
mute: ourNumberInfo?.mute || false
|
|
3194
|
-
});
|
|
3195
|
-
if (holdInfo?.status != 200) {
|
|
3196
|
-
console.error('holdInfo 1091', holdInfo);
|
|
3197
|
-
}
|
|
3198
|
-
this.isConferenceCallHold = true;
|
|
3199
|
-
}
|
|
3200
|
-
});
|
|
3201
|
-
// if (callInfo?.participants?.length) {
|
|
3202
|
-
// ourNumberInfo = callInfo.participants.find((resData: any) =>
|
|
3203
|
-
// ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData)
|
|
3204
|
-
// );
|
|
3205
|
-
// }
|
|
3219
|
+
}
|
|
3206
3220
|
const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo?.clientSid) || this.twilioService.incomingCallDetail;
|
|
3207
3221
|
this.twilioService.acceptedCallList.forEach((call) => {
|
|
3208
3222
|
call.mute(true);
|
|
3209
3223
|
});
|
|
3210
|
-
|
|
3224
|
+
if (ourNumberInfo?.id && ourNumberInfo?.conferenceId !== incomingCallInfo?.conferenceId) {
|
|
3225
|
+
this.isUnholdConferenceCall = true;
|
|
3226
|
+
let holdInfo = await this.onholdOrUnholdParticipant({
|
|
3227
|
+
participantId: [ourNumberInfo?.id],
|
|
3228
|
+
conferenceId: ourNumberInfo?.conferenceId,
|
|
3229
|
+
hold: true,
|
|
3230
|
+
mute: ourNumberInfo?.mute || false
|
|
3231
|
+
});
|
|
3232
|
+
if (holdInfo?.status != 200) {
|
|
3233
|
+
console.error('holdInfo 1091', holdInfo);
|
|
3234
|
+
}
|
|
3235
|
+
this.isConferenceCallHold = true;
|
|
3236
|
+
this.add(incomingCallInfo, ourNumberInfo, capturedCall);
|
|
3237
|
+
}
|
|
3238
|
+
else {
|
|
3239
|
+
this.add(incomingCallInfo, ourNumberInfo, capturedCall);
|
|
3240
|
+
}
|
|
3211
3241
|
}
|
|
3212
3242
|
async add(data, ourNumberInfo, capturedCall) {
|
|
3213
3243
|
this.isConnecting = true;
|
|
@@ -4025,7 +4055,7 @@ class CallProgressComponent {
|
|
|
4025
4055
|
};
|
|
4026
4056
|
this.extensionService.setIncomingCallStatus(payload).subscribe(async (res) => {
|
|
4027
4057
|
this.currentCallList = this.currentCallList.filter((res) => res?.id != callInfo?.id);
|
|
4028
|
-
this.
|
|
4058
|
+
this.onCloseC2CInfoPanel();
|
|
4029
4059
|
this.cdr.detectChanges();
|
|
4030
4060
|
});
|
|
4031
4061
|
}
|
|
@@ -4038,10 +4068,10 @@ class CallProgressComponent {
|
|
|
4038
4068
|
}
|
|
4039
4069
|
onCloseC2CInfoPanel() {
|
|
4040
4070
|
// this.isClickExpand = false;
|
|
4041
|
-
let businessInfo = this.currentConferenceCall?.participants.find((item) => !!item?.businessNumber && this.deviceNumberList.includes(item?.to));
|
|
4071
|
+
let businessInfo = this.currentConferenceCall?.participants.find((item) => !!item?.businessNumber && this.deviceNumberList.includes(item?.to) && !item?.host);
|
|
4042
4072
|
if (businessInfo) {
|
|
4043
|
-
this.selectedUserInfo = businessInfo;
|
|
4044
|
-
this.toggleC2CInfoPanel(
|
|
4073
|
+
this.selectedUserInfo = this.currentCallList.find(res => businessInfo?.id == res?.id);
|
|
4074
|
+
this.toggleC2CInfoPanel(this.selectedUserInfo);
|
|
4045
4075
|
}
|
|
4046
4076
|
else {
|
|
4047
4077
|
this.isClickExpand = false;
|