import { Router } from 'express';
import { requireAuth } from '../middleware/auth';
import { createCase, deleteCase, summarizeCase, updateCaseParties, analyzeStatements, analyzeDeficiencies, analyzeStrategy, analyzeMediation, analyzeDigitalIntern } from '../controllers/case.controller';

const router = Router();

router.post('/', requireAuth, createCase);
router.delete('/:caseId', requireAuth, deleteCase);
router.post('/:caseId/summarize', requireAuth, summarizeCase);
router.post('/:caseId/analyze-statements', requireAuth, analyzeStatements);
router.post('/:caseId/statements', requireAuth, analyzeStatements);
router.post('/:caseId/analyze-deficiencies', requireAuth, analyzeDeficiencies);
router.post('/:caseId/deficiencies', requireAuth, analyzeDeficiencies);
router.post('/:caseId/analyze-strategy', requireAuth, analyzeStrategy);
router.post('/:caseId/strategy', requireAuth, analyzeStrategy);
router.post('/:caseId/analyze-mediation', requireAuth, analyzeMediation);
router.post('/:caseId/mediation', requireAuth, analyzeMediation);
router.post('/:caseId/digital-intern', requireAuth, analyzeDigitalIntern);
router.post('/:caseId/live-qa', requireAuth, analyzeDigitalIntern);
router.post('/parties', requireAuth, updateCaseParties);

export default router;
