import{_ as u}from"./index-BiWH3VAt.js";const s=u.injectEndpoints({endpoints:l=>({saveFollowUpDetails:l.mutation({query:o=>({url:"follow-up",method:"POST",body:o}),invalidatesTags:["FollowUp"]}),updateFollowUpDetails:l.mutation({query:o=>({url:"follow-up",method:"PUT",body:o}),invalidatesTags:["FollowUp"]}),getFollowUpsByLeadId:l.query({query:o=>`follow-up/by-lead/${o}`}),getFollowUpsByPage:l.mutation({query:({searchByName:o,page:e,size:t,includeCounts:a})=>({url:`follow-up/search-by-criteria?page=${e}&size=${t}${a===!1?"&includeCounts=false":""}`,method:"POST",body:o})}),deleteFollowUp:l.mutation({query:o=>({url:`follow-up/${o}`,method:"DELETE"}),invalidatesTags:["FollowUp"]}),getFollowUpById:l.query({query:o=>`follow-up/${o}`,providesTags:["FollowUp"]}),completeFollowUp:l.mutation({query:({id:o,body:e})=>({url:`follow-up/${o}/complete`,method:"POST",body:e}),invalidatesTags:["FollowUp"]}),rescheduleFollowUp:l.mutation({query:({id:o,body:e})=>({url:`follow-up/${o}/reschedule`,method:"POST",body:e}),invalidatesTags:["FollowUp"]}),cancelFollowUp:l.mutation({query:({id:o,body:e})=>({url:`follow-up/${o}/cancel`,method:"POST",body:e}),invalidatesTags:["FollowUp"]}),checkInFollowUp:l.mutation({query:({id:o,body:e})=>({url:`follow-up/${o}/check-in`,method:"POST",body:e}),invalidatesTags:["FollowUp"]}),checkOutFollowUp:l.mutation({query:({id:o,body:e})=>({url:`follow-up/${o}/check-out`,method:"POST",body:e}),invalidatesTags:["FollowUp"]}),getTodayFollowUps:l.query({query:()=>"follow-up/today",providesTags:["FollowUp"]}),getOverdueFollowUps:l.query({query:()=>"follow-up/overdue",providesTags:["FollowUp"]}),getUpcomingFollowUps:l.query({query:({days:o=7})=>`follow-up/upcoming?days=${o}`,providesTags:["FollowUp"]}),getFollowUpDashboard:l.query({query:()=>"follow-up/dashboard",providesTags:["FollowUp"]}),searchFollowUpsByCriteria:l.mutation({query:({searchByName:o,page:e,size:t,includeCounts:a})=>({url:`follow-up/search-by-criteria?page=${e}&size=${t}${a===!1?"&includeCounts=false":""}`,method:"POST",body:o})}),getFieldVisitMap:l.mutation({query:o=>({url:"follow-up/field-visit-map",method:"POST",body:o})})}),overrideExisting:!1}),{useSaveFollowUpDetailsMutation:w,useUpdateFollowUpDetailsMutation:i,useGetFollowUpsByLeadIdQuery:r,useLazyGetFollowUpsByLeadIdQuery:y,useGetFollowUpsByPageMutation:U,useDeleteFollowUpMutation:n,useGetFollowUpByIdQuery:F,useLazyGetFollowUpByIdQuery:d,useCompleteFollowUpMutation:c,useRescheduleFollowUpMutation:m,useCancelFollowUpMutation:g,useCheckInFollowUpMutation:h,useCheckOutFollowUpMutation:f,useGetTodayFollowUpsQuery:T,useGetOverdueFollowUpsQuery:q,useGetUpcomingFollowUpsQuery:v,useGetFollowUpDashboardQuery:$,useSearchFollowUpsByCriteriaMutation:M,useGetFieldVisitMapMutation:O}=s;export{U as a,n as b,O as c,h as d,w as e,i as f,d as g,$ as u};
