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 _0x8341=['remove','update','emit','register','dashboardItem:','./dashboardItem.events','save'];(function(_0x1a1393,_0x37302f){var _0x472c99=function(_0x4f47d2){while(--_0x4f47d2){_0x1a1393['push'](_0x1a1393['shift']());}};_0x472c99(++_0x37302f);}(_0x8341,0xfa));var _0x1834=function(_0x4200c2,_0x59360e){_0x4200c2=_0x4200c2-0x0;var _0x297802=_0x8341[_0x4200c2];return _0x297802;};'use strict';var DashboardItemEvents=require(_0x1834('0x0'));var events=[_0x1834('0x1'),_0x1834('0x2'),_0x1834('0x3')];function createListener(_0xf0cb55,_0x42be64){return function(_0x34f5cc){_0x42be64[_0x1834('0x4')](_0xf0cb55,_0x34f5cc);};}function removeListener(_0xba3eae,_0xb6663f){return function(){DashboardItemEvents['removeListener'](_0xba3eae,_0xb6663f);};}exports[_0x1834('0x5')]=function(_0x2d51e2){for(var _0xfebd71=0x0,_0x25cd0a=events['length'];_0xfebd71<_0x25cd0a;_0xfebd71++){var _0x1c3b31=events[_0xfebd71];var _0x214d0b=createListener(_0x1834('0x6')+_0x1c3b31,_0x2d51e2);DashboardItemEvents['on'](_0x1c3b31,_0x214d0b);}};