"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.config = void 0;
const dotenv = __importStar(require("dotenv"));
const path = __importStar(require("path"));
// Load the .env file from the ~/.protege file
dotenv.config({
    path: path.join(process.env.HOME ?? '~', '.protege'),
});
/**
 * Config file
 */
exports.config = {
    env: {
        environment: process.env.NODE_ENV ?? 'development',
        tenant_name: process.env.TENANT_NAME ?? 'dev',
    },
    protege: {
        endpoint: process.env.PROTEGE_ENGINE_ENDPOINT ?? 'http://localhost:8081/v3/graphql',
        apiKey: process.env.PROTEGE_ENGINE_API_KEY,
    },
    auth0: {
        domain: process.env.AUTH0_DOMAIN ?? 'dev-76hie6ffyq46jxup.us.auth0.com',
        clientId: process.env.AUTH0_CLIENT_ID ?? 'CWqXKzcqnD7vRPBAc5pkjtpHy5nRzydC',
        audience: process.env.AUTH0_AUDIENCE ?? 'https://engine.dev.teachprotege.ai',
        tokens: process.env.AUTH0_TOKENS,
    },
};
