"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const regional_endpoints_1 = require("../regional-endpoints");
const common_fields_1 = require("../common-fields");
const action = {
    title: 'Send Event',
    description: 'Send entire event payload to Gainsight PX',
    fields: { ...common_fields_1.commonFields },
    perform: (request, { payload, settings }) => {
        return request((0, regional_endpoints_1.getEndpointByRegion)('track', settings.dataCenter), {
            method: 'post',
            json: payload.segmentEvent
        });
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map