"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.agent = void 0;
const https_1 = __importDefault(require("https"));
const crypto_1 = require("crypto");
/**
* @namespace constants
* @description Constants used in the application.
*/
/**
* HTTPS Agent for making requests with legacy SSL support.
*
* @memberof constants
* @constant
* @type {https.Agent}
* @example
* import { agent } from './utils/constants/constants';
* @example
* export const agent: https.Agent = new https.Agent({
rejectUnauthorized: false,
secureOptions: constants.SSL_OP_LEGACY_SERVER_CONNECT, // Added for legacy SSL support
});
*/
exports.agent = new https_1.default.Agent({
rejectUnauthorized: false,
secureOptions: crypto_1.constants.SSL_OP_LEGACY_SERVER_CONNECT, // Added for legacy SSL support
});