add messages to ot

This commit is contained in:
amazuecos
2025-04-15 00:42:24 +02:00
parent 14c5cf493c
commit 9f46569b01
17 changed files with 445 additions and 14 deletions

View File

@ -40,6 +40,7 @@ class ChatService extends BaseService
"presupuesto" => "presupuesto_id",
"pedido" => "pedido_id",
"factura" => "factura_id",
"ot" => "orden_trabajo_id"
];
protected array $modelClassMap;
public function __construct()
@ -122,6 +123,9 @@ class ChatService extends BaseService
case 'factura':
$r = $this->chatModel->createChatFactura($chatDepartmentId, $modelId);
break;
case 'ot':
$r = $this->chatModel->createChatOrdenTrabajo($chatDepartmentId, $modelId);
break;
default:
break;
}