Built motion from commit 994c64e1.|2.6.1
[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 _0x26eb=['userNotification:','./userNotification.events','save','remove','update','emit','removeListener','register','length'];(function(_0x3a218c,_0x4113b9){var _0xae4158=function(_0x217800){while(--_0x217800){_0x3a218c['push'](_0x3a218c['shift']());}};_0xae4158(++_0x4113b9);}(_0x26eb,0xac));var _0xb26e=function(_0x214e6f,_0x4e021b){_0x214e6f=_0x214e6f-0x0;var _0x3aa391=_0x26eb[_0x214e6f];return _0x3aa391;};'use strict';var UserNotificationEvents=require(_0xb26e('0x0'));var events=[_0xb26e('0x1'),_0xb26e('0x2'),_0xb26e('0x3')];function createListener(_0x270e69,_0x31f322){return function(_0x2433e6){_0x31f322[_0xb26e('0x4')](_0x270e69,_0x2433e6);};}function removeListener(_0x4b1f3c,_0x13c112){return function(){UserNotificationEvents[_0xb26e('0x5')](_0x4b1f3c,_0x13c112);};}exports[_0xb26e('0x6')]=function(_0x4c96ee){for(var _0x3a8c26=0x0,_0x2224b9=events[_0xb26e('0x7')];_0x3a8c26<_0x2224b9;_0x3a8c26++){var _0x3eb532=events[_0x3a8c26];var _0x5a7e47=createListener(_0xb26e('0x8')+_0x3eb532,_0x4c96ee);UserNotificationEvents['on'](_0x3eb532,_0x5a7e47);}};