/**ใช้รวมไฟล์ย่อยๆ ของ api แต่ละไฟล์ */

/** API Metadata */
import manageOrganization from "./api/manage/api.organization";
import managePerson from "./api/manage/api.person";
import managePosition from "./api/manage/api.position";
import managePositionEmployee from "./api/manage/api.positionEmployee";
import manageInsignia from "./api/manage/api.insignia";
import manageHoliday from "./api/manage/api.holiday";

/** API Tree List */
import organizationTreeList from "./api/02_organizational/api.treelist";

/** API Structure & Org Chart */
import organizationChart from "./api/02_organizational/api.chart";

/** API periodexam List */
import periodexam from "./api/recruiting/api.period-exam";
import disableexam from "./api/recruiting/api.disable";

/** API Recruit List */
import recruit from "./api/recruiting/api.recruit";

/** API Profile List */
import profile from "./api/registry/api.profile";

/** API Report2 List */
import report2 from "./api/recruiting/api.report2";

/** API ระบบการบรรจุ แต่งตั้ง ย้าย โอน List */
import placement from "./api/05_placement/api.placement";
import probation from "./api/05_placement/api.probation";

/** API ระบบการพ้นจากราชการ List */
import retirement from "./api/06_retirement/api.retirement";

/** API ระบบงานเครื่องราชอิสริยาภรณ์ List */
import insignia from "./api/07_insignia/api.insignia";

/** API dashboard  */
import message from "./api/00_dashboard/api.message";

/** API reports  */
import reports from "./api/reports/api.report";

// environment variables
export const compettitivePanel = import.meta.env.VITE_COMPETITIVE_EXAM_PANEL;
export const qualifyDisableExamPanel = import.meta.env
  .VITE_QUALIFY_DISABLE_EMAM_PANEL;
export const qualifyExamPanel = import.meta.env.VITE_QUALIFY_EXAM_PANEL;
export const s3ClusterUrl = import.meta.env.VITE_S3CLUSTER_PUBLIC_URL;

const API = {
  //Metadata
  ...manageOrganization,
  ...managePerson,
  ...managePosition,
  ...managePositionEmployee,
  ...manageInsignia,
  ...manageHoliday,

  //Tree List
  ...organizationTreeList,
  ...organizationChart,

  //periodexam
  ...periodexam,
  ...disableexam,

  // recruit
  ...recruit,

  //profile
  ...profile,

  //report2
  ...report2,

  ...placement,
  ...probation,
  ...retirement,
  ...insignia,

  //dashboard
  ...message,

  //reports
  ...reports,
};

export default {
  API: API,
  compettitivePanel,
  qualifyDisableExamPanel,
  qualifyExamPanel,
  s3ClusterUrl,
};
