@vgroup/dialbox 0.2.58 → 0.2.59

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.
@@ -632,6 +632,11 @@ class ExtensionService {
632
632
  const httpOptions = { headers: new HttpHeaders(params) };
633
633
  return this.http.get(environment.apiUrl + `/utilities/ext/ur/call/status/participant/${participantId}`, httpOptions);
634
634
  }
635
+ muteParticipant() {
636
+ const params = {};
637
+ const httpOptions = { headers: new HttpHeaders(params) };
638
+ return this.http.get(environment.apiUrl + '/utilities/ext/ur/mute/participant', httpOptions);
639
+ }
635
640
  fetchBlockedCountries() {
636
641
  return this.http.get(environment.apiUrl + '/global/master/ur/blacklisted/countrylist').pipe(map(response => {
637
642
  if (response.response === 'Success' && Array.isArray(response.countries)) {
@@ -2110,15 +2115,15 @@ class CallProgressComponent {
2110
2115
  this.getUserInformation(callAuthId);
2111
2116
  this.recordCall = recordCall; // Store the recordCall value
2112
2117
  const tokenData = await this.getOutgoingCallToken(callAuthId);
2118
+ await this.connectToDevice(tokenData.token, callData);
2119
+ this.pollCallStatus(callAuthId);
2113
2120
  await this.addParticipantToCall({
2114
2121
  from: callData?.from,
2115
2122
  route: "OUTGOING",
2116
2123
  participantNumber: callData?.phone,
2117
2124
  conferenceId: response?.callauth?.id
2118
2125
  });
2119
- await this.connectToDevice(tokenData.token, callData);
2120
2126
  // Poll the status for 30-45 seconds
2121
- this.pollCallStatus(callAuthId);
2122
2127
  }
2123
2128
  else if (response.status == 201) {
2124
2129
  swal("Error", response.message.join("<br/>"), "error");
@@ -2139,6 +2144,9 @@ class CallProgressComponent {
2139
2144
  async addParticipantToCall(payload) {
2140
2145
  return await this.extensionService.addParticipant(payload).toPromise();
2141
2146
  }
2147
+ async getCallStatusOfParticipants(participantId) {
2148
+ return await this.extensionService.getCallStatusOfParticipants(participantId).toPromise();
2149
+ }
2142
2150
  async getCallAuthId(response) {
2143
2151
  return {
2144
2152
  id: response.callauth.id,