Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / notification / notification.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 _0x1728=['removeListener','register','length','./notification.events','remove','update','emit'];(function(_0x55508b,_0x169287){var _0x40181a=function(_0x5368c8){while(--_0x5368c8){_0x55508b['push'](_0x55508b['shift']());}};_0x40181a(++_0x169287);}(_0x1728,0x1b5));var _0x8172=function(_0x5b95c1,_0x308d99){_0x5b95c1=_0x5b95c1-0x0;var _0x3b6bae=_0x1728[_0x5b95c1];return _0x3b6bae;};'use strict';var NotificationEvents=require(_0x8172('0x0'));var events=['save',_0x8172('0x1'),_0x8172('0x2')];function createListener(_0xbd4eb9,_0x1eb37f){return function(_0x1a51b1){_0x1eb37f[_0x8172('0x3')](_0xbd4eb9,_0x1a51b1);};}function removeListener(_0x1476bc,_0x3cac9c){return function(){NotificationEvents[_0x8172('0x4')](_0x1476bc,_0x3cac9c);};}exports[_0x8172('0x5')]=function(_0xf3e568){for(var _0x452bf0=0x0,_0x3f8e50=events[_0x8172('0x6')];_0x452bf0<_0x3f8e50;_0x452bf0++){var _0x7c1c8c=events[_0x452bf0];var _0x2871fa=createListener('notification:'+_0x7c1c8c,_0xf3e568);NotificationEvents['on'](_0x7c1c8c,_0x2871fa);}};