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 _0xaf14=['save','remove','update','emit','length','./dashboardItem.events'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xaf14,0x19d));var _0x4af1=function(_0x339281,_0x3c1829){_0x339281=_0x339281-0x0;var _0x630942=_0xaf14[_0x339281];return _0x630942;};'use strict';var DashboardItemEvents=require(_0x4af1('0x0'));var events=[_0x4af1('0x1'),_0x4af1('0x2'),_0x4af1('0x3')];function createListener(_0x59f05e,_0x675c9e){return function(_0x1beb88){_0x675c9e[_0x4af1('0x4')](_0x59f05e,_0x1beb88);};}function removeListener(_0x3aa664,_0x2210c7){return function(){DashboardItemEvents['removeListener'](_0x3aa664,_0x2210c7);};}exports['register']=function(_0x5dad01){for(var _0x193382=0x0,_0x249206=events[_0x4af1('0x5')];_0x193382<_0x249206;_0x193382++){var _0x1b1bdb=events[_0x193382];var _0x3447f2=createListener('dashboardItem:'+_0x1b1bdb,_0x5dad01);DashboardItemEvents['on'](_0x1b1bdb,_0x3447f2);}};