@vgroup/dialbox 0.1.49 → 0.1.50

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.
@@ -1166,13 +1166,10 @@ class ExtensionService {
1166
1166
  'ipCountry': ipAddressInfo.address.country,
1167
1167
  'recordId': recordId,
1168
1168
  'callStatus': callStatus,
1169
+ 'deviceId': deviceId
1169
1170
  };
1170
- const headers = new HttpHeaders({
1171
- 'Content-Type': 'application/json',
1172
- 'Authorization': `Bearer ${localStorage.getItem('ext_token') || ''}`
1173
- });
1174
- const params = new HttpParams().set('deviceId', deviceId);
1175
- return this.http.post(environment.apiUrl + '/utilities/twilio/incoming/call/ip', IpObj, { headers, params }).pipe(catchError(postError => {
1171
+ const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json', 'Auth-Key': "Bearer " + localStorage.getItem('ext_token') }) };
1172
+ return this.http.post(environment.apiUrl + '/utilities/twilio/incoming/call/ip', IpObj, httpOptions).pipe(catchError(postError => {
1176
1173
  // console.log('Error during HTTP POST request:', postError);
1177
1174
  return throwError(postError);
1178
1175
  }));