import{al as s}from"./index-ktJf6c6X.js";const u=s.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","Lead","LeadActivity"]}),checkOutFollowUp:l.mutation({query:({id:o,body:e})=>({url:`follow-up/${o}/check-out`,method:"POST",body:e}),invalidatesTags:["FollowUp","Lead","LeadActivity"]}),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:i,useUpdateFollowUpDetailsMutation:w,useGetFollowUpsByLeadIdQuery:r,useLazyGetFollowUpsByLeadIdQuery:y,useGetFollowUpsByPageMutation:U,useDeleteFollowUpMutation:n,useGetFollowUpByIdQuery:d,useLazyGetFollowUpByIdQuery:F,useCompleteFollowUpMutation:c,useRescheduleFollowUpMutation:m,useCancelFollowUpMutation:g,useCheckInFollowUpMutation:h,useCheckOutFollowUpMutation:f,useGetTodayFollowUpsQuery:T,useGetOverdueFollowUpsQuery:q,useGetUpcomingFollowUpsQuery:v,useGetFollowUpDashboardQuery:$,useSearchFollowUpsByCriteriaMutation:M,useGetFieldVisitMapMutation:O}=u;export{$ as a,O as b,U as c,n as d,h as e,i as f,w as g,F as h,d as u};
