mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
feat(config): add Ozonetel admin credentials to TelephonyConfig
- adminUsername + adminPassword in ozonetel section - Masked in GET response, sentinel-stripped on update - Env seeds: OZONETEL_ADMIN_USERNAME, OZONETEL_ADMIN_PASSWORD - Used by supervisor barge/whisper/listen endpoints Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -46,6 +46,7 @@ export class TelephonyConfigService implements OnModuleInit {
|
||||
ozonetel: {
|
||||
...c.ozonetel,
|
||||
agentPassword: c.ozonetel.agentPassword ? '***masked***' : '',
|
||||
adminPassword: c.ozonetel.adminPassword ? '***masked***' : '',
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -68,6 +69,9 @@ export class TelephonyConfigService implements OnModuleInit {
|
||||
if (merged.ozonetel.agentPassword === '***masked***') {
|
||||
merged.ozonetel.agentPassword = current.ozonetel.agentPassword;
|
||||
}
|
||||
if (merged.ozonetel.adminPassword === '***masked***') {
|
||||
merged.ozonetel.adminPassword = current.ozonetel.adminPassword;
|
||||
}
|
||||
this.backup();
|
||||
this.writeFile(merged);
|
||||
this.cached = merged;
|
||||
|
||||
Reference in New Issue
Block a user