import{g3 as r}from"./index-DdWwwZXu.js";import{a as e}from"./vendor-utils-BveVE6Uf.js";const I=()=>({addInterestAsync:async t=>(t.title=r(t.title),(await e.post("Interests/AddInterest",t)).data),getInterestAsync:async t=>(await e.get("Interests/GetInterests",{params:{name:t}})).data,updateInterest:async t=>(t.title=r(t.title),(await e.put(`Interests/UpdateInterest/${t.id}`,t)).data),deleteInterestAsync:async t=>(await e.delete(`Interests/DeleteInterest/${t}`)).data}),y=()=>({addPatientInterestAsync:async s=>(await e.post("PatientInterest/AddPatientInterest",s)).data,getPatientInterestsAsync:async(s,t)=>(await e.get(`PatientInterest/GetPatientInterests/${s}`,{params:{name:t}})).data,deletePatientInterestAsync:async s=>(await e.delete(`PatientInterest/DeletePatientInterest/${s}`)).data});export{I as i,y as p};
