{"ast":null,"code":"import { environment } from 'src/environments/environment';\nimport { HttpHeaders } from '@angular/common/http';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let StatisticService = /*#__PURE__*/(() => {\n class StatisticService {\n constructor(http) {\n this.http = http;\n this.apiUrl = environment.apiUrl;\n // header de requete http\n this.headers = new HttpHeaders(\n // { 'Access-Control-Allow-Origin':'*',\n // // 'Access-Control-Allow-Headers': 'X-Requested-With, Content-Type',\n // // {'Content-Type': 'application/json',}\n // // 'Access-Control-Allow-Methods': 'POST, GET',\n // }\n );\n }\n // get statistic\n getStatistic() {\n // return this.http.get('assets/data/stat.json');\n const options = {\n headers: this.headers\n };\n let data = this.http.get('http://localhost:4000/api/tickets/stats', options);\n console.log(JSON.stringify(data));\n return data;\n }\n static #_ = this.ɵfac = function StatisticService_Factory(t) {\n return new (t || StatisticService)(i0.ɵɵinject(i1.HttpClient));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: StatisticService,\n factory: StatisticService.ɵfac,\n providedIn: 'root'\n });\n }\n return StatisticService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}