/**
 * Router ระบบการสรรหา (Recruiting)
 */

const ImportData = () =>
  import("@/modules/03_recruiting/views/01_compete/ImportData.vue");
const MainDetail = () =>
  import("@/modules/03_recruiting/views/01_compete/Detail.vue");
const MainEx = () =>
  import("@/modules/03_recruiting/views/01_compete/DetailEx.vue");
const Period = () =>
  import("@/modules/03_recruiting/views/01_compete/Period.vue");
const PeriodStat = () =>
  import("@/modules/03_recruiting/views/01_compete/PeriodStat.vue");
const PeriodAdd = () =>
  import("@/modules/03_recruiting/views/01_compete/PeriodAdd.vue");
const QualifyPeriod = () =>
  import("@/modules/03_recruiting/views/02_qualify/Period.vue");
const QualifyPeriodAdd = () =>
  import("@/modules/03_recruiting/views/02_qualify/PeriodAdd.vue");
const QualifyPeriodStat = () =>
  import("@/modules/03_recruiting/views/02_qualify/PeriodStat.vue");
const QualifyPeriodStatDisable = () =>
  import("@/modules/03_recruiting/views/02_qualify/PeriodStatDisable.vue");
const MainDisableDetail = () =>
  import("@/modules/03_recruiting/views/02_qualify/DisableDetail.vue");
const MainDisableEx = () =>
  import("@/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue");
const PeriodDisable = () =>
  import("@/modules/03_recruiting/views/02_qualify/DisablePeriod.vue");
const PeriodDisableAdd = () =>
  import("@/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue");
const Manage = () =>
  import("@/modules/03_recruiting/views/02_qualify/Manage.vue");
const ManageDetail = () =>
  import("@/modules/03_recruiting/views/02_qualify/manageDetail.vue");
const ExamForm = () =>
  import("@/modules/03_recruiting/views/02_qualify/ExamForm.vue");
const Payment = () =>
  import("@/modules/03_recruiting/views/02_qualify/Payment.vue");
const EditorWeb = () =>
  import("@/modules/03_recruiting/views/03_editor/index.vue");

export default [
  {
    path: "/compete/period",
    name: "competePeriod",
    component: Period,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/compete/period/stat",
    name: "competePeriodStat",
    component: PeriodStat,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/compete/period/add",
    name: "competePeriodAdd",
    component: PeriodAdd,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/compete/period/:id",
    name: "competePeriodEdit",
    component: PeriodAdd,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/compete/import",
    name: "recruiting",
    component: ImportData,
    meta: {
      Auth: true,
      Key: [7],
      Role: "recruit",
    },
  },
  {
    path: "/compete/import/:id",
    name: "recruitingDetail",
    component: MainDetail,
    meta: {
      Auth: true,
      Key: [7],
      Role: "recruit",
    },
  },
  {
    path: "/compete/import/:id/:examId",
    name: "recruitingDetailEx",
    component: MainEx,
    meta: {
      Auth: true,
      Key: [7],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/period",
    name: "qualifyPeriod",
    component: QualifyPeriod,
    meta: {
      Auth: true,
      Key: [10],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/period/:id",
    name: "qualifyPeriodEdit",
    component: QualifyPeriodAdd,
    meta: {
      Auth: true,
      Key: [7],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/period/add",
    name: "qualifyPeriodAdd",
    component: QualifyPeriodAdd,
    meta: {
      Auth: true,
      Key: [10],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/period/stat",
    name: "qualifyPeriodStat",
    component: QualifyPeriodStat,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/disable/stat",
    name: "qualifyPeriodStatDisable",
    component: QualifyPeriodStatDisable,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/manage",
    name: "manage",
    component: Manage,
    meta: {
      Auth: true,
      Key: [9],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/manage/:examId",
    name: "manageDetaill",
    component: ManageDetail,
    meta: {
      Auth: true,
      Key: [9],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/manage/:examId/profile/:candidateId",
    name: "ExamForm",
    component: ExamForm,
    meta: {
      Auth: true,
      Key: [9],
      Role: "recruit",
    },
  },
  {
    path: "/qualify/manage/:examId/payment/:candidateId",
    name: "Payment",
    component: Payment,
    meta: {
      Auth: true,
      Key: [9],
      Role: "recruit",
    },
  },
  {
    path: "/disable/period",
    name: "disablePeriod",
    component: PeriodDisable,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/disable/period/add",
    name: "disablePeriodAdd",
    component: PeriodDisableAdd,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/disable/period/:id",
    name: "disablePeriodEdit",
    component: PeriodDisableAdd,
    meta: {
      Auth: true,
      Key: [8],
      Role: "recruit",
    },
  },
  {
    path: "/disable/import/:id",
    name: "disableDetail",
    component: MainDisableDetail,
    meta: {
      Auth: true,
      Key: [7],
      Role: "recruit",
    },
  },
  {
    path: "/disable/import/:id/:examId",
    name: "disableDetailEx",
    component: MainDisableEx,
    meta: {
      Auth: true,
      Key: [7],
      Role: "recruit",
    },
  },
  {
    path: "/editor",
    name: "editorweb",
    component: EditorWeb,
    meta: {
      Auth: true,
      Key: [11],
      Role: "recruit",
    },
  },
];
