Built motion from commit 96f8de6d.|2.6.3
[motion2.git] / server / api / userNotification / userNotification.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 _0x8448=['userNotification:','./userNotification.events','remove','update','emit','removeListener','register','length'];(function(_0x2e58c7,_0x23d092){var _0x26eb00=function(_0x343124){while(--_0x343124){_0x2e58c7['push'](_0x2e58c7['shift']());}};_0x26eb00(++_0x23d092);}(_0x8448,0x159));var _0x8844=function(_0x5c2c7c,_0xa7d3b1){_0x5c2c7c=_0x5c2c7c-0x0;var _0xea7ffe=_0x8448[_0x5c2c7c];return _0xea7ffe;};'use strict';var UserNotificationEvents=require(_0x8844('0x0'));var events=['save',_0x8844('0x1'),_0x8844('0x2')];function createListener(_0x4464fe,_0x30afb5){return function(_0x527a7e){_0x30afb5[_0x8844('0x3')](_0x4464fe,_0x527a7e);};}function removeListener(_0xdb8bfc,_0x598b53){return function(){UserNotificationEvents[_0x8844('0x4')](_0xdb8bfc,_0x598b53);};}exports[_0x8844('0x5')]=function(_0x3eac06){for(var _0x48b1b1=0x0,_0x3cea07=events[_0x8844('0x6')];_0x48b1b1<_0x3cea07;_0x48b1b1++){var _0x32e3e7=events[_0x48b1b1];var _0x513e1d=createListener(_0x8844('0x7')+_0x32e3e7,_0x3eac06);UserNotificationEvents['on'](_0x32e3e7,_0x513e1d);}};