import env from '../index'
const candidate = `${env.API_URI}/candidate/`
const periodExam = `${env.API_URI}/candidate/period-exam/`

export default {
  candidateInformation: (examId: string, positionId: string) =>
    `${candidate}information/${examId}/${positionId}`,
  candidateCheckCitizen: (examId: string, positionId: string) =>
    `${candidate}check/citizen/${examId}/${positionId}`,
  candidateAddress: (examId: string, positionId: string) =>
    `${candidate}address/${examId}/${positionId}`,
  candidateFamily: (examId: string, positionId: string) =>
    `${candidate}family/${examId}/${positionId}`,
  candidateOccupation: (examId: string, positionId: string) =>
    `${candidate}occupation/${examId}/${positionId}`,
  candidateContact: (examId: string, positionId: string) =>
    `${candidate}contact/${examId}/${positionId}`,
  candidateEducation: (examId: string, positionId: string) =>
    `${candidate}education/${examId}/${positionId}`,
  candidateCareer: (examId: string, positionId: string) =>
    `${candidate}career/${examId}/${positionId}`,
  candidateCheckCreate: (examId: string, positionId: string) =>
    `${candidate}check/${examId}/${positionId}`,
  candidateRegister: (examId: string, positionId: string) =>
    `${candidate}register/${examId}/${positionId}`,
  candidatePayment: (examId: string, positionId: string) =>
    `${candidate}payment-image/${examId}/${positionId}`,
  candidateProfile: (examId: string, positionId: string) =>
    `${candidate}profile-image/${examId}/${positionId}`,
  candidateStatus: (examId: string, positionId: string) =>
    `${candidate}status/${examId}/${positionId}`,
  candidateUpload: (examId: string, positionId: string) =>
    `${candidate}upload/${examId}/${positionId}`,
  candidateDownload: (examId: string) => `${candidate}download/${examId}`,
  periodExamId: (examId: string) => `${periodExam}${examId}`,
  candidateId: (examId: string, positionId: string) => `${candidate}${examId}/${positionId}`,
  periodExamPosition: (examId: string, positionId: string) =>
    `${periodExam}position/${examId}/${positionId}`,
  periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
  candidateCard: (examId: string, positionId: string) => `${candidate}card/${examId}/${positionId}`,
  candidateReview: (examId: string, positionId: string) =>
    `${candidate}review/${examId}/${positionId}`,
  candidate,
  candidateBill: (examId: string, positionId: string) => `${candidate}bill/${examId}/${positionId}`,

  candidateReport: (candidateId: string) => `${env.API_URI_V2}/report/candidate/pdf/${candidateId}`
}
