"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDOBDetails = exports.hosts = void 0;
exports.hosts = {
    US: 'https://function.zaius.app/twilio_segment',
    EU: 'https://function.eu1.ocp.optimizely.com/twilio_segment',
    AU: 'https://function.au1.ocp.optimizely.com/twilio_segment'
};
const getDOBDetails = (dob) => {
    if (dob === undefined || dob === null || dob === '') {
        return undefined;
    }
    const date = new Date(dob);
    if (isNaN(date.getTime())) {
        return undefined;
    }
    return {
        dob_year: date.getFullYear(), dob_month: date.getMonth() + 1, dob_day: date.getDate()
    };
};
exports.getDOBDetails = getDOBDetails;
//# sourceMappingURL=utils.js.map