<?php
/**
 * Guest Engagement Module — Route Definitions
 *
 * Registers Couple Portal guest engagement center endpoints.
 * Loaded within routes/couple.php.
 *
 * GET  /app/couple/engagement/rsvp           -> EngagementController@showRsvpCenter
 * GET  /app/couple/engagement/wishes         -> EngagementController@showWishes
 * GET  /app/couple/engagement/whatsapp-queue -> EngagementController@showWhatsAppQueue
 * POST /app/couple/engagement/whatsapp-queue/mark-sent/{id} -> EngagementController@markSent
 * POST /app/couple/engagement/whatsapp-queue/reset         -> EngagementController@resetQueue
 *
 * Available variable: $router (App\Core\Router instance)
 *
 * @package Inveetaire
 * @ref     RC-014
 */

$router->group('/engagement', function ($router) {
    $router->get('/rsvp', 'App\\Modules\\Engagement\\EngagementController@showRsvpCenter');
    $router->get('/wishes', 'App\\Modules\\Engagement\\EngagementController@showWishes');
    $router->post('/wishes/approve/{id}', 'App\\Modules\\Engagement\\EngagementController@approveWish', [
        'App\\Middleware\\CsrfMiddleware'
    ]);
    $router->post('/wishes/reject/{id}', 'App\\Modules\\Engagement\\EngagementController@rejectWish', [
        'App\\Middleware\\CsrfMiddleware'
    ]);
    $router->post('/wishes/delete/{id}', 'App\\Modules\\Engagement\\EngagementController@deleteWish', [
        'App\\Middleware\\CsrfMiddleware'
    ]);
    $router->get('/whatsapp-queue', 'App\\Modules\\Engagement\\EngagementController@showWhatsAppQueue');
    $router->post('/whatsapp-queue/mark-sent/{id}', 'App\\Modules\\Engagement\\EngagementController@markSent', [
        'App\\Middleware\\CsrfMiddleware'
    ]);
    $router->post('/whatsapp-queue/reset', 'App\\Modules\\Engagement\\EngagementController@resetQueue', [
        'App\\Middleware\\CsrfMiddleware'
    ]);
});
