import{am as s}from"./index-DlNZgIG9.js";const u=s.injectEndpoints({endpoints:e=>({saveFollowUpDetails:e.mutation({query:o=>({url:"follow-up",method:"POST",body:o}),invalidatesTags:["FollowUp"]}),updateFollowUpDetails:e.mutation({query:o=>({url:"follow-up",method:"PUT",body:o}),invalidatesTags:["FollowUp"]}),getFollowUpsByLeadId:e.query({query:o=>`follow-up/by-lead/${o}`}),getFollowUpsByPage:e.mutation({query:({searchByName:o,page:l,size:t,includeCounts:a})=>({url:`follow-up/search-by-criteria?page=${l}&size=${t}${a===!1?"&includeCounts=false":""}`,method:"POST",body:o})}),deleteFollowUp:e.mutation({query:o=>({url:`follow-up/${o}`,method:"DELETE"}),invalidatesTags:["FollowUp"]}),getFollowUpById:e.query({query:o=>`follow-up/${o}`,providesTags:["FollowUp"]}),completeFollowUp:e.mutation({query:({id:o,body:l})=>({url:`follow-up/${o}/complete`,method:"POST",body:l}),invalidatesTags:["FollowUp"]}),rescheduleFollowUp:e.mutation({query:({id:o,body:l})=>({url:`follow-up/${o}/reschedule`,method:"POST",body:l}),invalidatesTags:["FollowUp"]}),cancelFollowUp:e.mutation({query:({id:o,body:l})=>({url:`follow-up/${o}/cancel`,method:"POST",body:l}),invalidatesTags:["FollowUp"]}),checkInFollowUp:e.mutation({query:({id:o,body:l})=>({url:`follow-up/${o}/check-in`,method:"POST",body:l}),invalidatesTags:["FollowUp","Lead","LeadActivity"]}),checkOutFollowUp:e.mutation({query:({id:o,body:l})=>({url:`follow-up/${o}/check-out`,method:"POST",body:l}),invalidatesTags:["FollowUp","Lead","LeadActivity"]}),getTodayFollowUps:e.query({query:()=>"follow-up/today",providesTags:["FollowUp"]}),getOverdueFollowUps:e.query({query:()=>"follow-up/overdue",providesTags:["FollowUp"]}),getUpcomingFollowUps:e.query({query:({days:o=7})=>`follow-up/upcoming?days=${o}`,providesTags:["FollowUp"]}),getFollowUpDashboard:e.query({query:()=>"follow-up/dashboard",providesTags:["FollowUp"]}),searchFollowUpsByCriteria:e.mutation({query:({searchByName:o,page:l,size:t,includeCounts:a})=>({url:`follow-up/search-by-criteria?page=${l}&size=${t}${a===!1?"&includeCounts=false":""}`,method:"POST",body:o})}),getFieldVisitMap:e.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};
