{"version":3,"sources":["apps/web-portal/src/app/cache_database/database.service.ts"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { TemplateService } from '../core/template/template.service';\nimport { ReportService } from '../modules/report/services/report.service';\nimport { AuthService } from '../core/auth/auth.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DatabaseService {\n private _templateService = inject(TemplateService);\n private _reportService = inject(ReportService);\n private _authService = inject(AuthService);\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {}\n\n initDatabases(): void {\n if (this._authService.accessToken) {\n this._templateService.getAll().subscribe();\n this._reportService.getTags().subscribe();\n this._reportService.getSubscriptions().subscribe();\n }\n }\n}\n"],"names":["DatabaseService","constructor","_templateService","inject","TemplateService","_reportService","ReportService","_authService","AuthService","initDatabases","accessToken","getAll","subscribe","getTags","getSubscriptions","factory","ɵfac","providedIn"],"mappings":";;yKAQA,IAAaA,GAAe,IAAA,CAAtB,MAAOA,CAAe,CAQ1BC,aAAA,CAPQ,KAAAC,iBAAmBC,EAAOC,CAAe,EACzC,KAAAC,eAAiBF,EAAOG,CAAa,EACrC,KAAAC,aAAeJ,EAAOK,CAAW,CAK1B,CAEfC,eAAa,CACP,KAAKF,aAAaG,cACpB,KAAKR,iBAAiBS,OAAM,EAAGC,UAAS,EACxC,KAAKP,eAAeQ,QAAO,EAAGD,UAAS,EACvC,KAAKP,eAAeS,iBAAgB,EAAGF,UAAS,EAEpD,iDAhBWZ,EAAe,CAAA,iCAAfA,EAAee,QAAff,EAAegB,UAAAC,WAFd,MAAM,CAAA,CAAA,SAEPjB,CAAe,GAAA","debug_id":"49b969f1-acdb-5059-961e-def47f65f724"}