"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildPerformer = buildPerformer;
const API_BASE_URL = 'https://mgln.ai';
function buildApiEndpoint(maiEventType) {
    return `${API_BASE_URL}/${maiEventType}`;
}
function buildPerformer(eventType) {
    const url = buildApiEndpoint(eventType);
    return async function emit(request, { payload, settings }) {
        payload.token = settings.pixelToken;
        return request(url, { method: 'post', json: payload });
    };
}
//# sourceMappingURL=utils.js.map