require('./notification/endpoint-notification')
require('./exchange/endpoint-exchange')

const dom = require('@unitybase/dom')
const notificationMixin = require('./notification/notificationMixin')
dom.mixins.registerMixinModule('notification', notificationMixin)

/**
 * UnityBase messaging subsystem
 * @module @unitybase/messaging
 */
module.exports = {
  /**
   * Description
   * @type {module:exchange}
   */
  exchange: require('./exchange'),

  /**
   * Description
   * @type {module:notification}
   */
  notification: require('./notification')
}