"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTestUsers = exports.getTestUser = exports.smokeTestUsers = exports.testUsers = void 0;
exports.testUsers = {
    mainUser: {
        username: process.env.C8_USERNAME,
        password: process.env.C8_PASSWORD,
    },
    eleventhUser: {
        username: process.env.C8_USERNAME_TEST_11,
        password: process.env.C8_PASSWORD_TEST_11,
    },
    twelfthUser: {
        username: process.env.C8_USERNAME_TEST_12,
        password: process.env.C8_PASSWORD_TEST_12,
    },
    thirteenthUser: {
        username: process.env.C8_USERNAME_TEST_13,
        password: process.env.C8_PASSWORD_TEST_13,
    },
    fourteenthUser: {
        username: process.env.C8_USERNAME_TEST_14,
        password: process.env.C8_PASSWORD_TEST_14,
    },
    fifteenthUser: {
        username: process.env.C8_USERNAME_TEST_15,
        password: process.env.C8_PASSWORD_TEST_15,
    },
    sixteenthUser: {
        username: process.env.C8_USERNAME_TEST_16,
        password: process.env.C8_PASSWORD_TEST_16,
    },
    seventeenthUser: {
        username: process.env.C8_USERNAME_TEST_17,
        password: process.env.C8_PASSWORD_TEST_17,
    },
    eighteenthUser: {
        username: process.env.C8_USERNAME_TEST_18,
        password: process.env.C8_PASSWORD_TEST_18,
    },
    nineteenthUser: {
        username: process.env.C8_USERNAME_TEST_19,
        password: process.env.C8_PASSWORD_TEST_19,
    },
    twentiethUser: {
        username: process.env.C8_USERNAME_TEST_20,
        password: process.env.C8_PASSWORD_TEST_20,
    },
    twentyFirstUser: {
        username: process.env.C8_USERNAME_TEST_21,
        password: process.env.C8_PASSWORD_TEST_21,
    },
    twentySecondUser: {
        username: process.env.C8_USERNAME_TEST_22,
        password: process.env.C8_PASSWORD_TEST_22,
    },
    twentyThirdUser: {
        username: process.env.C8_USERNAME_TEST_23,
        password: process.env.C8_PASSWORD_TEST_23,
    },
    twentyFourthUser: {
        username: process.env.C8_USERNAME_TEST_24,
        password: process.env.C8_PASSWORD_TEST_24,
    },
    twentyFifthUser: {
        username: process.env.C8_USERNAME_TEST_25,
        password: process.env.C8_PASSWORD_TEST_25,
    },
    twentySixthUser: {
        username: process.env.C8_USERNAME_TEST_26,
        password: process.env.C8_PASSWORD_TEST_26,
    },
    twentySeventhUser: {
        username: process.env.C8_USERNAME_TEST_27,
        password: process.env.C8_PASSWORD_TEST_27,
    },
};
exports.smokeTestUsers = {
    mainUser: {
        username: process.env.C8_USERNAME,
        password: process.env.C8_PASSWORD,
    },
    thirteenthUser: {
        username: process.env.C8_USERNAME_TEST_13,
        password: process.env.C8_PASSWORD_TEST_13,
    },
    twentyFirstUser: {
        username: process.env.C8_USERNAME_TEST_21,
        password: process.env.C8_PASSWORD_TEST_21,
    },
};
function getTestUser(userKey) {
    const useMultiUsers = process.env.MULTI_USERS === 'true';
    if (!useMultiUsers || !userKey) {
        return exports.testUsers.mainUser;
    }
    return exports.testUsers[userKey] ?? exports.testUsers.mainUser;
}
exports.getTestUser = getTestUser;
function getTestUsers() {
    if (process.env.IS_AG === 'true' && process.env.MULTI_USERS === 'true') {
        return Object.values(exports.smokeTestUsers);
    }
    else if (process.env.MULTI_USERS === 'true') {
        return Object.values(exports.testUsers);
    }
    return [exports.testUsers.mainUser];
}
exports.getTestUsers = getTestUsers;
