9acf5fd0d694595cda100be39404929a013c11a7
[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 _0xd9b8=['remove','update','emit','removeListener','length','dashboard:','save'];(function(_0x55cb50,_0x387933){var _0x22cfcf=function(_0x4ace4e){while(--_0x4ace4e){_0x55cb50['push'](_0x55cb50['shift']());}};_0x22cfcf(++_0x387933);}(_0xd9b8,0x1e9));var _0x8d9b=function(_0x21b706,_0x1022f4){_0x21b706=_0x21b706-0x0;var _0x13b94a=_0xd9b8[_0x21b706];return _0x13b94a;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x8d9b('0x0'),_0x8d9b('0x1'),_0x8d9b('0x2')];function createListener(_0x494cac,_0x237269){return function(_0x2b4fdc){_0x237269[_0x8d9b('0x3')](_0x494cac,_0x2b4fdc);};}function removeListener(_0x5bbb1c,_0x2aff7a){return function(){DashboardEvents[_0x8d9b('0x4')](_0x5bbb1c,_0x2aff7a);};}exports['register']=function(_0x3d6ff0){for(var _0x47f26a=0x0,_0x1470a3=events[_0x8d9b('0x5')];_0x47f26a<_0x1470a3;_0x47f26a++){var _0x3ccb35=events[_0x47f26a];var _0x1c8714=createListener(_0x8d9b('0x6')+_0x3ccb35,_0x3d6ff0);DashboardEvents['on'](_0x3ccb35,_0x1c8714);}};