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 _0xf723=['save','removeListener','register','length','dashboard:'];(function(_0x485b5a,_0x2b289b){var _0xd2b34d=function(_0x34dcbd){while(--_0x34dcbd){_0x485b5a['push'](_0x485b5a['shift']());}};_0xd2b34d(++_0x2b289b);}(_0xf723,0xff));var _0x3f72=function(_0x1f1bf8,_0x48c57d){_0x1f1bf8=_0x1f1bf8-0x0;var _0xcefd99=_0xf723[_0x1f1bf8];return _0xcefd99;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x3f72('0x0'),'remove','update'];function createListener(_0xb826d5,_0x5b4bcb){return function(_0x495c1b){_0x5b4bcb['emit'](_0xb826d5,_0x495c1b);};}function removeListener(_0x5457dd,_0xde0ddc){return function(){DashboardEvents[_0x3f72('0x1')](_0x5457dd,_0xde0ddc);};}exports[_0x3f72('0x2')]=function(_0x1dfae3){for(var _0x2cdb61=0x0,_0x18df48=events[_0x3f72('0x3')];_0x2cdb61<_0x18df48;_0x2cdb61++){var _0xa4f7e9=events[_0x2cdb61];var _0xaea197=createListener(_0x3f72('0x4')+_0xa4f7e9,_0x1dfae3);DashboardEvents['on'](_0xa4f7e9,_0xaea197);}};