// import {Router} from "express"; // import {tiExportRunning, runTiImport} from "../../notification/notification/tiFullFlow/tiImports.js"; // const router = Router(); // router.get("/tiTrigger", async (req, res): Promise => { // if (tiExportRunning) { // res.status(200).json({ // success: false, // message: "There is already a current sesion of the Export running please try again later.", // }); // } // // trigger the import // runTiImport(); // res.status(200).json({ // success: true, // message: "The Ti Export has been manually started and will continue to run in the background.", // }); // }); // export default router;