/**
 * Router บรรจุ แต่งตั้ง ย้าย โอน (Placement)
 */

const PlacementMain = () =>
  import("@/modules/05_placement/components/Main.vue");
const PlacementDetail = () =>
  import("@/modules/05_placement/components/PersonalList/Detail.vue");
const PlacementPersonalDetail = () =>
  import("@/modules/05_placement/components/PersonalDetail/Detail.vue");

// ระบบทดลองงาน
const mainProbation = () =>
  import("@/modules/05_placement/components/probation/MainProbation.vue");

const probationDetail = () =>
  import("@/modules/05_placement/components/probation/ProbationDetail.vue");

const probationFormEvaluation = () =>
  import("@/modules/05_placement/components/probation/MainDetail.vue");

const probationWorkAdd = () =>
  import("@/modules/05_placement/components/probation/MainDetail.vue");
const probationFormAssign = () =>
  import("@/modules/05_placement/components/probation/FormAssign.vue");
const transfer = () =>
  import("@/modules/05_placement/components/Transfer/transferMain.vue");
const transferbyId = () =>
  import("@/modules/05_placement/components/Transfer/transferRegistry.vue");
const FormSaveResultAdd = () =>
  import(
    "@/modules/05_placement/components/probation/FormEvaluation/FormSaveResultAdd.vue"
  );
const FormEvaluateAdd = () =>
  import(
    "@/modules/05_placement/components/probation/FormEvaluation/FormEvaluateAdd.vue"
  );
const FormEvaluateScoreAdd = () =>
  import(
    "@/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScoreAdd.vue"
  );

// คำสั่งช่วยราชการ/ส่งตัวกลับ
const RepatriationOrder = () =>
  import("@/modules/05_placement/components/RepatriationOrder/List.vue");
const RepatriationOrderAdd = () =>
  import("@/modules/05_placement/components/RepatriationOrder/AddOrder.vue");
const helpgovernment = () => import("@/modules/05_placement/components/helpgovernment/mainHelp.vue")
const helpgovernmentbyId = () => import("@/modules/05_placement/components/helpgovernment/governmentDetail.vue")
const repatriate = () => import("@/modules/05_placement/components/Repatriate/RepatriateMain.vue")
const repatriatebyId = () => import("@/modules/05_placement/components/Repatriate/RepatriatebyId.vue")
const relocation = () => import("@/modules/05_placement/components/Relocation/RelocationMain.vue")
const relocationbyId = () => import("@/modules/05_placement/components/Relocation/RelocationbyId.vue")
//รับโอน
const receiveMain = () =>
  import("@/modules/05_placement/components/Receive/receiveMain.vue");

// const receiveDetail = () =>
//   import("@/modules/05_placement/components/Receive/receiveDetail.vue");
const receiveDetail2 = () =>
  import("@/modules/05_placement/components/Receive/receiveDetail2.vue");
const ReceiveAdd = () =>
  import("@/modules/05_placement/components/Receive/FormAdd.vue");

//แต่งตั้ง-เลื่อน
const AppointmentMain = () => import("@/modules/05_placement/components/AppointMent/Main.vue");
const AppointmentDetail = () => import("@/modules/05_placement/components/AppointMent/Detail.vue");
//อื่นๆ
const OtherMain = () => import("@/modules/05_placement/components/Other/Main.vue")
const OthertDetail = () => import("@/modules/05_placement/components/Other/Detail.vue");

