/**
 * api สรรหา
 */
import env from "../index";
const disableExam = `${env.API_CANDIDATE_URI}/candidate/disable-exam/`;
const diable_report = `${env.API_URI}/report/exam/`;

export default {
  getDisableCandidates: `${disableExam}candidate`,
  saveDisableCandidates: `${disableExam}candidate`,
  deleteDisableCandidates: (id: string) => `${disableExam}candidate/${id}`,
  getDisableExamDetail: (id: string, examId: string) =>
    `${disableExam}exam/${id}/${examId}`,

  saveDisableScores: (id: string) => `${disableExam}score/${id}`,

  getDisableExamResultById: (id: string) => `${disableExam}exam/${id}`,

  // จัดการรอบการสอบ
  saveDisablePeriod: `${disableExam}period`,
  editDisablePeriod: (id: string) => `${disableExam}period/${id}`,
  getDisablePeriodById: (id: string) => `${disableExam}period/${id}`,
  uploadDisableCandidates: (id: string) => `${disableExam}candidate/${id}`,
  getDisableImportHistory: (id: string) => `${disableExam}history/${id}`,

  // รายงาน
  downloadDisableExamReport: (id: string, examId: string, type: number = 2) =>
    `${diable_report}certificate/${type}/${id}/${examId}`,
  downloadDisableScoreReport: (id: string, examId: string) =>
    `${diable_report}score/${id}/${examId}`,
  exportDisableExam: (id: string) => `${disableExam}export/exam/${id}`,
  exportDisablePassExam: (id: string) => `${disableExam}export/pass-exam/${id}`,
  exportDisablePassResultExam: (id: string) =>
    `${disableExam}export/pass/${id}`,

  exportDisableCandidateList: (id: string) => `${diable_report}candidate/${id}`,
  exportDisablePassExamList: (id: string) => `${diable_report}pass/${id}`,
  periodDisableToPlacement: (examId: string) =>
    `${disableExam}placement/${examId}`,
};
