@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
|
@@ -595,27 +595,14 @@ 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: any){
|
|
609
|
-
// const params = {
|
|
610
|
-
// conferenceId: payload.conferenceId,
|
|
611
|
-
// participantNumber: payload.participantNumber
|
|
612
|
-
// }
|
|
613
|
-
// const httpOptions = { headers: new HttpHeaders(params) };
|
|
614
|
-
// return this.http.post<[]>(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
615
|
-
// }
|
|
616
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 };
|
|
617
604
|
console.log(payload, 'payload');
|
|
618
|
-
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload);
|
|
605
|
+
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
619
606
|
}
|
|
620
607
|
// getAllParticipants(id:any, payload: any) {
|
|
621
608
|
// const params = {
|
|
@@ -641,6 +628,11 @@ class ExtensionService {
|
|
|
641
628
|
const httpOptions = { headers: new HttpHeaders(params) };
|
|
642
629
|
return this.http.post(environment.apiUrl + '/update/hold/unhold', params, httpOptions);
|
|
643
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
|
+
}
|
|
644
636
|
fetchBlockedCountries() {
|
|
645
637
|
return this.http.get(environment.apiUrl + '/global/master/ur/blacklisted/countrylist').pipe(map(response => {
|
|
646
638
|
if (response.response === 'Success' && Array.isArray(response.countries)) {
|