import{a as u}from"./chunk-MBEC6LK4.js";import{Fc as o,Gc as i,H as a,Hc as c,L as A}from"./chunk-TVKQFRWX.js";var h=class n{constructor(e){this.http=e}API_URL=u.apiUrl;getAllService(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/services`,{params:p})}getAllServicepublic(){return this.http.get(`${this.API_URL}/services`)}getServicesById(e){return this.http.get(`${this.API_URL}/services/${e}`)}createServices(e){return this.http.post(`${this.API_URL}/services`,e)}updateServices(e,t){return this.http.put(`${this.API_URL}/services/${e}`,t)}deleteServices(e){return this.http.delete(`${this.API_URL}/services/${e}`)}getAllAgendas(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/agendas`,{params:p})}getAgendasById(e){return this.http.get(`${this.API_URL}/agendas/${e}`)}createAgendas(e){return this.http.post(`${this.API_URL}/agendas`,e)}updateAgendas(e,t){return this.http.put(`${this.API_URL}/agendas/${e}`,t)}deleteAgendas(e){return this.http.delete(`${this.API_URL}/agendas/${e}`)}getPublishedAgendasLatest(){return this.http.get(`${this.API_URL}/agendas/published/latest`)}getPublishedAgendaeById(e){return this.http.get(`${this.API_URL}/agendas/published/${e}`)}getPublishedAgendas(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/agendas/published`,{params:s})}getPublishedArticles(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/public/articles`,{params:s})}getArticlesByCategory(e,t=0,s=10){let r=new i().set("page",t).set("size",s);return this.http.get(`${this.API_URL}/public/articles/category/${e}`,{params:r})}getAllCommuniques(){return this.http.get(`${this.API_URL}/public/articles`,{params:new i().set("category","COMMUNIQUE").set("all","true")})}getLatestArticles(){return this.http.get(`${this.API_URL}/public/articles/latest`)}getFeaturedArticles(){return this.http.get(`${this.API_URL}/public/articles/featured`)}getPublishedArticleById(e){return this.http.get(`${this.API_URL}/public/articles/${e}`)}searchArticles(e,t=0,s=10){let r=new i().set("query",e).set("page",t).set("size",s);return this.http.get(`${this.API_URL}/public/articles/search`,{params:r})}getAllArticles(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/articles`,{params:p})}getAllArticles1(){let e=`${this.API_URL}/articles`;return this.http.get(e)}getArticleById(e){return this.http.get(`${this.API_URL}/articles/${e}`)}createArticle1(e){return this.http.post(`${this.API_URL}/articles`,e)}createArticle(e){return this.http.post(`${this.API_URL}/articles`,e)}updateArticle(e,t){return this.http.put(`${this.API_URL}/articles/${e}`,t)}updateArticle1(e,t){return this.http.put(`${this.API_URL}/articles/${e}`,t)}deleteArticle(e){return this.http.delete(`${this.API_URL}/articles/${e}`)}retryArticleFacebookPublication(e){return this.http.post(`${this.API_URL}/articles/${e}/facebook/retry`,{})}getPublicProjects(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/public/projects`,{params:s})}getLatestProjects(){return this.http.get(`${this.API_URL}/public/projects/latest`)}getPublicProjectById(e){return this.http.get(`${this.API_URL}/public/projects/${e}`)}searchProjects(e,t=0,s=10){let r=new i().set("query",e).set("page",t).set("size",s);return this.http.get(`${this.API_URL}/public/projects/search`,{params:r})}getAllProjects(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/projects`,{params:p})}getProjectById(e){return this.http.get(`${this.API_URL}/projects/${e}`)}createProject(e){return this.http.post(`${this.API_URL}/projects`,e)}updateProject(e,t){return this.http.put(`${this.API_URL}/projects/${e}`,t)}deleteProject(e){return this.http.delete(`${this.API_URL}/projects/${e}`)}getAllTypes1(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/types`,{params:p})}getAllTypes(){return this.http.get(`${this.API_URL}/types`)}getypesById(e){return this.http.get(`${this.API_URL}/types/${e}`)}createTypes(e){return this.http.post(`${this.API_URL}/types`,e)}updateTypes(e,t){return this.http.put(`${this.API_URL}/types/${e}`,t)}deleteTypes(e){return this.http.delete(`${this.API_URL}/types/${e}`)}getPublicDocuments(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/public/documents`,{params:s})}searchDocuments(e,t=0,s=10){let r=new i().set("query",e).set("page",t).set("size",s);return this.http.get(`${this.API_URL}/public/documents/search`,{params:r})}downloadDocument(e){return this.http.post(`${this.API_URL}/documents/public/${e}/download/`,{},{responseType:"blob"})}getAllTypeProjets(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/projetcategories`,{params:p})}getTypes(){return this.http.get(`${this.API_URL}/projetcategories`)}getAllTypesProjets(){return this.http.get(`${this.API_URL}/projetcategories`)}getypesByIdProjets(e){return this.http.get(`${this.API_URL}/projetcategories/${e}`)}createTypesProjets(e){return this.http.post(`${this.API_URL}/projetcategories`,e)}updateTypesProjets(e,t){return this.http.put(`${this.API_URL}/projetcategories/${e}`,t)}deleteTypesProjets(e){return this.http.delete(`${this.API_URL}/projetcategories/${e}`)}getAllDocuments(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/documents`,{params:p})}getDocumentById(e){return this.http.get(`${this.API_URL}/documents/${e}`)}createDocument1(e){return this.http.post(`${this.API_URL}/documents`,e)}updateDocument1(e,t){return this.http.put(`${this.API_URL}/documents/${e}`,t)}createDocument(e){return this.http.post(`${this.API_URL}/documents`,e)}updateDocument(e,t){return this.http.put(`${this.API_URL}/documents/${e}`,t)}deleteDocument(e){return this.http.delete(`${this.API_URL}/documents/${e}`)}submitContact(e){return this.http.post(`${this.API_URL}/public/contacts`,e)}getAllContacts(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/contacts`,{params:p})}getContactById(e){return this.http.get(`${this.API_URL}/contacts/${e}`)}updateContactStatus(e,t){return this.http.put(`${this.API_URL}/contacts/${e}/status`,{status:t})}respondToContact(e,t){return this.http.post(`${this.API_URL}/contacts/${e}/respond`,{response:t})}deleteContact(e){return this.http.delete(`${this.API_URL}/contacts/${e}`)}getAllUsers(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/users`,{params:p})}getCurrentUser(){return this.http.get(`${this.API_URL}/users/me`)}getUserById(e){return this.http.get(`${this.API_URL}/users/${e}`)}createUser(e){return this.http.post(`${this.API_URL}/users`,e)}updateUser(e,t){return this.http.put(`${this.API_URL}/users/${e}`,t)}changePassword(e,t,s){return this.http.put(`${this.API_URL}/users/${e}/password`,{oldPassword:t,newPassword:s})}resetUserPassword(e){return this.http.post(`${this.API_URL}/users/${e}/reset-password`,{})}toggleUserStatus(e){return this.http.put(`${this.API_URL}/users/${e}/toggle-status`,{})}deleteUser(e){return this.http.delete(`${this.API_URL}/users/${e}`)}getDashboardStats(){return this.http.get(`${this.API_URL}/dashboard/stats`)}getArticles(e=0,t=10){return this.getAllArticles(e,t)}getContacts(e=0,t=10){return this.getAllContacts(e,t)}getAllMins(e=0,t=10,s="createdAt",r="desc"){let p=new i().set("page",e).set("size",t).set("sortBy",s).set("sortDir",r);return this.http.get(`${this.API_URL}/ministeres`,{params:p})}getminById(e){return this.http.get(`${this.API_URL}/ministeres/${e}`)}createmin(e){return this.http.post(`${this.API_URL}/ministeres`,e)}updatemin(e,t){return this.http.put(`${this.API_URL}/ministeres/${e}`,t)}deleteMin(e){return this.http.delete(`${this.API_URL}/ministeres/${e}`)}getPublicEvents(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/events/public`,{params:s})}getUpcomingEvents(){return this.http.get(`${this.API_URL}/events/public/upcoming`)}getEventById(e){return this.http.get(`${this.API_URL}/events/public/${e}`)}getAllEvents1(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/events`,{params:s})}getAllEvents(e=0,t=10){let s=localStorage.getItem("token");console.log("TOKEN =",s);let r=new i().set("page",e).set("size",t),p=new o({Authorization:`Bearer ${s}`});return this.http.get(`${this.API_URL}/events`,{params:r,headers:p})}getAllEvents2(e=0,t=10){let s=localStorage.getItem("token"),r=new i().set("page",e).set("size",t),p=new o({Authorization:`Bearer ${s}`});return this.http.get(`${this.API_URL}/events`,{params:r,headers:p})}createEven1t(e){return this.http.post(`${this.API_URL}/events`,e)}createEvent(e){return this.http.post(`${this.API_URL}/events`,e)}updateEvent(e,t){return this.http.put(`${this.API_URL}/events/${e}`,t)}updateEvent1(e,t){return this.http.put(`${this.API_URL}/events/${e}`,t)}deleteEvent(e){return this.http.delete(`${this.API_URL}/events/${e}`)}getActiveFlashInfos(){return this.http.get(`${this.API_URL}/flash-infos/public/active`)}getAllFlashInfos(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/flash-infos`,{params:s})}createFlashInfo(e){return this.http.post(`${this.API_URL}/flash-infos`,e)}updateFlashInfo(e,t){return this.http.put(`${this.API_URL}/flash-infos/${e}`,t)}deleteFlashInfo(e){return this.http.delete(`${this.API_URL}/flash-infos/${e}`)}getPublicServices(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/services/public`,{params:s})}getServicesByCategory(e){return this.http.get(`${this.API_URL}/services/public/category/${e}`)}getServiceById(e){return this.http.get(`${this.API_URL}/services/public/${e}`)}getAllServices(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/services`,{params:s})}createService(e){return this.http.post(`${this.API_URL}/services`,e)}updateService(e,t){return this.http.put(`${this.API_URL}/services/${e}`,t)}deleteService(e){return this.http.delete(`${this.API_URL}/services/${e}`)}getPublicFAQs(){return this.http.get(`${this.API_URL}/faqs/public`)}getFAQsByCategory(e){return this.http.get(`${this.API_URL}/faqs/public/category/${e}`)}searchFAQs(e){let t=new i().set("query",e);return this.http.get(`${this.API_URL}/faqs/public/search`,{params:t})}getAllFAQs(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/faqs`,{params:s})}createFAQ(e){return this.http.post(`${this.API_URL}/faqs`,e)}updateFAQ(e,t){return this.http.put(`${this.API_URL}/faqs/${e}`,t)}deleteFAQ(e){return this.http.delete(`${this.API_URL}/faqs/${e}`)}subscribeNewsletter(e){return this.http.post(`${this.API_URL}/newsletter/public/subscribe`,e)}unsubscribeNewsletter(e){return this.http.post(`${this.API_URL}/newsletter/public/unsubscribe`,{token:e})}getAllSubscriptions(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/newsletter`,{params:s})}getPublicStructures(){return this.http.get(`${this.API_URL}/structures/public`)}getStructuresByType(e){return this.http.get(`${this.API_URL}/structures/public/type/${e}`)}getAllStructures(e=0,t=10){let s=new i().set("page",e).set("size",t);return this.http.get(`${this.API_URL}/structures`,{params:s})}createStructure(e){return this.http.post(`${this.API_URL}/structures`,e)}updateStructure(e,t){return this.http.put(`${this.API_URL}/structures/${e}`,t)}deleteStructure(e){return this.http.delete(`${this.API_URL}/structures/${e}`)}static \u0275fac=function(t){return new(t||n)(A(c))};static \u0275prov=a({token:n,factory:n.\u0275fac,providedIn:"root"})};export{h as a};