How namer315/brillianterpmanagement works
This repository’s main product is a multi-tenant WhatsApp business messaging service: it accepts webhook events, processes messages and status updates, persists domain state, and exposes messaging and chat endpoints. The tree also contains a separate AI-agent API and a tenant-management web app, but their end-to-end behavior is not established by the sampled evidence. The graph emphasizes the evidenced webhook and messaging layers; many endpoint capabilities are visible in the tree but their call paths were not sampled.
Main entry points: WebhookBE.cs Webhook processor · MessageBE.cs Message handling · ContactBE.cs Contact handling · MessageVO.cs Message records
Components 22
API surfaces
- Webhook endpoint
BrilliantWhatsAppAPI/Endpoints/WebhookEP.cs
WhatsApp domain
- Webhook facade
WhatsAppFDM/WebhookFDM.cs - Webhook processor
WhatsAppBusiness/Webhooks/WebhookBE.cs - Message handling
WhatsAppBusiness/WhatsApp/MessageBE.cs - Free-text messaging
WhatsAppBusiness/WhatsApp/FreeTextBE.cs - Contact handling
WhatsAppBusiness/WhatsApp/ContactBE.cs
Persistence and tenancy
- Chat message DTO
WhatsAppData/DTO/Chat/ChatMessageDTO.cs - Webhook request DTO
WhatsAppData/DTO/Webhooks/WebhookDTO.cs - Message records
WhatsAppData/VO/WhatsApp/MessageVO.cs - Contact records
WhatsAppData/VO/WhatsApp/ContactVO.cs - Contact storage
WhatsAppData/DAO/ContactDAO.cs - Message storage
WhatsAppData/DAO/MessageDAO.cs - Tenant lookup
CommonData/Managers/TenantManager.cs - WhatsApp tenant lookup
WhatsAppData/Managers/WhatsAppTenantManager.cs - Repository operations
CommonData/DAO/RepositoryBase.cs - Database sessions
CommonData/Session/SessionFactoryGenerator.cs
AI agent
- AI agent API
BrilliantAIDBAgentAPI/Program.cs - AI business logic
AIDBAgentBusiness/AIBE.cs - DeepSeek integration
AIDBAgentBusiness/AIModels/DeepSeekBE.cs - DeepSeek payload
AIDBAgentBusiness/AIModels/DeepSeekPayloadBuilderBE.cs - AI database connection
AIDBAgentData/Session/AIDBAgentConnection.cs
Other components
- WhatsApp platform
Connections 23
- WhatsApp platform → Webhook endpoint: sends events
- Webhook endpoint → Webhook facade: dispatches to
BrilliantWhatsAppAPI/Endpoints/WebhookEP.cs - Webhook facade → Webhook processor: delegates to
WhatsAppFDM/WebhookFDM.cs - Webhook processor → Message handling: processes messages
WhatsAppBusiness/Webhooks/WebhookBE.cs - Webhook processor → Contact handling: processes contacts
WhatsAppBusiness/Webhooks/WebhookBE.cs - Webhook processor → Message records: updates records
WhatsAppBusiness/Webhooks/WebhookBE.cs - Webhook processor → Chat message DTO: builds chat events
WhatsAppBusiness/Webhooks/WebhookBE.cs - Webhook processor → Webhook request DTO: accepts payload
WhatsAppFDM/WebhookFDM.cs - Message handling → Message storage: persists messages
WhatsAppBusiness/WhatsApp/MessageBE.cs - Message handling → Message records: uses records
WhatsAppBusiness/WhatsApp/MessageBE.cs - Free-text messaging → Message handling: uses message handling
WhatsAppBusiness/WhatsApp/FreeTextBE.cs - Free-text messaging → Contact handling: uses contacts
WhatsAppBusiness/WhatsApp/FreeTextBE.cs - Contact handling → Contact storage: queries contacts
WhatsAppBusiness/WhatsApp/ContactBE.cs - Contact handling → Contact records: uses records
WhatsAppBusiness/WhatsApp/ContactBE.cs - Message records → Contact records: references contacts
WhatsAppData/VO/WhatsApp/MessageVO.cs - Chat message DTO → Message records: maps from
WhatsAppData/DTO/Chat/ChatMessageDTO.cs - Repository operations → Database sessions: obtains sessions
CommonData/DAO/RepositoryBase.cs - Tenant lookup → Repository operations: loads tenant data
- WhatsApp tenant lookup → Tenant lookup: resolves tenant
WhatsAppData/Managers/WhatsAppTenantManager.cs - WhatsApp tenant lookup → Repository operations: loads tenant record
- AI agent API → AI database connection: configures connection
BrilliantAIDBAgentAPI/Program.cs - AI business logic → DeepSeek integration: uses model
- DeepSeek integration → DeepSeek payload: builds request