import {api} from "../utils/axiosClient";

export const DirectoryRepository = {
    GetContacts: (isActive) => api.get( `/api/directory?active=${isActive}` ),
    CreateContact: ( data ) => api.post( '/api/directory', data ),
    UpdateContact: ( id, data ) => api.put( `/api/directory/${ id }`, data ),
    DeleteContact:(id)=>api.delete(`/api/directory/${id}`),
    
    GetBucktes: () => api.get( `/api/directory/buckets` ),
    CreateBuckets: ( data ) => api.post( `/api/Directory/bucket`, data ),
    UpdateBuckets: (id,data) => api.put( `/api/Directory/bucket/${id}`,data ),

    GetContactProfile: ( id ) => api.get( `/api/directory/profile/${ id }` ),
    
    CreateNote: ( data ) => api.post( '/api/directory/note', data ),
    GetNote: ( id,isActive ) => api.get( `/api/directory/note/${ id }?active=${isActive}` ),
    UpdateNote: ( id, data ) => api.put( `/api/directory/note/${ id }`, data ),
    DeleteNote:(id)=> api.delete(`/api/directory/note/${ id }`)
}