import{s as a,t}from"./index-CWZVsN2l.js";const i=a.injectEndpoints({endpoints:s=>({saveUserRoleDetails:s.mutation({query:({userRole:e})=>({url:"user/add",method:"POST",body:e})}),signInUser:s.mutation({query:({Login:e})=>({url:"user/login",method:"POST",body:e})}),getUserRoleDetails:s.query({query:()=>{const{userId:e}=t();return"user/privilege"}}),getUserDetails:s.query({query:()=>{const{userId:e}=t();return"user/profile"}}),getUserRoleMenuPin:s.query({query:()=>"menu-pin"}),saveUserRoleMenuPin:s.mutation({query:({menuPinList:e,methodType:r,addOrUpdate:u})=>({url:`menu-pin/${u}`,method:r,body:e})})})}),{useSaveUserRoleDetailsMutation:o,useSignInUserMutation:l,useGetUserRoleDetailsQuery:U,useLazyGetUserRoleDetailsQuery:p,useGetUserDetailsQuery:y,useSaveUserRoleMenuPinMutation:g}=i;export{U as a,y as b,g as c,i as r,l as u};
