@vgroup/dialbox 0.4.37 → 0.4.38
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 +14 -1
- package/esm2020/lib/service/extension.service.mjs +9 -1
- package/fesm2015/vgroup-dialbox.mjs +21 -0
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +21 -0
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -0
- package/lib/service/extension.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -717,6 +717,14 @@ class ExtensionService {
|
|
|
717
717
|
const httpOptions = { headers: headers };
|
|
718
718
|
return this.http.get(environment.apiUrl + `/utilities/twilio/call/status/${callAuthId}`, httpOptions);
|
|
719
719
|
}
|
|
720
|
+
setIncomingCallStatus(payload) {
|
|
721
|
+
const headers = new HttpHeaders({
|
|
722
|
+
'Content-Type': 'application/json',
|
|
723
|
+
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
|
|
724
|
+
});
|
|
725
|
+
const httpOptions = { headers: headers };
|
|
726
|
+
return this.http.post(environment.apiUrl + `/utilities/twilio/incoming/conference/ip`, payload, httpOptions);
|
|
727
|
+
}
|
|
720
728
|
//sms api
|
|
721
729
|
sendSms(c2c_latlong, c2c_request, dtModel) {
|
|
722
730
|
return this.fetchBlockedCountries().pipe(switchMap(blockedCountries => {
|
|
@@ -2362,6 +2370,7 @@ class CallProgressComponent {
|
|
|
2362
2370
|
this.isCurrentIncomingCallList.push((data === null || data === void 0 ? void 0 : data.id) || (data === null || data === void 0 ? void 0 : data.participantId));
|
|
2363
2371
|
data.isAcceptCall = true;
|
|
2364
2372
|
this.currentCall = data;
|
|
2373
|
+
this.setIncomingCallStatus(data);
|
|
2365
2374
|
});
|
|
2366
2375
|
}
|
|
2367
2376
|
else {
|
|
@@ -2370,6 +2379,7 @@ class CallProgressComponent {
|
|
|
2370
2379
|
console.log(this.call, 'callConnect');
|
|
2371
2380
|
data.isAcceptCall = true;
|
|
2372
2381
|
this.currentCall = data;
|
|
2382
|
+
this.setIncomingCallStatus(data);
|
|
2373
2383
|
}
|
|
2374
2384
|
});
|
|
2375
2385
|
}
|
|
@@ -3046,6 +3056,17 @@ class CallProgressComponent {
|
|
|
3046
3056
|
this.isClickExpand = !this.isClickExpand;
|
|
3047
3057
|
this.selectedUserInfo = Object.assign({}, data);
|
|
3048
3058
|
}
|
|
3059
|
+
setIncomingCallStatus(data) {
|
|
3060
|
+
let payload = {
|
|
3061
|
+
recordID: data === null || data === void 0 ? void 0 : data.id,
|
|
3062
|
+
ipAddress: '',
|
|
3063
|
+
ipCountry: '',
|
|
3064
|
+
CallStatus: this.callStatus,
|
|
3065
|
+
};
|
|
3066
|
+
this.extensionService.setIncomingCallStatus(payload).subscribe((res) => {
|
|
3067
|
+
console.log(res);
|
|
3068
|
+
});
|
|
3069
|
+
}
|
|
3049
3070
|
toggleSearch() {
|
|
3050
3071
|
this.isSearchVisible = !this.isSearchVisible;
|
|
3051
3072
|
// if closing search — reset results
|