import express from 'express';
const router = express.Router();
import * as slaController from './sla.controller.js';
import { authenticate } from '../../common/middleware/auth.js';

router.use(authenticate as any);

router.get('/configs', slaController.getConfigs);
router.put('/configs/:id', slaController.updateConfig);
router.get('/operations/dashboard', slaController.getOperationsDashboard);
router.get('/operations/export', slaController.exportOperationsCsv);
router.get('/settings/questionnaire-reminder', slaController.getQuestionnaireReminderSettings);
router.put('/settings/questionnaire-reminder', slaController.updateQuestionnaireReminderSettings);
router.post('/status/batch', slaController.getBatchStatus);
router.get('/tracking/:applicationId', slaController.getTracking);
router.get('/debug/queue', slaController.getQueueStatus);

export default router;
