| 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":[]}
|