"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fields_1 = require("../fields");
const common_1 = require("../common");
const action = {
    title: 'Submit Identify Event',
    description: 'Send your Segment Identify events to SalesWings to use them for tagging, scoring and prioritising your leads.',
    defaultSubscription: 'type = "identify"',
    fields: {
        kind: (0, fields_1.kind)('Identify'),
        data: (0, fields_1.data)({ '@path': '$.traits.email' }),
        userID: fields_1.userID,
        anonymousID: fields_1.anonymousID,
        email: { ...fields_1.email, required: true },
        url: fields_1.url,
        referrerUrl: fields_1.referrerUrl,
        userAgent: fields_1.userAgent,
        timestamp: fields_1.timestamp,
        values: (0, fields_1.values)({ '@path': '$.traits' })
    },
    perform: (0, common_1.perform)('identify'),
    performBatch: (0, common_1.performBatch)('identify')
};
exports.default = action;
//# sourceMappingURL=index.js.map