Built motion from commit (unavailable).|2.5.11
[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 _0xb0ca=['register','length','notification:','./notification.events','save','remove','update','emit','removeListener'];(function(_0x250b8b,_0x1d3b34){var _0x458585=function(_0x53147d){while(--_0x53147d){_0x250b8b['push'](_0x250b8b['shift']());}};_0x458585(++_0x1d3b34);}(_0xb0ca,0x1ce));var _0xab0c=function(_0x569ec5,_0x5ab480){_0x569ec5=_0x569ec5-0x0;var _0x185e84=_0xb0ca[_0x569ec5];return _0x185e84;};'use strict';var NotificationEvents=require(_0xab0c('0x0'));var events=[_0xab0c('0x1'),_0xab0c('0x2'),_0xab0c('0x3')];function createListener(_0x39dce1,_0x235435){return function(_0x46648f){_0x235435[_0xab0c('0x4')](_0x39dce1,_0x46648f);};}function removeListener(_0x1a7902,_0x3a92c2){return function(){NotificationEvents[_0xab0c('0x5')](_0x1a7902,_0x3a92c2);};}exports[_0xab0c('0x6')]=function(_0x1f4feb){for(var _0x478ae7=0x0,_0x1e0bb7=events[_0xab0c('0x7')];_0x478ae7<_0x1e0bb7;_0x478ae7++){var _0x4ecda5=events[_0x478ae7];var _0x4d7684=createListener(_0xab0c('0x8')+_0x4ecda5,_0x1f4feb);NotificationEvents['on'](_0x4ecda5,_0x4d7684);}};