DigitalData.UserManager/DigitalData.UserManager.NgWebUI/ClientApp/.angular/cache/17.3.0/babel-webpack/05a46522d71d39bc5e5c4c0db7d4d5a4acec8c53da882a44b3d550fdea3351b1.json

1 line
1.6 KiB
JSON

{"ast":null,"code":"import { ApiService } from \"./user-management.api.service\";\nimport { HttpParams } from \"@angular/common/http\";\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let UserRepService = /*#__PURE__*/(() => {\n class UserRepService extends ApiService {\n constructor(http, userRepUri) {\n super(http, userRepUri);\n this.userRepUri = userRepUri;\n }\n getAll(withUser = false, withRepGroup = false, withRightGroup = false, withRepUser = false, userId) {\n let params = new HttpParams();\n if (withUser) {\n params = params.set('withUser', withUser);\n }\n if (withRepGroup) {\n params = params.set('withRepGroup', withRepGroup);\n }\n if (withRightGroup) {\n params = params.set('withRightGroup', withRightGroup);\n }\n if (withRepUser) {\n params = params.set('withRepUser', withRepUser);\n }\n if (userId) {\n params = params.set('userId', userId);\n }\n return this.http.get(`${this.baseUrl}`, {\n params: params,\n withCredentials: true\n });\n }\n static #_ = this.ɵfac = function UserRepService_Factory(t) {\n return new (t || UserRepService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('USER_REP_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: UserRepService,\n factory: UserRepService.ɵfac,\n providedIn: \"root\"\n });\n }\n return UserRepService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}