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

export const DirectoryRepository = {
    GetContacts: () => api.get( '/api/directory' ),
    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` ),

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