import{f as v,g as u}from"./chunk-R7INA2TP.js";import{a}from"./chunk-UQLLME4S.js";import{D as n}from"./chunk-N445P7BV.js";import{ea as c,ja as s,u as i}from"./chunk-DZ62WUBN.js";var y=(()=>{class o{constructor(t,r,e,p,l){this.http=t,this.sharedService=r,this.apiUrlsService=e,this.configService=p,this.headers=l,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}));case"Server":return this.overviewServerBackup().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"})}overviewServerBackup(){let t=this.headers.set("productType","Server");return this.http.get(`${this.apiUrlsService.getApiUrls().overviewServerBackup}`,{headers:t,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(v),s(u),s(a),s("httpHeaders"))}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{y as a};
