275dcafe8a6fabf08b540e41302998a1b2862dad
[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 _0xf651=['save','remove','emit','register','length','dashboard:','./dashboard.events'];(function(_0x243639,_0x38de77){var _0x2879dc=function(_0x1159a7){while(--_0x1159a7){_0x243639['push'](_0x243639['shift']());}};_0x2879dc(++_0x38de77);}(_0xf651,0x19c));var _0x1f65=function(_0x119d5a,_0x19b457){_0x119d5a=_0x119d5a-0x0;var _0x15bff4=_0xf651[_0x119d5a];return _0x15bff4;};'use strict';var DashboardEvents=require(_0x1f65('0x0'));var events=[_0x1f65('0x1'),_0x1f65('0x2'),'update'];function createListener(_0xdc8636,_0x416ae1){return function(_0xfdddae){_0x416ae1[_0x1f65('0x3')](_0xdc8636,_0xfdddae);};}function removeListener(_0x4f3c1f,_0x326030){return function(){DashboardEvents['removeListener'](_0x4f3c1f,_0x326030);};}exports[_0x1f65('0x4')]=function(_0x18720b){for(var _0x3dc9fb=0x0,_0x1cb32a=events[_0x1f65('0x5')];_0x3dc9fb<_0x1cb32a;_0x3dc9fb++){var _0x1acbde=events[_0x3dc9fb];var _0x1e0036=createListener(_0x1f65('0x6')+_0x1acbde,_0x18720b);DashboardEvents['on'](_0x1acbde,_0x1e0036);}};