export default [
  {
    path: "/placement",
    name: "placement",
    component: PlacementMain,
    meta: {
      Auth: true,
      Key: [6.1],
      Role: "placement",
    },
  },
  {
    path: "/placement/personal-list/:examId",
    name: "placementDetail",
    component: PlacementDetail,
    meta: {
      Auth: true,
      Key: [6.1],
      Role: "placement",
    },
  },
  {
    path: "/placement/personal-detail/:personalId",
    name: "PlacementPersonalDetail",
    component: PlacementPersonalDetail,
    meta: {
      Auth: true,
      Key: [6.1],
      Role: "placement",
    },
  },
  {
    path: "/probation",
    name: "probation",
    component: mainProbation,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/detail/:id",
    name: "probationDetail",
    component: probationDetail,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/detail/:personalId/:form",
    name: "probationForm",
    component: probationFormEvaluation,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/detail/addresult/:id/:form",
    name: "probationFormAddresult",
    component: FormSaveResultAdd,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/detail/addevalua/:id/:form",
    name: "probationFormAddevalua",
    component: FormEvaluateAdd,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/detail/addevaluascore/:id/:form",
    name: "probationFormAddevaluascore",
    component: FormEvaluateScoreAdd,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/work/add",
    name: "probationWorkAdd",
    component: probationWorkAdd,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/work/:id",
    name: "probationWork",
    component: probationWorkAdd,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/probation/add/:personalId",
    name: "probationWorkAdd",
    component: probationFormAssign,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/transfer",
    name: "transfer",
    component: transfer,
    meta: {
      Auth: true,
      Key: [6.4],
      Role: "placement",
    },
  },
  {
    path: "/transfer/:id",
    name: "transfer-id",
    component: transferbyId,
    meta: {
      Auth: true,
      Key: [6.4],
      Role: "placement",
    },
  },
  {
    path: "/repatriation-order",
    name: "repatriation-order",
    component: RepatriationOrder,
    meta: {
      Auth: true,
      Key: [6.6],
      Role: "placement",
    },
  },
  {
    path: "/repatriation-order/add",
    name: "repatriation-order-add",
    component: RepatriationOrderAdd,
    meta: {
      Auth: true,
      Key: [6.6],
      Role: "placement",
    },
  },
  {
    path: "/receive",
    name: "receive",
    component: receiveMain,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/receive/add",
    name: "receiveAdd",
    component: ReceiveAdd,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "registryEmployee",
    },
  },
  {
    path: "/receive/:id",
    name: "receiveDetail",
    component: receiveDetail2,
    meta: {
      Auth: true,
      Key: [6.3],
      Role: "placement",
    },
  },
  {
    path: "/help-government",
    name: "help-government",
    component: helpgovernment,
    meta: {
      Auth: true,
      Key: [6.6],
      Role: "placement",
    },
  },
  {
    path: "/help-government/detail/:id",
    name: "help-governmentbyId",
    component: helpgovernmentbyId,
    meta: {
      Auth: true,
      Key: [6.6],
      Role: "placement",
    },
  },
  {
    path: "/repatriate",
    name: "repatriate",
    component: repatriate,
    meta: {
      Auth: true,
      Key: [6.7],
      Role: "placement",
    },
  },
  {
    path: "/repatriate/detail/:id",
    name: "repatriatebyId",
    component: repatriatebyId,
    meta: {
      Auth: true,
      Key: [6.7],
      Role: "placement",
    },
  },
  {
    path: "appoint-promote",
    name: "appoint-promote",
    component: AppointmentMain,
    meta: {
      Auth: true,
      Key: [6.8],
      Role: "placement",
    },
  },
  {
    path: "appoint-promote/detail/:id",
    name: "appoint-promote-detail",
    component: AppointmentDetail,
    meta: {
      Auth: true,
      Key: [6.8],
      Role: "placement",
    },
  },
  {
    path: "other",
    name: "other",
    component: OtherMain,
    meta: {
      Auth: true,
      Key: [6.9],
      Role: "placement",
    },
  }, {
    path: "/relocation",
    name: "relocation",
    component: relocation,
    meta: {
      Auth: true,
      Key: [6.9],
      Role: "placement",
    },
  },
  {
    path: "other/detail/:id",
    name: "other-detail",
    component: OthertDetail,
    meta: {
      Auth: true,
      Key: [6.9],
      Role: "placement",
    },
  }, {
    path: "/relocation/detail/:id",
    name: "relocationId",
    component: relocationbyId,
    meta: {
      Auth: true,
      Key: [6.9],
      Role: "placement",
    },
  },
];
