feat: add telephonyEnabled to ui-flags endpoint

TELEPHONY_ENABLED env var (default true). When set to false, frontend
hides call center nav and shows CRM-only mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-21 16:38:18 +05:30
parent 99954c1ff2
commit ac76ef5487

View File

@@ -67,6 +67,7 @@ export class SetupStateController {
uiFlags() { uiFlags() {
return { return {
setupManaged: process.env.HELIX_SETUP_MANAGED === 'true', setupManaged: process.env.HELIX_SETUP_MANAGED === 'true',
telephonyEnabled: process.env.TELEPHONY_ENABLED !== 'false', // default true
}; };
} }
} }