import{d as a,e as u}from"./chunk-7UEYEAFD.js";import{a as v}from"./chunk-65YPH4ME.js";import{i as n}from"./chunk-LN23P53Z.js";import{ca as c,ha as s,u as i}from"./chunk-2BMUMDG3.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};
