const baseURL = import.meta.env.VITE_API_BASE_URL;

const job = {
  search: `${baseURL}/Job/Search`,
  createOrUpdate: `${baseURL}/Job/CreateOrUpdate`,
  getById: `${baseURL}/Job/GetById?id=`,
  delete: `${baseURL}/Job/Delete?id=`,
  approve: `${baseURL}/Job/Approve`,
  close: `${baseURL}/Job/Close`,
};

const candidate = {
  search: `${baseURL}/Candidate/Search`,
  createOrUpdate: `${baseURL}/Candidate/CreateOrUpdate`,
  create: `${baseURL}/Candidate/Create`,
  getById: `${baseURL}/Candidate/GetById?id=`,
  getReviewModel: `${baseURL}/Candidate/GetReviewModel?id=`,
  updateReview: `${baseURL}/Candidate/UpdateReview`,
  delete: `${baseURL}/Candidate/Delete?id=`,
};

const attendance = {
  search: `${baseURL}/Attendance/search`,
  getMonthlySummary: `${baseURL}/Attendance/GetMonthlySummary`,
  getUserAttendanceDetail: `${baseURL}/Attendance/GetUserAttendanceDetail`,
};

export { job, candidate, attendance };
