"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.endpointUrl = exports.endpointApiKey = void 0;
const stgRegex = new RegExp(/^stg_/, 'i');
const endpointApiKey = (apiKey) => {
    return apiKey.replace(stgRegex, '');
};
exports.endpointApiKey = endpointApiKey;
const endpointUrl = (apiKey) => {
    const staging = stgRegex.test(apiKey);
    return staging ? 'https://instaging.accoil.com/segment' : 'https://in.accoil.com/segment';
};
exports.endpointUrl = endpointUrl;
//# sourceMappingURL=utils.js.map