import env from "../index";
const probation = `${env.API_URI}/probation`;
const org = `${env.API_URI}/org`;
const kpiCapacity = `${env.API_URI}/kpi/capacity`;

const reportProbation = `${env.API_URI}/report/probation`;
export default {
  probationMain: (id: string) =>
    `${probation}/assign/assign-user-list?personal_id=${id}`,

  orgProfilePlacement: (id: string) => `${org}/profile/placement/${id}`,
  calculateDate: () => `${probation}/calculate/assign-finish`,
  newAssign: (personalId: string) =>
    `${probation}/data-options/new-assign-user?personal_id=${personalId}`,

  lawOptions: (personalId: string) =>
    `${probation}/data-options/law?personal_id=${personalId}`,
  skillOptions: (personalId: string) =>
    `${probation}/data-options/skill?personal_id=${personalId}`,
  knowledgeOptions: (personalId: string) =>
    `${probation}/data-options/knowledge?personal_id=${personalId}`,
  probationsGetAssign: (assignId: string) =>
    `${probation}/assign/probation-assign?assign_id=${assignId}`,
  probationsGetAssignNew: (assignId: string) => `${probation}/assign/user?assign_id=${assignId}`,
  summarySurveyDetail: (id: string) => `${probation}/survey?assign_id=${id}`,
  summaryDetail: () => `${probation}/survey`,
  saveEditAssign: (personalId: string) =>
    `${probation}/assign/probation-assign?id=${personalId}`,
  saveFinish: (personalId: string) =>
    `${probation}/assign/probation-assign?personal_id=${personalId}`,

  reportEvaluateResult: (type: string, id: string) =>
    `${reportProbation}/19/${type}/${id}`,
  evaluateReportcreate: (id: string) =>
    `${probation}/evaluate-result/create?assign_id=${id}`,
  createformReport: (id: string) =>
    `${probation}/evaluate-result?assign_id=${id}`,
  reportAssign: (type: string, id: string) =>
    `${reportProbation}/13/${type}/${id}`,

  summaryReportDetail: (id: string) => `${probation}/report?assign_id=${id}`,

  formevaluate: (id: string) => `${probation}/evaluate-record?assign_id=${id}`,

  formevaluateRecord: (id: string) =>
    `${probation}/evaluate-record/create?assign_id=${id}`,

  createformevaluate: (id: string) =>
    `${probation}/evaluate-record?assign_id=${id}`,
  editFormEvaluate: (id: string, evaluate_id: string) =>
    `${probation}/evaluate-record?assign_id=${id}&evaluate_id=${evaluate_id}`,

  formevaluateCommander: (id: string) =>
    `${probation}/evaluate-record/commander?assign_id=${id}`,
  formevaluateRecordCommander: (id: string) =>
    `${probation}/evaluate-record/create/commander?assign_id=${id}`,
  reportEvaluateRecord1: (type: string, id: string) =>
    `${reportProbation}/14/${type}/${id}`,

  kpiCapacity,

  appointMainList: (id: string) => `${probation}/appoint/list/${id}`,
};
