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

export const ActivityeRepository = {
  getActivities: () => api.get(`/api/task/activities`),
  createActivity: (data) => api.post("/users", data),
  updateActivity: (id, data) => api.put(`/users/${id}`, data),
  deleteActivity: (id) => api.delete(`/users/${id}`),
};

export const RolesRepository = {
  getRoles: () => api.get(`/api/employee/roles`),
  createRoles: (data) => api.post("/users", data),
  updateRoles: (id, data) => api.put(`/users/${id}`, data),
  deleteRoles: (id) => api.delete(`/users/${id}`),
  

  getEmployeeRoles:(id)=>api.get(`/api/employee/roles/${id}`),
  createEmployeeRoles:(data)=>api.post("/api/employee/roles",data)
};


export const MasterRespository = {
  getRoles: () => api.get("/api/roles"),
  createRole: (data) => api.post("/api/roles", data),
  updateRoles:(id,data) => api.put(`/api/roles/${id}`,data),
  getFeatures : () => api.get(`/api/feature`),

  createJobRole:(data)=>api.post('api/roles/jobrole',data),
  getJobRole :()=>api.get("/api/roles/jobrole"),
  updateJobRole:(id,data)=>api.put(`/api/roles/jobrole/${id}`,data)
  
  
}