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