This commit is contained in:
Lizandro Guarnizo
2026-04-16 22:23:33 -05:00
parent 50b7f7f8ca
commit ef822dd3c7
38 changed files with 2448 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
/**
* modules/whatsapp/module.php
* Descriptor del módulo WhatsApp Bot.
*/
return [
'slug' => 'whatsapp',
'name' => 'WhatsApp Bot',
'icon' => 'fab fa-whatsapp',
'category' => 'bot',
'route' => '/index.php',
'is_active' => true,
'sort_order' => 1,
'oleada' => 0,
'description' => 'Bot, conversaciones, plantillas y menús de WhatsApp',
'links' => [
['name' => 'Conversaciones', 'icon' => 'fas fa-comments', 'route' => '/conversations.php'],
['name' => 'Bot & Menús', 'icon' => 'fas fa-robot', 'route' => '/index.php'],
['name' => 'Plantillas', 'icon' => 'fas fa-file-alt', 'route' => '/index.php#templates'],
['name' => 'Programados', 'icon' => 'fas fa-clock', 'route' => '/scheduled_messages.php'],
],
];
+10
View File
@@ -0,0 +1,10 @@
<?php
/**
* modules/whatsapp/views/index.php
* Bridge al archivo legacy mientras se migra al nuevo sistema ERP.
* Acceso via: /erp.php?m=whatsapp&v=index o /whatsapp/index
*/
if (!defined('APP_ROOT')) {
define('APP_ROOT', dirname(__DIR__, 3));
}
require_once APP_ROOT . '/index.php';