HEAD
## About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: - [Simple, fast routing engine](https://laravel.com/docs/routing). - [Powerful dependency injection container](https://laravel.com/docs/container). - Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. - Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). - Database agnostic [schema migrations](https://laravel.com/docs/migrations). - [Robust background job processing](https://laravel.com/docs/queues). - [Real-time event broadcasting](https://laravel.com/docs/broadcasting). Laravel is accessible, powerful, and provides tools required for large, robust applications. ## Learning Laravel Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application. If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. ## Laravel Sponsors We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). ### Premium Partners - **[Vehikl](https://vehikl.com)** - **[Tighten Co.](https://tighten.co)** - **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** - **[64 Robots](https://64robots.com)** - **[Curotec](https://www.curotec.com/services/technologies/laravel)** - **[DevSquad](https://devsquad.com/hire-laravel-developers)** - **[Redberry](https://redberry.international/laravel-development)** - **[Active Logic](https://activelogic.com)** ## Contributing Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). ## Code of Conduct In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). ## Security Vulnerabilities If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. ## License The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). ======= # OmniBoard 📊     ## 🚀 Sobre o Projeto O **OmniBoard** é uma solução de monitoramento de performance para Call Centers e Centrais de Atendimento. O objetivo é acabar com a "caixa preta" da telefonia, transformando eventos brutos do PABX e do WhatsApp em métricas visuais em tempo real para gestores. Diferente de soluções monolíticas que rodam dentro do servidor do cliente, o OmniBoard utiliza uma arquitetura **SaaS (Software as a Service)**. Um agente leve coleta os dados localmente e os transmite para uma nuvem centralizada, garantindo escalabilidade, segurança e baixo consumo de recursos no servidor de telefonia. --- ## 🏗 Arquitetura O sistema é dividido em dois componentes principais para resolver o problema de conectividade (NAT/VPN) e escalabilidade: ### 1. The Cloud Core (Servidor) Hospedado na nuvem (VPS), é o cérebro da operação. * **Stack:** Laravel 12 + MySQL + Redis. * **Responsabilidade:** Receber dados via API, gerenciar múltiplos inquilinos (Multi-tenant), processar histórico e servir o Dashboard via WebSockets. ### 2. The Local Agent (Cliente) Um script leve em **PHP Puro** que roda dentro do servidor FreePBX/Asterisk do cliente. * **Stack:** PHP 7.4 (Nativo do FreePBX) com Sockets TCP. * **Conexão:** Conecta-se ao AMI (Asterisk Manager Interface) na porta 5038. * **Responsabilidade:** "Escutar" eventos (Entrada em fila, Pausas, Abandonos), filtrar e transmitir via HTTPS para o Cloud Core. * **Segurança:** Opera apenas com saída de dados (Outbound), sem necessidade de abrir portas no firewall do cliente ou configurar VPNs complexas. --- ## ✨ Funcionalidades * **Monitoramento de Filas em Tempo Real:** * Visualização de clientes aguardando na fila. * Tempo médio de espera (TME). * Alertas visuais de gargalos. * **Gestão de Agentes:** * Status ao vivo (Disponível, Falando, Pausado, Deslogado). * Identificação de pausas excessivas. * **Integração WhatsApp (HelenaCRM):** * Unificação das métricas de atendimento via chat no mesmo painel da voz. * **Métricas Críticas:** * Contador de Chamadas Abandonadas (Lost Calls). * Nível de Serviço (SLA). --- ## 🛠 Tecnologias Utilizadas * **Backend:** Laravel 12 * **Frontend:** Vue.js / Blade Templates * **Real-time:** Laravel Reverb / WebSockets * **Coleta de Dados:** PHP Streams (fsockopen) para conexão AMI raw. * **Infraestrutura:** Vultr VPS (Linux) --- ## 🔄 Fluxo de Dados ```mermaid graph LR A[Asterisk Server] -- AMI Event (TCP 5038) --> B(Agente PHP Local) B -- JSON / POST (HTTPS) --> C{Laravel Cloud API} C -- Store --> D[(Database)] C -- Broadcast --> E(WebSocket Server) E -- Push --> F[Navegador do Gestor] >>>>>>> b3ca2fa0a9321407a81a23c65366e37298548044