1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5c67=['./dashboard.events','save','remove','removeListener','register','dashboard:'];(function(_0x1fe2d2,_0x80b0f4){var _0x5e3b47=function(_0x55f19a){while(--_0x55f19a){_0x1fe2d2['push'](_0x1fe2d2['shift']());}};_0x5e3b47(++_0x80b0f4);}(_0x5c67,0x17a));var _0x75c6=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x5c67[_0x5b644e];return _0x49c6bf;};'use strict';var DashboardEvents=require(_0x75c6('0x0'));var events=[_0x75c6('0x1'),_0x75c6('0x2'),'update'];function createListener(_0x433adf,_0x502d52){return function(_0x1b34cd){_0x502d52['emit'](_0x433adf,_0x1b34cd);};}function removeListener(_0x4873e1,_0x426170){return function(){DashboardEvents[_0x75c6('0x3')](_0x4873e1,_0x426170);};}exports[_0x75c6('0x4')]=function(_0x2393c9){for(var _0x5add7a=0x0,_0x37df29=events['length'];_0x5add7a<_0x37df29;_0x5add7a++){var _0x12167e=events[_0x5add7a];var _0x5f5327=createListener(_0x75c6('0x5')+_0x12167e,_0x2393c9);DashboardEvents['on'](_0x12167e,_0x5f5327);}};