"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ig_utilities_1 = require("@intelligentgraphics/ig.utilities");
exports.createNotificationCenterSubscription = function (notificationCenter, data) {
    var id = data.id === undefined ? ig_utilities_1.generateId() : data.id;
    var send = function (event, data) { return notificationCenter.send(id, event, data); };
    var destroy = function () { return notificationCenter.unsubscribe(id); };
    return {
        id: id,
        send: send,
        destroy: destroy,
    };
};
