Built motion from commit (unavailable).|2.5.3
[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 _0x65de=['removeListener','length','notification:','./notification.events','save','emit'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0x65de,0x129));var _0xe65d=function(_0x142d3e,_0x3f756f){_0x142d3e=_0x142d3e-0x0;var _0x2be5e3=_0x65de[_0x142d3e];return _0x2be5e3;};'use strict';var NotificationEvents=require(_0xe65d('0x0'));var events=[_0xe65d('0x1'),'remove','update'];function createListener(_0x526cfd,_0x4b4a4e){return function(_0x3feadf){_0x4b4a4e[_0xe65d('0x2')](_0x526cfd,_0x3feadf);};}function removeListener(_0x4eba68,_0x4fc8d6){return function(){NotificationEvents[_0xe65d('0x3')](_0x4eba68,_0x4fc8d6);};}exports['register']=function(_0x3045c9){for(var _0x34b0a1=0x0,_0x45737a=events[_0xe65d('0x4')];_0x34b0a1<_0x45737a;_0x34b0a1++){var _0x9d6d49=events[_0x34b0a1];var _0x16321f=createListener(_0xe65d('0x5')+_0x9d6d49,_0x3045c9);NotificationEvents['on'](_0x9d6d49,_0x16321f);}};