"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class BaseRequestInterface {
    static async track(request, settings, payload) {
        return await request(this.baseURL + '/events/batch', {
            method: 'POST',
            json: [payload],
            headers: {
                apikey: settings.apikey,
                p: this.platform
            }
        });
    }
    static async batchTrack(request, settings, payload) {
        return await request(this.baseURL + '/events/batch', {
            method: 'POST',
            json: payload,
            headers: {
                apikey: settings.apikey,
                p: this.platform
            }
        });
    }
    static async identify(request, settings, payload) {
        return await request(this.baseURL + '/identify', {
            method: 'PUT',
            json: payload,
            headers: {
                apikey: settings.apikey,
                p: this.platform
            }
        });
    }
}
BaseRequestInterface.baseURL = 'https://main-api.nudgenow.com/api/integration/segment';
BaseRequestInterface.platform = '17';
exports.default = BaseRequestInterface;
//# sourceMappingURL=baseRequestInterface.js.map