import{c as a,d as v,e as u}from"./chunk-7GWZLTP7.js";import{f as n}from"./chunk-SU3V5RM4.js";import{ca as c,ha as s,u as i}from"./chunk-SZVMDCYU.js";var y=(()=>{class o{constructor(t,r,e,h,l){this.http=t,this.sharedService=r,this.apiUrlsService=e,this.configService=h,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":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};
/**i18n:557364621938d8343d66734722390263df08d9a6046a2573ce83f95c485272f3*/
