@vgroup/dialbox 0.1.48 → 0.1.49

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