Built motion from commit (unavailable).|2.5.21
[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 _0x0c2d=['./notification.events','save','remove','emit','removeListener','register','length','notification:'];(function(_0x4055cb,_0x5e6ce8){var _0x59a264=function(_0x405d62){while(--_0x405d62){_0x4055cb['push'](_0x4055cb['shift']());}};_0x59a264(++_0x5e6ce8);}(_0x0c2d,0x1a8));var _0xd0c2=function(_0x2c9abf,_0x32b4be){_0x2c9abf=_0x2c9abf-0x0;var _0x45b9d0=_0x0c2d[_0x2c9abf];return _0x45b9d0;};'use strict';var NotificationEvents=require(_0xd0c2('0x0'));var events=[_0xd0c2('0x1'),_0xd0c2('0x2'),'update'];function createListener(_0x31937e,_0x11aa17){return function(_0x4800c1){_0x11aa17[_0xd0c2('0x3')](_0x31937e,_0x4800c1);};}function removeListener(_0x4d15ad,_0x3ac70e){return function(){NotificationEvents[_0xd0c2('0x4')](_0x4d15ad,_0x3ac70e);};}exports[_0xd0c2('0x5')]=function(_0x11a514){for(var _0x16050d=0x0,_0x3d3ebc=events[_0xd0c2('0x6')];_0x16050d<_0x3d3ebc;_0x16050d++){var _0x496f19=events[_0x16050d];var _0x16855f=createListener(_0xd0c2('0x7')+_0x496f19,_0x11a514);NotificationEvents['on'](_0x496f19,_0x16855f);}};