Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / notification / notification.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x882e=['removeListener','notification:','./notification.events','save','remove','update','emit'];(function(_0x3ba4b0,_0x467a21){var _0x5e2c28=function(_0x2d3df1){while(--_0x2d3df1){_0x3ba4b0['push'](_0x3ba4b0['shift']());}};_0x5e2c28(++_0x467a21);}(_0x882e,0x6b));var _0xe882=function(_0x572f23,_0x19e1e0){_0x572f23=_0x572f23-0x0;var _0x1fab90=_0x882e[_0x572f23];return _0x1fab90;};'use strict';var NotificationEvents=require(_0xe882('0x0'));var events=[_0xe882('0x1'),_0xe882('0x2'),_0xe882('0x3')];function createListener(_0x46829d,_0x574fc9){return function(_0x1fdbe2){_0x574fc9[_0xe882('0x4')](_0x46829d,_0x1fdbe2);};}function removeListener(_0x3835bf,_0x5d9904){return function(){NotificationEvents[_0xe882('0x5')](_0x3835bf,_0x5d9904);};}exports['register']=function(_0x4f7e88){for(var _0x4106dd=0x0,_0x50a9ca=events['length'];_0x4106dd<_0x50a9ca;_0x4106dd++){var _0x569111=events[_0x4106dd];var _0x1fd492=createListener(_0xe882('0x6')+_0x569111,_0x4f7e88);NotificationEvents['on'](_0x569111,_0x1fd492);}};