Built motion from commit (unavailable).|2.5.8
[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 _0x6c03=['update','emit','removeListener','register','length','notification:','./notification.events','save','remove'];(function(_0x3469f5,_0xc219c3){var _0x42b369=function(_0x5bbb65){while(--_0x5bbb65){_0x3469f5['push'](_0x3469f5['shift']());}};_0x42b369(++_0xc219c3);}(_0x6c03,0x1b6));var _0x36c0=function(_0x39bcc5,_0x12315c){_0x39bcc5=_0x39bcc5-0x0;var _0x13e26f=_0x6c03[_0x39bcc5];return _0x13e26f;};'use strict';var NotificationEvents=require(_0x36c0('0x0'));var events=[_0x36c0('0x1'),_0x36c0('0x2'),_0x36c0('0x3')];function createListener(_0x5304e2,_0x116bba){return function(_0x51111f){_0x116bba[_0x36c0('0x4')](_0x5304e2,_0x51111f);};}function removeListener(_0x4e2959,_0x26a154){return function(){NotificationEvents[_0x36c0('0x5')](_0x4e2959,_0x26a154);};}exports[_0x36c0('0x6')]=function(_0x2dd839){for(var _0x570731=0x0,_0x4c375a=events[_0x36c0('0x7')];_0x570731<_0x4c375a;_0x570731++){var _0x525cfe=events[_0x570731];var _0xe843f9=createListener(_0x36c0('0x8')+_0x525cfe,_0x2dd839);NotificationEvents['on'](_0x525cfe,_0xe843f9);}};