import express from "express";
import { mountCrudTables } from "./crudRouter.js";

const router = express.Router();

/** Lookups and ticketing — any valid HSE JWT (SAT, ORAC, or SWI login). */
mountCrudTables(router, [
  ["locations", ["location_id"]],
  ["departments", ["department_id"]],
  ["location_departments", ["department_id", "location_id"]],
  ["job_title", ["job_title_id"]],
  ["tickets_type", ["type_id"]],
  ["tickets_status", ["status_id"]],
]);

export default router;
