{"ast":null,"code":"import { HttpHeaders } from '@angular/common/http';\nimport { environment } from '.././environments/environment';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let SchedulingService = /*#__PURE__*/(() => {\n  class SchedulingService {\n    constructor(http) {\n      this.http = http;\n      this.baseLocal = `${environment.apiUrlBackEndLocal}/v1`; // http://localhost:8080/apiDB/v1\n    }\n    // Persistência no banco\n    createOrUpdate(dto) {\n      const headers = new HttpHeaders({\n        'Content-Type': 'application/json'\n      });\n      return this.http.post(`${this.baseLocal}/scheduling`, dto, {\n        headers\n      });\n    }\n    getForCustomer(id_customer) {\n      return this.http.get(`${this.baseLocal}/scheduling/${id_customer}`);\n    }\n    // Reset imediato (usa payload padrão se não informar)\n    resetGround(key, payload) {\n      const headers = new HttpHeaders({\n        'Content-Type': 'application/json'\n      });\n      const body = payload && payload.length ? payload : environment.defaultResetPayload;\n      return this.http.post(`${this.baseLocal}/resetgroud/${key}`, body, {\n        headers\n      });\n    }\n    static #_ = this.ɵfac = function SchedulingService_Factory(t) {\n      return new (t || SchedulingService)(i0.ɵɵinject(i1.HttpClient));\n    };\n    static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n      token: SchedulingService,\n      factory: SchedulingService.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return SchedulingService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}