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

const EmployeeRepository = {
  getAllEmployeeList:()=>api.get(`api/employee/list`),
  getEmployeeListByproject: (projectid) =>
    api.get(`/api/employee/list/${projectid}`),
  searchEmployees: (query) =>
    api.get(`/api/employee/search/${query}`),
  manageEmployee: (data) =>
    api.post("/api/employee/manage", data, {
      "Content-Type": "multipart/form-data",
    }),
  updateEmployee: (id, data) => api.put(`/users/${id}`, data),
  deleteEmployee: ( id ) => api.delete( `/users/${ id }` ),
  getEmployeeProfile:(id)=>api.get(`/api/Employee/profile/get/${id}`)
};

export default EmployeeRepository;
