Built motion from commit 3d6333b4.|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 _0xcd6f=['remove','update','emit','register','length','userNotification:','./userNotification.events','save'];(function(_0x403606,_0x26a6d5){var _0x394797=function(_0x15e474){while(--_0x15e474){_0x403606['push'](_0x403606['shift']());}};_0x394797(++_0x26a6d5);}(_0xcd6f,0x1be));var _0xfcd6=function(_0x2afbb7,_0x81941d){_0x2afbb7=_0x2afbb7-0x0;var _0x4a258a=_0xcd6f[_0x2afbb7];return _0x4a258a;};'use strict';var UserNotificationEvents=require(_0xfcd6('0x0'));var events=[_0xfcd6('0x1'),_0xfcd6('0x2'),_0xfcd6('0x3')];function createListener(_0x4fa2ab,_0x57ec72){return function(_0x5ea9ac){_0x57ec72[_0xfcd6('0x4')](_0x4fa2ab,_0x5ea9ac);};}function removeListener(_0xcc6d74,_0x5dc3da){return function(){UserNotificationEvents['removeListener'](_0xcc6d74,_0x5dc3da);};}exports[_0xfcd6('0x5')]=function(_0xa68b0e){for(var _0x679820=0x0,_0x30b738=events[_0xfcd6('0x6')];_0x679820<_0x30b738;_0x679820++){var _0x50976b=events[_0x679820];var _0x45d7a8=createListener(_0xfcd6('0x7')+_0x50976b,_0xa68b0e);UserNotificationEvents['on'](_0x50976b,_0x45d7a8);}};