import { Router } from 'express';
import { authenticate, requireAuthenticated } from '../middlewares/auth';
import { getSignedUrl, getConversationToken } from '../controllers/elevenLabsVoiceController';

const router = Router();

/**
 * @route   GET /api/elevenlabs/signed-url/:agentId
 * @desc    Get signed URL for ElevenLabs voice conversation
 * @access  Private
 */
router.get('/signed-url/:agentId', authenticate, requireAuthenticated, getSignedUrl);

/**
 * @route   GET /api/elevenlabs/conversation-token/:agentId
 * @desc    Get conversation token for ElevenLabs voice conversation
 * @access  Private
 */
router.get('/conversation-token/:agentId', authenticate, requireAuthenticated, getConversationToken);

export default router;
