@vgroup/dialbox 0.2.57 → 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.
- package/esm2020/lib/service/extension.service.mjs +12 -20
- package/fesm2015/vgroup-dialbox.mjs +11 -19
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +11 -19
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/service/extension.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -594,27 +594,14 @@ 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: any){
|
|
608
|
-
// const params = {
|
|
609
|
-
// conferenceId: payload.conferenceId,
|
|
610
|
-
// participantNumber: payload.participantNumber
|
|
611
|
-
// }
|
|
612
|
-
// const httpOptions = { headers: new HttpHeaders(params) };
|
|
613
|
-
// return this.http.post<[]>(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
614
|
-
// }
|
|
615
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 };
|
|
616
603
|
console.log(payload, 'payload');
|
|
617
|
-
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload);
|
|
604
|
+
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
618
605
|
}
|
|
619
606
|
// getAllParticipants(id:any, payload: any) {
|
|
620
607
|
// const params = {
|
|
@@ -640,6 +627,11 @@ class ExtensionService {
|
|
|
640
627
|
const httpOptions = { headers: new HttpHeaders(params) };
|
|
641
628
|
return this.http.post(environment.apiUrl + '/update/hold/unhold', params, httpOptions);
|
|
642
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
|
+
}
|
|
643
635
|
fetchBlockedCountries() {
|
|
644
636
|
return this.http.get(environment.apiUrl + '/global/master/ur/blacklisted/countrylist').pipe(map(response => {
|
|
645
637
|
if (response.response === 'Success' && Array.isArray(response.countries)) {
|