const express = require('express');
const agentAdminRouter = express.Router();
const agentAdminController = require('../controllers/agentAdminController');

agentAdminRouter.get('/admin/agents',                      agentAdminController.getAllAgents);
agentAdminRouter.get('/admin/agents/:userId',              agentAdminController.getAgentById);
agentAdminRouter.post('/admin/agents/:userId/approve',     agentAdminController.approveAgent);
agentAdminRouter.post('/admin/agents/:userId/reject',      agentAdminController.rejectAgent);
agentAdminRouter.post('/admin/agents/:userId/reupload',    agentAdminController.requestReupload);
agentAdminRouter.put('/admin/agents/:userId/services',     agentAdminController.updateAgentServices);
agentAdminRouter.post('/admin/agents/:userId/deactivate', agentAdminController.deactivateAgent);
agentAdminRouter.delete('/admin/agents/:userId',           agentAdminController.deleteAgent);

module.exports = agentAdminRouter;