Built motion from commit 85328c08.|2.5.50
[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 _0x898d=['length','./userNotification.events','save','update','emit','register'];(function(_0x50e9f5,_0x14e841){var _0x2023b9=function(_0x190f6f){while(--_0x190f6f){_0x50e9f5['push'](_0x50e9f5['shift']());}};_0x2023b9(++_0x14e841);}(_0x898d,0x16f));var _0xd898=function(_0x448f8,_0x2aa1d7){_0x448f8=_0x448f8-0x0;var _0xa73126=_0x898d[_0x448f8];return _0xa73126;};'use strict';var UserNotificationEvents=require(_0xd898('0x0'));var events=[_0xd898('0x1'),'remove',_0xd898('0x2')];function createListener(_0x4f8f61,_0x2d7357){return function(_0x2d8079){_0x2d7357[_0xd898('0x3')](_0x4f8f61,_0x2d8079);};}function removeListener(_0x3e7de0,_0x1e9f6f){return function(){UserNotificationEvents['removeListener'](_0x3e7de0,_0x1e9f6f);};}exports[_0xd898('0x4')]=function(_0x389b31){for(var _0x1e4b55=0x0,_0x207166=events[_0xd898('0x5')];_0x1e4b55<_0x207166;_0x1e4b55++){var _0xedfcd3=events[_0x1e4b55];var _0xf3a70a=createListener('userNotification:'+_0xedfcd3,_0x389b31);UserNotificationEvents['on'](_0xedfcd3,_0xf3a70a);}};