"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const properties_1 = require("../properties");
const functions_1 = require("../functions");
const action = {
    title: 'Sync Audience to CRM Data Segment',
    description: 'Drop users into the given CRM Data Segment',
    defaultSubscription: 'event = "Audience Entered"',
    fields: {
        external_id: { ...properties_1.external_id },
        pii_type: { ...properties_1.pii_type },
        email: { ...properties_1.email },
        enable_batching: { ...properties_1.enable_batching },
        event_name: { ...properties_1.event_name },
        batch_size: { ...properties_1.batch_size }
    },
    perform: async (request, { settings, payload, features }) => {
        return (0, functions_1.processPayload)({
            request,
            settings,
            payloads: [payload],
            features
        });
    },
    performBatch: async (request, { settings, payload, features }) => {
        return (0, functions_1.processPayload)({
            request,
            settings,
            payloads: payload,
            features
        });
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map