"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.scheduleJobsRouter = void 0;
const express_1 = require("express");
const permissions_1 = require("../../util/config/permissions");
const permission_1 = require("../middlewares/permission");
const scheduleJobs_1 = require("../controller/scheduleJobs");
const router = (0, express_1.Router)();
router.get('/', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_READ), scheduleJobs_1.getScheduleJobsList);
router.get('/:scheduleJobId', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_READ), scheduleJobs_1.getScheduleJobDetails);
router.get('/:scheduleJobId/evaluations', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_READ), scheduleJobs_1.getScheduleJobEvaluations);
router.post('/', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_WRITE), scheduleJobs_1.createScheduleJob);
router.patch('/:scheduleJobId', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_WRITE), scheduleJobs_1.updateScheduleJob);
router.patch('/:scheduleJobId/archive', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_WRITE), scheduleJobs_1.archiveScheduleJob);
router.delete('/:scheduleJobId', (0, permission_1.hasPermission)(permissions_1.Permission.APPLICATION_WRITE), scheduleJobs_1.deleteScheduleJob);
exports.scheduleJobsRouter = router;
//# sourceMappingURL=scheduleJobs.js.map