"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.credentials = void 0;
require("./env-bootstrap");
const env_validator_1 = require("../utils/env-validator");
/**
 * Учётные данные тестовых пользователей из переменных окружения.
 * Секреты не хранятся в коде — только чтение из env.
 */
exports.credentials = {
    admin: {
        email: process.env.FEATURE === 'feature6'
            ? (0, env_validator_1.validateEnvVar)('DEMO_ADMIN_EMAIL', process.env.DEMO_ADMIN_EMAIL)
            : (0, env_validator_1.validateEnvVar)('DEV_ADMIN_EMAIL', process.env.DEV_ADMIN_EMAIL),
        password: process.env.FEATURE === 'feature6'
            ? (0, env_validator_1.validateEnvVar)('DEMO_ADMIN_PASSWORD', process.env.DEMO_ADMIN_PASSWORD)
            : (0, env_validator_1.validateEnvVar)('DEV_ADMIN_PASSWORD', process.env.DEV_ADMIN_PASSWORD),
    },
    client: {
        email: (0, env_validator_1.validateEnvVar)('DEV_CLIENT_EMAIL', process.env.DEV_CLIENT_EMAIL),
        password: (0, env_validator_1.validateEnvVar)('DEV_CLIENT_PASSWORD', process.env.DEV_CLIENT_PASSWORD),
    },
    bank: {
        email: (0, env_validator_1.validateEnvVar)('DEV_BANK_EMAIL', process.env.DEV_BANK_EMAIL),
        password: (0, env_validator_1.validateEnvVar)('DEV_BANK_PASSWORD', process.env.DEV_BANK_PASSWORD),
    },
    agent: {
        email: (0, env_validator_1.validateEnvVar)('DEV_AGENT_EMAIL', process.env.DEV_AGENT_EMAIL),
        password: (0, env_validator_1.validateEnvVar)('DEV_AGENT_PASSWORD', process.env.DEV_AGENT_PASSWORD),
    },
    debtor: {
        email: (0, env_validator_1.validateEnvVar)('DEV_DEBTOR_EMAIL', process.env.DEV_DEBTOR_EMAIL),
        password: (0, env_validator_1.validateEnvVar)('DEV_DEBTOR_PASSWORD', process.env.DEV_DEBTOR_PASSWORD),
    },
};
