import{q as o}from"./index-B1H8BCL7.js";const s=o.injectEndpoints({endpoints:i=>({getEffectivePolicies:i.query({query:()=>"api/policies/effective"}),getAllPolicies:i.query({query:e=>e?`api/policies?module=${e}`:"api/policies"}),updatePolicy:i.mutation({query:({policyCode:e,value:t})=>({url:`api/policies/${e}`,method:"PUT",body:{value:t}})}),resetPolicy:i.mutation({query:e=>({url:`api/policies/${e}/reset`,method:"POST"})}),validateDeletePassword:i.mutation({query:e=>({url:"api/policies/validate-delete-password",method:"POST",body:{password:e}})})})}),{useGetEffectivePoliciesQuery:l,useLazyGetEffectivePoliciesQuery:c,useGetAllPoliciesQuery:u,useUpdatePolicyMutation:p,useResetPolicyMutation:y,useValidateDeletePasswordMutation:r}=s;export{p as a,y as b,l as c,r as d,u};
