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