Built motion from commit e1760111.|2.6.18
[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 _0x0ea5=['length','userNotification:','./userNotification.events','save','remove','removeListener','register'];(function(_0x260570,_0x12cac2){var _0x1a2e22=function(_0x35f4af){while(--_0x35f4af){_0x260570['push'](_0x260570['shift']());}};_0x1a2e22(++_0x12cac2);}(_0x0ea5,0xfe));var _0x50ea=function(_0x4ef86f,_0x106f54){_0x4ef86f=_0x4ef86f-0x0;var _0x1b792e=_0x0ea5[_0x4ef86f];return _0x1b792e;};'use strict';var UserNotificationEvents=require(_0x50ea('0x0'));var events=[_0x50ea('0x1'),_0x50ea('0x2'),'update'];function createListener(_0x3ab24c,_0xfacd9a){return function(_0x39593b){_0xfacd9a['emit'](_0x3ab24c,_0x39593b);};}function removeListener(_0xc5a74c,_0x1822ab){return function(){UserNotificationEvents[_0x50ea('0x3')](_0xc5a74c,_0x1822ab);};}exports[_0x50ea('0x4')]=function(_0xbe1685){for(var _0x2720f6=0x0,_0x1a8d38=events[_0x50ea('0x5')];_0x2720f6<_0x1a8d38;_0x2720f6++){var _0xa73c2e=events[_0x2720f6];var _0x1d3eda=createListener(_0x50ea('0x6')+_0xa73c2e,_0xbe1685);UserNotificationEvents['on'](_0xa73c2e,_0x1d3eda);}};