@vgroup/dialbox 0.2.68 → 0.2.70

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.
@@ -612,21 +612,14 @@ class ExtensionService {
612
612
  const httpOptions = { headers: headers };
613
613
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/hold/participant', payload, httpOptions);
614
614
  }
615
- // getAllParticipants(id:any, payload: any) {
616
- // const params = {
617
- // "conferenceId": payload.conferenceId,
618
- // "participants": [
619
- // {
620
- // "participantId": payload.participantId,
621
- // "number": payload.participantNumber,
622
- // "status": payload.status,
623
- // "isOnHold": payload.isOnHold
624
- // }
625
- // ]
626
- // }
627
- // const httpOptions = { headers: new HttpHeaders(params) };
628
- // return this.http.get<[]>(environment.apiUrl + `/get/participants/${id}`, payload, httpOptions);
629
- // }
615
+ getAllParticipants(conferenceId) {
616
+ const headers = new HttpHeaders({
617
+ 'Content-Type': 'application/json',
618
+ 'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
619
+ });
620
+ const httpOptions = { headers: headers };
621
+ return this.http.get(environment.apiUrl + `/utilities/ext/ur/all/participent/${conferenceId}`, httpOptions);
622
+ }
630
623
  updateHoldUnhold(payload) {
631
624
  const params = {
632
625
  "conferenceId": payload.conferenceId,
@@ -2377,7 +2370,7 @@ class CallProgressComponent {
2377
2370
  }
2378
2371
  addRemoveParticipant() {
2379
2372
  this.isAddRemoveParticipant = !this.isAddRemoveParticipant;
2380
- this.GetContactsList();
2373
+ this.getAllParticipants();
2381
2374
  }
2382
2375
  callContact(contact) {
2383
2376
  var _a, _b, _c, _d;
@@ -2439,6 +2432,11 @@ class CallProgressComponent {
2439
2432
  }
2440
2433
  });
2441
2434
  }
2435
+ getAllParticipants() {
2436
+ this.extensionService.getAllParticipants(this.conferenceId).subscribe((res) => {
2437
+ console.log(res);
2438
+ });
2439
+ }
2442
2440
  // acceptConcurrentCall(incomingCall: any) {
2443
2441
  // if (!incomingCall) return;
2444
2442
  // // Put current call on hold instead of disconnecting