# app/modules/messaging/routes/api/admin.py
"""
Messaging module admin API routes.

Aggregates all admin messaging routes:
- /messages/* - Conversation and message management
- /notifications/* - Admin notifications and platform alerts
- /email-templates/* - Email template management
"""

from fastapi import APIRouter, Depends

from app.api.deps import require_module_access
from app.modules.enums import FrontendType

from .admin_email_templates import admin_email_logs_router, admin_email_templates_router
from .admin_messages import admin_messages_router
from .admin_notifications import admin_notifications_router

router = APIRouter(
    dependencies=[Depends(require_module_access("messaging", FrontendType.ADMIN))],
)

# Aggregate all messaging admin routes
router.include_router(admin_messages_router, tags=["admin-messages"])
router.include_router(admin_notifications_router, tags=["admin-notifications"])
router.include_router(admin_email_templates_router, tags=["admin-email-templates"])
router.include_router(admin_email_logs_router, tags=["admin-email-logs"])
