🔐 Gateway & Multi-Tenant RBAC Routing
▶ SYSTEM START / REQ
[API GATEWAY & AUTH SERVICE]
Intercept Inbound HTTP / WebSocket / TCP Connection
✖ HTTP 401 UNAUTHORIZED
[RBAC RESOLVER & ROLE CHECK]
Extract Tenant ID, Role & Permissions Claims from Token
🚨 24/7 Alarm Control & Monitoring CAD System (ACMS)
[TCP SOCKET LISTENER ENGINE]
Listen on Port 6051 (AES-IntelliNet INCC Target)
[INGESTION BUFFER]
Receive Inbound Byte Stream from Physical Receiver
Packet == 0x53 ('S' Link Check)?
[HEARTBEAT RESPONDER]
Send "\n00 OKAY @\r"
Update Ingestion Health Timestamp in DB
[ZERO-LOSS PROTOCOL ACK]
Emit "\n00 OKAY @\r" to INCC Socket
Flush Raw Frame to Disk (Append-Only Log)
[ADEMCO 685 CONTACT ID PARSER]
Tokenize: ACCT, Format 18, Qualifier, Code, Partition, Zone
[EVENT SANITIZER]
Extract Event Code (e.g. 110 Fire) & Zone (e.g. C001)
Qualifier == 'R' (Restoral)?
[AUTO-RESTORAL ENGINE]
Auto-Clear Active Alarm in Queue
Log Restoral to Incident History
[DEDUPLICATION ENGINE]
Compute Hash: MD5(ACCT + EventCode + ZoneNumber)
Exists in Redis (Window < 5s)?
[STORM SUPPRESSION]
Increment Duplicate Suppression Counter
Suppress Broadcast to Dispatch Board
[PROPERTY CROSSWALK RESOLVER]
Resolve CSID (1001) -> Building (Shirke Mhada 5)
Resolve Zone (001) -> Device (Floor 3 Optical Smoke #04)
Panel on Soak / Test Mode?
[SOAK TEST RECORDER]
Record Signal as 'TEST_SUPPRESSED'
Do NOT Route to Live CAD Board
[INCIDENT CREATION & QUEUE PUSH]
Insert Incident into DB (Status: ACTIVE_NEW)
Publish to Redis Pub/Sub: channel 'alarms:live'
[WEBSOCKET LIVE BROADCAST]
Push to React CAD Dispatcher Queue
Trigger Red Flashing Alert & Emergency Siren Tone
[OPERATOR CAD CLAIM LOCK]
Operator Clicks [CLAIM] -> Atomic Redis Lock Acquired
Other Operators Locked Out (Prevents Double Dispatch)
✔ SOP DISPATCH & AUDIT TRAIL CLOSE
🏛️ Central Property Master Core
💾 POSTGRESQL PROPERTY REPOSITORY
• properties_master (Address, GPS, Height, Floors)
• property_contacts (Keyholder Call Priority Tree)
• municipal_town_codes (Police & Fire PSAP Numbers)
• subscriber_panels (INCC CSID 4-digit Hex IDs)
• panel_zones (Physical Loop to Room Sensor Mappings)
📋 Commercial SaaS Audit & Defect Management Suite
[SAAS TENANT CONTEXT LOAD]
Customer Logs In (Building Owner / Facility Manager)
Stripe Subscription Active?
[PAYWALL / STRIPE CHECKOUT]
Select Tier (Pro / Enterprise)
Webhook Activates Tenant Account
[PROPERTY REGISTRY INTERACTION]
Select or Onboard Building in Shared Property Master
(Save Height, 14 Floors, Residential Occupancy, Staircases)
[PHYSICAL ASSET TAGGING MODULE]
Catalog Extinguishers, Hydrants, Sprinklers, Diesel Pumps
Generate QR Codes & Set Hydrostatic Test Expiry Dates
[AUDIT PLANNING & SCHEDULING]
Select Template (NFPA 101 / National Building Code)
Assign Certified Auditor & Schedule Planned Date
[MOBILE / TABLET FIELD EXECUTION]
Auditor Walks Floors with Tablet (Offline-Ready PWA)
Check Fire Doors, Emergency Lighting, Pump Pressures
Checklist Item Meets Safety Standard?
[RECORD PASS]
Mark Item as PASS
Proceed to Next Point
[RECORD FAILURE]
Mark Item as FAIL
Trigger Camera & Geotag
[GEOTAGGED EVIDENCE CAPTURE]
Snap Defect Photo -> Draw Red Circle Annotation
Upload to S3 Storage & Set Severity (CRITICAL)
[COMPLIANCE SCORING ENGINE]
Score = (Passed Weighted / Total Applicable Weight) * 100
Compile Deficiencies Register
Any Critical Life-Safety Deficiencies?
[CAPA WORK ORDER DISPATCH]
Notify Facility Maintenance Contractor
Generate Repair Tickets with Deadlines
[CONTRACTOR RECTIFICATION]
Contractor Repairs Defect on Site
Uploads "Rectification Proof Photo"
[AUDITOR RE-INSPECTION SIGN-OFF]
Verify Rectification Photo Proof
Close Work Order & Recalculate Final Score
Final Score >= 80% Compliance?
✖ NON-COMPLIANT FAIL
✔ CERTIFIED & ISSUED PDF SEAL