@vgroup/dialbox 0.2.56 → 0.2.58

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.
@@ -595,27 +595,15 @@ class ExtensionService {
595
595
  const httpOptions = { headers: new HttpHeaders(params) };
596
596
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/generate/conference/token', payload, httpOptions);
597
597
  }
598
- // getConferenceCallToken(payload: any) {
599
- // console.log(payload, 'payload');
600
- // const params = {
601
- // 'Content-Type': 'application/json',
602
- // 'Auth-Key': "Bearer " + localStorage.getItem('ext_token'),
603
- // 'c2c-request': window.location.hostname
604
- // }
605
- // const httpOptions = { headers: new HttpHeaders(params) };
606
- // return this.http.post<[]>(environment.apiUrl + '/utilities/ext/ur/generate/token', payload, httpOptions);
607
- // }
608
- addFirstParticipant(payload) {
609
- const params = {
610
- conferenceId: payload.conferenceId,
611
- participantNumber: payload.participantNumber
612
- };
613
- const httpOptions = { headers: new HttpHeaders(params) };
598
+ addParticipant(payload) {
599
+ const headers = new HttpHeaders({
600
+ 'Content-Type': 'application/json',
601
+ 'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
602
+ });
603
+ const httpOptions = { headers: headers };
604
+ console.log(payload, 'payload');
614
605
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
615
606
  }
616
- // addParticipant(payload: any) {
617
- // return this.http.post<[]>(environment.apiUrl + '/utilities/ext/ur/add/participant', payload);
618
- // }
619
607
  // getAllParticipants(id:any, payload: any) {
620
608
  // const params = {
621
609
  // "conferenceId": payload.conferenceId,
@@ -640,6 +628,11 @@ class ExtensionService {
640
628
  const httpOptions = { headers: new HttpHeaders(params) };
641
629
  return this.http.post(environment.apiUrl + '/update/hold/unhold', params, httpOptions);
642
630
  }
631
+ getCallStatusOfParticipants(participantId) {
632
+ const params = {};
633
+ const httpOptions = { headers: new HttpHeaders(params) };
634
+ return this.http.get(environment.apiUrl + `/utilities/ext/ur/call/status/participant/${participantId}`, httpOptions);
635
+ }
643
636
  fetchBlockedCountries() {
644
637
  return this.http.get(environment.apiUrl + '/global/master/ur/blacklisted/countrylist').pipe(map(response => {
645
638
  if (response.response === 'Success' && Array.isArray(response.countries)) {
@@ -2153,7 +2146,7 @@ class CallProgressComponent {
2153
2146
  }
2154
2147
  addParticipantToCall(payload) {
2155
2148
  return __awaiter(this, void 0, void 0, function* () {
2156
- return yield this.extensionService.addFirstParticipant(payload).toPromise();
2149
+ return yield this.extensionService.addParticipant(payload).toPromise();
2157
2150
  });
2158
2151
  }
2159
2152
  getCallAuthId(response) {