Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 1x 1x 1x 2x 1x | import * as dotenv from 'dotenv';
dotenv.config();
interface LogChainConfigs {
readonly LogChainRootAdminId: number;
readonly LogChainAdminRoleId: number;
readonly LogChainCompanyId: number;
readonly SaeslCompanyId: number[];
readonly MaxPdfAttempts: number;
readonly portalUrl: string;
readonly supportEmails: string[];
}
/**
* The LogChain configuration.
*/
const LogChainConfigs: LogChainConfigs = {
LogChainRootAdminId: +(process.env.LOGCHAIN_ROOT_ADMIN_ID ?? 0),
LogChainAdminRoleId: +(process.env.LOGCHAIN_ADMIN_ROLE_ID ?? 20),
LogChainCompanyId: +(process.env.LOGCHAIN_COMPANY_ID ?? 0),
SaeslCompanyId: process.env.SAESL_COMPANY_ID?.split(',').map(id => +id) ?? [Number(process.env.LOGCHAIN_COMPANY_ID)],
MaxPdfAttempts: +(process.env.LOGCHAIN_MAX_PDF_ATTEMPTS ?? 5),
portalUrl: process.env.PORTAL_URL ?? '',
supportEmails: process.env.LOGCHAIN_SUPPORT_EMAILS?.split(',') ?? ['reynald.vizconde@dirox.net'],
};
export {LogChainConfigs};
|