# jigrra-0005/support24x7 architecture

> Architecture diagram of the GitHub repository jigrra-0005/support24x7, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jigrra-0005/support24x7
- Repository: https://github.com/jigrra-0005/support24x7

## Overview

Support24x7 is a support-ticket system with an Angular/Capacitor client and an ASP.NET API. Users authenticate, submit and follow tickets, and support staff administer ticket workflows; chat, notifications, attachments, knowledge-base content, SLA policies, and reports are additional product areas visible in the source tree. The API separates HTTP controllers from domain services and persistence, with SignalR hubs for real-time features. Several client and backend feature implementations are listed but not excerpted, so their connections are not asserted unless the source index or excerpts support them.

Main entry points: [`SupportAPI/Controllers/TicketsController.cs`](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/TicketsController.cs) (Ticket endpoints), [`SupportAPI/Data/AppDbContext.cs`](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Data/AppDbContext.cs) (Application data model), [`SupportAPI/Controllers/AdminController.cs`](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AdminController.cs) (Admin endpoints), [`SupportAPI/Services/TicketService.cs`](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/TicketService.cs) (Ticket workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client application"]
  node_clientapp["Angular client<br/>[app.component.ts]"]
  node_routing["Role-based routes"]
  node_authclient["Authentication client<br/>[auth.service.ts]"]
  node_ticketui["Ticket workflows"]
  node_chatui["Chat interface<br/>[chat.component.ts]"]
  node_knowledgeui["Knowledge base"]
  node_adminui["Admin tools"]
end

subgraph group_api["API endpoints"]
  node_ticketapi["Ticket endpoints"]
  node_authapi["Authentication endpoints<br/>[AuthController.cs]"]
  node_adminapi["Admin endpoints<br/>[AdminController.cs]"]
  node_attachmentapi["Attachment endpoints"]
  node_chatapi["Chat endpoints<br/>[ChatController.cs]"]
  node_runtime["API runtime setup<br/>[Program.cs]"]
end

subgraph group_domain["Services and data"]
  node_ticketservice["Ticket workflows<br/>[TicketService.cs]"]
  node_authservice["Identity and access<br/>[AuthService.cs]"]
  node_chatservice["Chat service<br/>[ChatService.cs]"]
  node_notifications["Notifications and email"]
  node_filestorage["File storage"]
  node_eventlogger["User event logging<br/>[UserEventLogger.cs]"]
  node_dbcontext["Application data model<br/>[AppDbContext.cs]"]
end

subgraph group_realtime["Real-time and integrations"]
  node_signalrclient["SignalR client<br/>[signalr.service.ts]"]
  node_chathub["Chat hub<br/>[ChatHub.cs]"]
  node_notificationhub["Notification hub<br/>[NotificationHub.cs]"]
  node_email["Email service<br/>[EmailService.cs]"]
end

node_user(("Support users"))
node_database[("PostgreSQL")]

node_user -->|"uses"| node_clientapp
node_clientapp -->|"navigates via"| node_routing
node_authclient -.->|"HTTP requests"| node_authapi
node_ticketui -.->|"HTTP requests"| node_ticketapi
node_chatui -.->|"HTTP requests"| node_chatapi
node_knowledgeui -.->|"loads content"| node_ticketapi
node_adminui -.->|"admin requests"| node_adminapi
node_ticketapi -->|"calls"| node_ticketservice
node_ticketapi -->|"dispatches"| node_notifications
node_ticketapi -->|"sends email"| node_email
node_ticketapi -->|"publishes updates"| node_notificationhub
node_ticketapi -->|"logs events"| node_eventlogger
node_authapi -->|"calls"| node_authservice
node_authapi -->|"logs events"| node_eventlogger
node_adminapi -->|"manages users"| node_authservice
node_adminapi -->|"queries tickets"| node_ticketservice
node_adminapi -->|"queries data"| node_dbcontext
node_adminapi -->|"logs events"| node_eventlogger
node_attachmentapi -->|"updates tickets"| node_ticketservice
node_attachmentapi -->|"stores files"| node_filestorage
node_attachmentapi -->|"notifies users"| node_notifications
node_attachmentapi -->|"logs events"| node_eventlogger
node_chatapi -->|"calls"| node_chatservice
node_chatapi -->|"logs events"| node_eventlogger
node_chatservice -->|"reads and writes"| node_dbcontext
node_ticketservice -->|"reads and writes"| node_dbcontext
node_authservice -->|"reads and writes"| node_dbcontext
node_notifications -->|"reads and writes"| node_dbcontext
node_notifications -->|"publishes"| node_notificationhub
node_ticketservice -->|"uses"| node_filestorage
node_dbcontext -->|"persists entities"| node_database
node_runtime -->|"configures"| node_dbcontext
node_runtime -->|"registers hubs"| node_chathub
node_runtime -->|"registers hubs"| node_notificationhub
node_signalrclient -->|"connects"| node_notificationhub
node_signalrclient -->|"connects"| node_chathub
node_clientapp -->|"starts connection"| node_signalrclient

click node_clientapp "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/app.component.ts"
click node_routing "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/app-routing.module.ts"
click node_authclient "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/services/auth.service.ts"
click node_ticketui "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/ticket-detail/ticket-detail.component.ts"
click node_chatui "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/chat/chat.component.ts"
click node_knowledgeui "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/knowledge-base/knowledge-base.component.ts"
click node_adminui "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/admin-dashboard/admin-dashboard.component.ts"
click node_ticketapi "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/TicketsController.cs"
click node_authapi "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AuthController.cs"
click node_adminapi "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AdminController.cs"
click node_attachmentapi "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AttachmentsController.cs"
click node_chatapi "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/ChatController.cs"
click node_ticketservice "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/TicketService.cs"
click node_authservice "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/AuthService.cs"
click node_chatservice "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/ChatService.cs"
click node_notifications "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/NotificationService.cs"
click node_filestorage "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/FileStorageService.cs"
click node_eventlogger "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/UserEventLogger.cs"
click node_dbcontext "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Data/AppDbContext.cs"
click node_signalrclient "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/services/signalr.service.ts"
click node_chathub "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Hubs/ChatHub.cs"
click node_notificationhub "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Hubs/NotificationHub.cs"
click node_email "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/EmailService.cs"
click node_runtime "https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Program.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_clientapp,node_routing,node_authclient,node_ticketui,node_chatui,node_knowledgeui,node_adminui,node_user toneBlue
class node_ticketapi,node_authapi,node_adminapi,node_attachmentapi,node_chatapi,node_runtime,node_database toneAmber
class node_ticketservice,node_authservice,node_chatservice,node_notifications,node_filestorage,node_eventlogger,node_dbcontext toneMint
class node_signalrclient,node_chathub,node_notificationhub,node_email toneRose
```

## Components

### Client application

- [Angular client](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/app.component.ts): `SupportAPI/ClientApp/src/app/app.component.ts`
- [Role-based routes](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/app-routing.module.ts): `SupportAPI/ClientApp/src/app/app-routing.module.ts`
- [Authentication client](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/services/auth.service.ts): `SupportAPI/ClientApp/src/app/services/auth.service.ts`
- [Ticket workflows](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/ticket-detail/ticket-detail.component.ts): `SupportAPI/ClientApp/src/app/ticket-detail/ticket-detail.component.ts`
- [Chat interface](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/chat/chat.component.ts): `SupportAPI/ClientApp/src/app/chat/chat.component.ts`
- [Knowledge base](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/knowledge-base/knowledge-base.component.ts): `SupportAPI/ClientApp/src/app/knowledge-base/knowledge-base.component.ts`
- [Admin tools](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/admin-dashboard/admin-dashboard.component.ts): `SupportAPI/ClientApp/src/app/admin-dashboard/admin-dashboard.component.ts`

### API endpoints

- [Ticket endpoints](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/TicketsController.cs): `SupportAPI/Controllers/TicketsController.cs`
- [Authentication endpoints](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AuthController.cs): `SupportAPI/Controllers/AuthController.cs`
- [Admin endpoints](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AdminController.cs): `SupportAPI/Controllers/AdminController.cs`
- [Attachment endpoints](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/AttachmentsController.cs): `SupportAPI/Controllers/AttachmentsController.cs`
- [Chat endpoints](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Controllers/ChatController.cs): `SupportAPI/Controllers/ChatController.cs`
- [API runtime setup](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Program.cs): `SupportAPI/Program.cs`

### Services and data

- [Ticket workflows](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/TicketService.cs): `SupportAPI/Services/TicketService.cs`
- [Identity and access](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/AuthService.cs): `SupportAPI/Services/AuthService.cs`
- [Chat service](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/ChatService.cs): `SupportAPI/Services/ChatService.cs`
- [Notifications and email](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/NotificationService.cs): `SupportAPI/Services/NotificationService.cs`
- [File storage](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/FileStorageService.cs): `SupportAPI/Services/FileStorageService.cs`
- [User event logging](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/UserEventLogger.cs): `SupportAPI/Services/UserEventLogger.cs`
- [Application data model](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Data/AppDbContext.cs): `SupportAPI/Data/AppDbContext.cs`

### Real-time and integrations

- [SignalR client](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/ClientApp/src/app/services/signalr.service.ts): `SupportAPI/ClientApp/src/app/services/signalr.service.ts`
- [Chat hub](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Hubs/ChatHub.cs): `SupportAPI/Hubs/ChatHub.cs`
- [Notification hub](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Hubs/NotificationHub.cs): `SupportAPI/Hubs/NotificationHub.cs`
- [Email service](https://github.com/jigrra-0005/support24x7/blob/main/SupportAPI/Services/EmailService.cs): `SupportAPI/Services/EmailService.cs`

### Other components

- **Support users**
- **PostgreSQL**

## Connections

- Support users → Angular client: uses (evidence: `SupportAPI/ClientApp/src/app/app.component.ts`)
- Angular client → Role-based routes: navigates via (evidence: `SupportAPI/ClientApp/src/app/app.component.ts`)
- Authentication client → Authentication endpoints: HTTP requests
- Ticket workflows → Ticket endpoints: HTTP requests
- Chat interface → Chat endpoints: HTTP requests
- Knowledge base → Ticket endpoints: loads content
- Admin tools → Admin endpoints: admin requests
- Ticket endpoints → Ticket workflows: calls (evidence: `SupportAPI/Controllers/TicketsController.cs`)
- Ticket endpoints → Notifications and email: dispatches (evidence: `SupportAPI/Controllers/TicketsController.cs`)
- Ticket endpoints → Email service: sends email (evidence: `SupportAPI/Controllers/TicketsController.cs`)
- Ticket endpoints → Notification hub: publishes updates (evidence: `SupportAPI/Controllers/TicketsController.cs`)
- Ticket endpoints → User event logging: logs events (evidence: `SupportAPI/Controllers/TicketsController.cs`)
- Authentication endpoints → Identity and access: calls (evidence: `SupportAPI/Controllers/AuthController.cs`)
- Authentication endpoints → User event logging: logs events (evidence: `SupportAPI/Controllers/AuthController.cs`)
- Admin endpoints → Identity and access: manages users (evidence: `SupportAPI/Controllers/AdminController.cs`)
- Admin endpoints → Ticket workflows: queries tickets (evidence: `SupportAPI/Controllers/AdminController.cs`)
- Admin endpoints → Application data model: queries data (evidence: `SupportAPI/Controllers/AdminController.cs`)
- Admin endpoints → User event logging: logs events (evidence: `SupportAPI/Controllers/AdminController.cs`)
- Attachment endpoints → Ticket workflows: updates tickets (evidence: `SupportAPI/Controllers/AttachmentsController.cs`)
- Attachment endpoints → File storage: stores files (evidence: `SupportAPI/Controllers/AttachmentsController.cs`)
- Attachment endpoints → Notifications and email: notifies users (evidence: `SupportAPI/Controllers/AttachmentsController.cs`)
- Attachment endpoints → User event logging: logs events (evidence: `SupportAPI/Controllers/AttachmentsController.cs`)
- Chat endpoints → Chat service: calls (evidence: `SupportAPI/Controllers/ChatController.cs`)
- Chat endpoints → User event logging: logs events (evidence: `SupportAPI/Controllers/ChatController.cs`)
- Chat service → Application data model: reads and writes (evidence: `SupportAPI/Services/ChatService.cs`)
- Ticket workflows → Application data model: reads and writes (evidence: `SupportAPI/Services/TicketService.cs`)
- Identity and access → Application data model: reads and writes (evidence: `SupportAPI/Services/AuthService.cs`)
- Notifications and email → Application data model: reads and writes (evidence: `SupportAPI/Services/NotificationService.cs`)
- Notifications and email → Notification hub: publishes (evidence: `SupportAPI/Services/NotificationService.cs`)
- Ticket workflows → File storage: uses (evidence: `SupportAPI/Services/TicketService.cs`)
- Application data model → PostgreSQL: persists entities
- API runtime setup → Application data model: configures (evidence: `SupportAPI/Program.cs`)
- API runtime setup → Chat hub: registers hubs (evidence: `SupportAPI/Program.cs`)
- API runtime setup → Notification hub: registers hubs (evidence: `SupportAPI/Program.cs`)
- SignalR client → Notification hub: connects (evidence: `SupportAPI/ClientApp/src/app/services/signalr.service.ts`)
- SignalR client → Chat hub: connects (evidence: `SupportAPI/ClientApp/src/app/services/signalr.service.ts`)
- Angular client → SignalR client: starts connection (evidence: `SupportAPI/ClientApp/src/app/app.component.ts`)
