ee04a9503423ab2c85aa4acae6d278102bfc469f7cb143a4ed0c1e96c4be9571.json 1.4 KB

1
  1. {"ast":null,"code":"import { environment } from 'src/environments/environment';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let ContactService = /*#__PURE__*/(() => {\n class ContactService {\n constructor(http) {\n this.http = http;\n //url api\n this.apiUrl = environment.apiUrl;\n }\n // send message contact\n sendMsgContact(credentials) {\n return this.http.post(`${this.apiUrl}/api/contact`, credentials);\n }\n // get contact open\n getOpenMessage() {\n return this.http.get(`${this.apiUrl}/api/contact/open`);\n }\n // get contact close\n getColseMessage() {\n return this.http.get(`${this.apiUrl}/api/contact/closed`);\n }\n // close contact\n closeContact(body) {\n return this.http.patch(`${this.apiUrl}/api/contact`, body);\n }\n // response contact\n responseContact(id, body) {\n return this.http.post(`${this.apiUrl}/api/contact/response?id=${id}`, body);\n }\n static #_ = this.ɵfac = function ContactService_Factory(t) {\n return new (t || ContactService)(i0.ɵɵinject(i1.HttpClient));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: ContactService,\n factory: ContactService.ɵfac,\n providedIn: 'root'\n });\n }\n return ContactService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}