e47e96aca4af08784bdab445d7f917bc1f46dd4d
[motion2.git] / server / api / dashboard / dashboard.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 _0xdbb3=['update','emit','removeListener','register','dashboard:','./dashboard.events','save','remove'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0xdbb3,0x105));var _0x3dbb=function(_0x3e112d,_0x2bb132){_0x3e112d=_0x3e112d-0x0;var _0x531c31=_0xdbb3[_0x3e112d];return _0x531c31;};'use strict';var DashboardEvents=require(_0x3dbb('0x0'));var events=[_0x3dbb('0x1'),_0x3dbb('0x2'),_0x3dbb('0x3')];function createListener(_0x57ff4c,_0x2494be){return function(_0x424111){_0x2494be[_0x3dbb('0x4')](_0x57ff4c,_0x424111);};}function removeListener(_0x5e4c21,_0x51ec87){return function(){DashboardEvents[_0x3dbb('0x5')](_0x5e4c21,_0x51ec87);};}exports[_0x3dbb('0x6')]=function(_0x1dd56f){for(var _0x147515=0x0,_0x29b93b=events['length'];_0x147515<_0x29b93b;_0x147515++){var _0x1a048f=events[_0x147515];var _0x42f050=createListener(_0x3dbb('0x7')+_0x1a048f,_0x1dd56f);DashboardEvents['on'](_0x1a048f,_0x42f050);}};