import{K as o}from"./index-CYy8zBsj.js";const r=o.injectEndpoints({endpoints:s=>({saveSalesPersonDetails:s.mutation({query:({salesPerson:e})=>({url:"sales-person",method:"POST",body:e})}),updateSalesPersonDetails:s.mutation({query:({salesPerson:e})=>({url:"sales-person",method:"PUT",body:e})}),getSalesPersonDetails:s.query({query:()=>"sales-person"}),getSalesPersonDetailsByPage:s.mutation({query:({page:e,size:a,searchByName:t})=>({url:`sales-person/search-by-criteria?page=${e}&size=${a}`,method:"POST",body:t})}),getSalesPersonDetailsBySearch:s.mutation({query:({searchByName:e})=>({url:"sales-person/search-by-criteria?page=0&size=25",method:"POST",body:e})}),getSalesPersonDetailsBySearchNew:s.mutation({query:({pagnation:e})=>({url:"sales-person/search-by-criteria?page=0&size=25",method:"POST",body:e})}),getSalesPersonById:s.query({query:({id:e})=>({url:`sales-person/${e}`,method:"GET"})}),deleteSalesPerson:s.mutation({query:({id:e})=>({url:`sales-person/${e}`,method:"DELETE"})}),checkDuplicateSalesPerson:s.mutation({query:({salesPerson:e})=>({url:"sales-person/duplicate",method:"POST",body:e})})}),overrideExisting:!1}),{useSaveSalesPersonDetailsMutation:l,useCheckDuplicateSalesPersonMutation:u,useUpdateSalesPersonDetailsMutation:i,useGetSalesPersonDetailsQuery:y,useLazyGetSalesPersonDetailsQuery:S,useGetSalesPersonDetailsByPageMutation:P,useGetSalesPersonDetailsBySearchMutation:p,useGetSalesPersonDetailsBySearchNewMutation:c,useGetSalesPersonByIdQuery:d,useLazyGetSalesPersonByIdQuery:h,useDeleteSalesPersonMutation:m}=r;export{l as a,P as b,i as c,c as d,u};
