import{c as a,d as v,e as u}from"./chunk-4XY6XJYY.js";import{f as n}from"./chunk-2ZHEK5W4.js";import{ca as c,ha as s,u as i}from"./chunk-W5V4LLSY.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:0c85d88e1c63ff70ec487b533ab43e97f8cd56e4c41bc493c1dbcaa27295944a*/
