import{c as a,g as u}from"./chunk-V2DPLVZ2.js";import{a as v}from"./chunk-LMJERMSP.js";import{D as n}from"./chunk-OGMMZFJL.js";import{fa as c,ka as s,u as i}from"./chunk-QVZULMP5.js";var y=(()=>{class o{constructor(t,r,e,l,h){this.http=t,this.sharedService=r,this.apiUrlsService=e,this.configService=l,this.headers=h,this.encryptedPassword=""}getStatics(t){switch(t){case"Sharepoint":case"ODB":case"Exchange":return this.overviewForOffice(t).pipe(i(r=>{let e=r.body;return e&&e.cloudOverviewElement?e.cloudOverviewElement:null}));case"Gmail":case"Google Drive":return this.overviewForGSuite(t).pipe(i(r=>{let e=r.body;return e&&e.cloudOverviewElement?e.cloudOverviewElement:null}));case"sync":case"BluSync":return this.overviewSync().pipe(i(r=>{let e=r.body;return e&&e.cloudBasicElement?e.cloudBasicElement:null}));case"backup":return this.overviewBackup().pipe(i(r=>{let e=r.body;return e&&e.cloudOverviewElement?e.cloudOverviewElement:null}));default:return this.overviewBackup().pipe(i(r=>{let e=r.body;return e&&e.cloudOverviewElement?e.cloudOverviewElement:null}))}}overviewBackup(){return this.http.get(`${this.apiUrlsService.getApiUrls().overviewBackup}`,{headers:this.headers,observe:"response"})}overviewSync(){let t=this.headers.set("cloudParams","home,users,devices,myclouds,syncUsers,backupUsers,size");return this.http.get(`${this.apiUrlsService.getApiUrls().overviewSync}`,{headers:t,observe:"response"})}overviewForOffice(t){let r=this.headers.set("productType",t);return this.http.get(`${this.apiUrlsService.getApiUrls().overviewForOffice}`,{headers:r,observe:"response"})}overviewForGSuite(t){let r=this.headers.set("productType",t);return this.http.get(`${this.apiUrlsService.getApiUrls().overviewForGSuite}`,{headers:r,observe:"response"})}static{this.\u0275fac=function(r){return new(r||o)(s(n),s(a),s(u),s(v),s("httpHeaders"))}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{y as a};
