@vgroup/dialbox 0.4.150 → 0.4.151
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.
|
@@ -724,14 +724,19 @@ class ExtensionService {
|
|
|
724
724
|
return this.http.get(environment.apiUrl + `/utilities/twilio/call/status/${callAuthId}`, httpOptions);
|
|
725
725
|
}
|
|
726
726
|
setIncomingCallStatus(payload) {
|
|
727
|
-
var _a, _b;
|
|
728
727
|
const headers = new HttpHeaders({
|
|
729
728
|
'Content-Type': 'application/json',
|
|
730
729
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
|
|
731
730
|
});
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
731
|
+
return this.ipAddressService.getIpAddressInfo().pipe(switchMap((ipAddressInfo) => {
|
|
732
|
+
const httpOptions = { headers: headers };
|
|
733
|
+
payload = Object.assign(Object.assign({}, payload), { ipAddress: ipAddressInfo === null || ipAddressInfo === void 0 ? void 0 : ipAddressInfo.ip, ipCountry: ipAddressInfo === null || ipAddressInfo === void 0 ? void 0 : ipAddressInfo.country });
|
|
734
|
+
return this.http.post(environment.apiUrl + `/utilities/twilio/incoming/conference/ip`, payload, httpOptions);
|
|
735
|
+
}), catchError((error) => {
|
|
736
|
+
// Properly catch errors
|
|
737
|
+
return throwError(error);
|
|
738
|
+
}));
|
|
739
|
+
// return this.http.post(environment.apiUrl + `/utilities/twilio/incoming/conference/ip`, payload, httpOptions);
|
|
735
740
|
}
|
|
736
741
|
//sms api
|
|
737
742
|
sendSms(c2c_latlong, c2c_request, dtModel) {
|