"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const t1_properties_1 = require("../t1-properties");
const action = {
    title: 'Update Multiple Customer Profiles’ Audiences',
    description: 'This updates audiences for multiple customer profiles.',
    fields: {
        data: {
            label: 'Data item to change customer profile audiences',
            description: 'An array of JSON objects that contains customer profile identifier and list of audiences to associate and dissociate with the indicated customer profile. Customer profile ID and at least one audience ID are required.',
            type: 'object',
            multiple: true,
            properties: {
                customerProfileId: { ...t1_properties_1.customerProfileId },
                adds: { ...t1_properties_1.addAudienceId },
                deletes: { ...t1_properties_1.deleteAudienceId }
            },
            required: true
        }
    },
    perform: (request, { payload }) => {
        return request(`https://integration.talon.one/segment/customer_profiles/audiences`, {
            method: 'put',
            json: {
                data: payload.data
            }
        });
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map