"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fields_1 = require("./fields");
const functions_1 = require("./functions");
const action = {
    title: 'Sync to Pendo Segment',
    description: 'Sync Segment Engage Audience membership to a Pendo Segment by adding or removing visitors.',
    defaultSubscription: 'type = "identify" or type = "track"',
    fields: fields_1.fields,
    perform: (request, { payload, settings }) => {
        return (0, functions_1.send)(request, settings.region, [payload], false);
    },
    performBatch: (request, { payload, settings }) => {
        return (0, functions_1.send)(request, settings.region, payload, true);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map