import{askDocQuestion as e,auditContentDeclaration as t,auditContentDeclarationField as n,auditContentDeclarationMetadata as r,auditTag as i,autocomplete as a,customQuery as o,getDiscussions as s,translateJSON as c}from"../controllers/ai.controller.mjs";import{unauthenticatedChatBotLimiter as l}from"../utils/rateLimiter.mjs";import u from"@fastify/rate-limit";const d=`/api/ai`,f=()=>`${process.env.BACKEND_URL}${d}`,p=()=>({customQuery:{urlModel:`/`,url:`${f()}/`,method:`POST`},translateJSON:{urlModel:`/translate/json`,url:`${f()}/translate/json`,method:`POST`},auditContentDeclaration:{urlModel:`/audit/dictionary`,url:`${f()}/audit/dictionary`,method:`POST`},auditContentDeclarationField:{urlModel:`/audit/dictionary/field`,url:`${f()}/audit/dictionary/field`,method:`POST`},auditContentDeclarationMetadata:{urlModel:`/audit/dictionary/metadata`,url:`${f()}/audit/dictionary/metadata`,method:`POST`},auditTag:{urlModel:`/audit/tag`,url:`${f()}/audit/tag`,method:`POST`},ask:{urlModel:`/ask`,url:`${f()}/ask`,method:`POST`},autocomplete:{urlModel:`/autocomplete`,url:`${f()}/autocomplete`,method:`POST`},getDiscussions:{urlModel:`/discussions`,url:`${f()}/discussions`,method:`GET`}}),m=async d=>{d.post(p().customQuery.urlModel,o),d.post(p().translateJSON.urlModel,c),d.post(p().auditContentDeclaration.urlModel,t),d.post(p().auditContentDeclarationField.urlModel,n),d.post(p().auditContentDeclarationMetadata.urlModel,r),d.post(p().auditTag.urlModel,i),d.post(p().autocomplete.urlModel,a),d.get(p().getDiscussions.urlModel,s),await d.register(u,{...l,routeId:`ai-ask-rate-limit`}),d.post(p().ask.urlModel,e)};export{d as aiRoute,m as aiRouter,p as getAiRoutes};
//# sourceMappingURL=ai.routes.mjs.map