@vgroup/dialbox 0.5.29 → 0.5.30
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 +1 -27
- package/esm2020/lib/dialbox.component.mjs +2 -3
- package/esm2020/lib/environments/environments.mjs +10 -10
- package/fesm2015/vgroup-dialbox.mjs +10 -37
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +10 -37
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +2 -3
- 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
|
|
|
@@ -1829,9 +1829,7 @@ class CallProgressComponent {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
if (changes['newIncomingCallsList']) {
|
|
1832
|
-
// try {
|
|
1833
1832
|
if (this.newIncomingCallsList?.length) {
|
|
1834
|
-
// Check if there's an active ongoing call
|
|
1835
1833
|
this.newIncomingCallsList.forEach((callInfo, i) => {
|
|
1836
1834
|
this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
|
|
1837
1835
|
this.newIncomingCallsList[i].participants.forEach(async (res) => {
|
|
@@ -1870,7 +1868,6 @@ class CallProgressComponent {
|
|
|
1870
1868
|
mute: this.currentCall?.mute || false,
|
|
1871
1869
|
conference: this.currentCall?.isConference
|
|
1872
1870
|
});
|
|
1873
|
-
// this.currentCallList[0].isHold = false;
|
|
1874
1871
|
}
|
|
1875
1872
|
else if (this.currentCall?.isHold && this.currentCall?.isConference) {
|
|
1876
1873
|
let conferenceCalllist = this.currentCallList.filter((item) => item.isConference);
|
|
@@ -2000,7 +1997,6 @@ class CallProgressComponent {
|
|
|
2000
1997
|
}
|
|
2001
1998
|
}
|
|
2002
1999
|
getStatus(res) {
|
|
2003
|
-
// const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing', '"connected"'];
|
|
2004
2000
|
if (res.direction == "incoming-call") {
|
|
2005
2001
|
return this.incomeingCallSocketService.isCurrentIncomingCallList.includes(res.id);
|
|
2006
2002
|
}
|
|
@@ -2013,26 +2009,6 @@ class CallProgressComponent {
|
|
|
2013
2009
|
}
|
|
2014
2010
|
}
|
|
2015
2011
|
}
|
|
2016
|
-
// private createAudioFromBase64(base64: string, mimeType = 'audio/mpeg'): HTMLAudioElement {
|
|
2017
|
-
// const byteCharacters = atob(base64);
|
|
2018
|
-
// const byteNumbers = new Array(byteCharacters.length);
|
|
2019
|
-
// for (let i = 0; i < byteCharacters.length; i++) {
|
|
2020
|
-
// byteNumbers[i] = byteCharacters.charCodeAt(i);
|
|
2021
|
-
// }
|
|
2022
|
-
// const byteArray = new Uint8Array(byteNumbers);
|
|
2023
|
-
// const blob = new Blob([byteArray], { type: mimeType });
|
|
2024
|
-
// const blobUrl = URL.createObjectURL(blob);
|
|
2025
|
-
// const audio = new Audio(blobUrl);
|
|
2026
|
-
// audio.loop = true; // ringing loop
|
|
2027
|
-
// audio.load();
|
|
2028
|
-
// return audio;
|
|
2029
|
-
// }
|
|
2030
|
-
ngAfterViewInit() {
|
|
2031
|
-
// this.isRecording = false;
|
|
2032
|
-
// setTimeout(() => {
|
|
2033
|
-
// this.isRecording = false;
|
|
2034
|
-
// }, 3000);
|
|
2035
|
-
}
|
|
2036
2012
|
GetContactsList() {
|
|
2037
2013
|
const token = localStorage.getItem('ext_token') || '';
|
|
2038
2014
|
this.extensionService.readContacts(token).subscribe((res) => {
|
|
@@ -2174,8 +2150,6 @@ class CallProgressComponent {
|
|
|
2174
2150
|
let conferenceId = isAllCallEnd ? 'all' : c.conferenceId || this.currentCall.conferenceId;
|
|
2175
2151
|
let res = await this.getRemoveParticipants(participantId, conferenceId);
|
|
2176
2152
|
if (res?.status == 201 && res?.message == 'participant already left') {
|
|
2177
|
-
// this.currentCallList = this.currentCallList.filter((item: any) => item.participantId !== c.participantId);
|
|
2178
|
-
// this.currentCall = this.currentCallList.length > 0 ? this.currentCallList[0] : null;
|
|
2179
2153
|
this.cdr.detectChanges();
|
|
2180
2154
|
}
|
|
2181
2155
|
await this.getAllParticipants(this.currentCall.conferenceSid);
|
|
@@ -3826,7 +3800,6 @@ class DialboxComponent {
|
|
|
3826
3800
|
if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
|
|
3827
3801
|
if (this.incomingCallnotification.data.data?.c2cBusiness != 'false') {
|
|
3828
3802
|
this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
|
|
3829
|
-
console.log('uesrInfo', resInfo);
|
|
3830
3803
|
callerInfo = resInfo?.c2cInformation || {};
|
|
3831
3804
|
this.incomingCallNotification(callerInfo);
|
|
3832
3805
|
});
|
|
@@ -3844,13 +3817,13 @@ class DialboxComponent {
|
|
|
3844
3817
|
if (incomingCallIndex > -1) {
|
|
3845
3818
|
this.incomingCallsList.splice(incomingCallIndex, 1);
|
|
3846
3819
|
this.incomeingCallSocketService.pause();
|
|
3820
|
+
this.cdk.detectChanges();
|
|
3847
3821
|
}
|
|
3848
3822
|
console.log('test', this.incomingCallsList);
|
|
3849
3823
|
this.isIncomingCallnotification = false;
|
|
3850
3824
|
if (!this.incomingCallsList?.length) {
|
|
3851
3825
|
this.isCallInProgress = false;
|
|
3852
3826
|
}
|
|
3853
|
-
this.cdk.detectChanges();
|
|
3854
3827
|
}
|
|
3855
3828
|
}
|
|
3856
3829
|
console.log('notificationCallList', this.notificationCallList);
|