"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SEGMENT_USER_AGENT = exports.DEFAULT_VOICEOPS_BASE_URL = void 0;
exports.normalizeVoiceopsBaseUrl = normalizeVoiceopsBaseUrl;
exports.getVoiceopsAuthenticationEndpoint = getVoiceopsAuthenticationEndpoint;
exports.getVoiceopsCallsEndpoint = getVoiceopsCallsEndpoint;
exports.DEFAULT_VOICEOPS_BASE_URL = 'https://projectfrontline.net';
function normalizeVoiceopsBaseUrl(baseUrl) {
    return (baseUrl ?? exports.DEFAULT_VOICEOPS_BASE_URL).trim().replace(/\/+$/, '');
}
function getVoiceopsAuthenticationEndpoint(baseUrl) {
    return `${normalizeVoiceopsBaseUrl(baseUrl)}/frontline-api/integrations/v1/segment/authentication`;
}
function getVoiceopsCallsEndpoint(baseUrl) {
    return `${normalizeVoiceopsBaseUrl(baseUrl)}/frontline-api/integrations/v1/segment/calls`;
}
exports.SEGMENT_USER_AGENT = 'Segment';
//# sourceMappingURL=constants.js.map