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