76d194b1f9a5002dd0b83c9904879d94c0e8d065
[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 _0xcc17=['emit','removeListener','register','length','dashboard:','./dashboard.events','save','remove','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xcc17,0x188));var _0x7cc1=function(_0x25cd2c,_0x57498e){_0x25cd2c=_0x25cd2c-0x0;var _0x1e364c=_0xcc17[_0x25cd2c];return _0x1e364c;};'use strict';var DashboardEvents=require(_0x7cc1('0x0'));var events=[_0x7cc1('0x1'),_0x7cc1('0x2'),_0x7cc1('0x3')];function createListener(_0x2ddac9,_0x3fe363){return function(_0x420d3b){_0x3fe363[_0x7cc1('0x4')](_0x2ddac9,_0x420d3b);};}function removeListener(_0x509d5d,_0x5c58e4){return function(){DashboardEvents[_0x7cc1('0x5')](_0x509d5d,_0x5c58e4);};}exports[_0x7cc1('0x6')]=function(_0x16cddd){for(var _0x425955=0x0,_0x53c98d=events[_0x7cc1('0x7')];_0x425955<_0x53c98d;_0x425955++){var _0x5e767d=events[_0x425955];var _0x2ed308=createListener(_0x7cc1('0x8')+_0x5e767d,_0x16cddd);DashboardEvents['on'](_0x5e767d,_0x2ed308);}};