75a71cf66310e4e6339e2426bd9d16a4fa89d7bc
[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 _0xde12=['./dashboard.events','save','remove','update','emit','removeListener','register','length','dashboard:'];(function(_0x16335c,_0x17ca85){var _0x3b5249=function(_0x2bfa22){while(--_0x2bfa22){_0x16335c['push'](_0x16335c['shift']());}};_0x3b5249(++_0x17ca85);}(_0xde12,0x1c2));var _0x2de1=function(_0x2ab972,_0x1822ed){_0x2ab972=_0x2ab972-0x0;var _0x1f2ebf=_0xde12[_0x2ab972];return _0x1f2ebf;};'use strict';var DashboardEvents=require(_0x2de1('0x0'));var events=[_0x2de1('0x1'),_0x2de1('0x2'),_0x2de1('0x3')];function createListener(_0x3f59ed,_0x170730){return function(_0x5f4be1){_0x170730[_0x2de1('0x4')](_0x3f59ed,_0x5f4be1);};}function removeListener(_0x13598d,_0x38bba7){return function(){DashboardEvents[_0x2de1('0x5')](_0x13598d,_0x38bba7);};}exports[_0x2de1('0x6')]=function(_0x2fd168){for(var _0x4ed0ab=0x0,_0x2e330f=events[_0x2de1('0x7')];_0x4ed0ab<_0x2e330f;_0x4ed0ab++){var _0x44601b=events[_0x4ed0ab];var _0x1e40af=createListener(_0x2de1('0x8')+_0x44601b,_0x2fd168);DashboardEvents['on'](_0x44601b,_0x1e40af);}};