Built motion from commit 1efd3d96.|2.6.31
[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 _0x169d=['emit','register','length','userNotification:','./userNotification.events','save','remove'];(function(_0x1d5311,_0x467140){var _0x382f7e=function(_0x1eb01c){while(--_0x1eb01c){_0x1d5311['push'](_0x1d5311['shift']());}};_0x382f7e(++_0x467140);}(_0x169d,0x18c));var _0xd169=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x169d[_0x321bb2];return _0x9c12ed;};'use strict';var UserNotificationEvents=require(_0xd169('0x0'));var events=[_0xd169('0x1'),_0xd169('0x2'),'update'];function createListener(_0x31ae84,_0x2eb076){return function(_0x4253b4){_0x2eb076[_0xd169('0x3')](_0x31ae84,_0x4253b4);};}function removeListener(_0x4f997f,_0x356b85){return function(){UserNotificationEvents['removeListener'](_0x4f997f,_0x356b85);};}exports[_0xd169('0x4')]=function(_0x43e3ab){for(var _0x5d1d23=0x0,_0x33e8e0=events[_0xd169('0x5')];_0x5d1d23<_0x33e8e0;_0x5d1d23++){var _0xf5c0bc=events[_0x5d1d23];var _0x222d5f=createListener(_0xd169('0x6')+_0xf5c0bc,_0x43e3ab);UserNotificationEvents['on'](_0xf5c0bc,_0x222d5f);}};