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 _0x143b=['save','update','removeListener','register','length','dashboardItem:','./dashboardItem.events'];(function(_0x42ceab,_0xa35f9c){var _0x1aebb3=function(_0x1ccd9f){while(--_0x1ccd9f){_0x42ceab['push'](_0x42ceab['shift']());}};_0x1aebb3(++_0xa35f9c);}(_0x143b,0x16b));var _0xb143=function(_0x37e80b,_0x5638e2){_0x37e80b=_0x37e80b-0x0;var _0x2bee3a=_0x143b[_0x37e80b];return _0x2bee3a;};'use strict';var DashboardItemEvents=require(_0xb143('0x0'));var events=[_0xb143('0x1'),'remove',_0xb143('0x2')];function createListener(_0x54c544,_0x4e1b33){return function(_0x46b474){_0x4e1b33['emit'](_0x54c544,_0x46b474);};}function removeListener(_0x45a7bc,_0x419dfd){return function(){DashboardItemEvents[_0xb143('0x3')](_0x45a7bc,_0x419dfd);};}exports[_0xb143('0x4')]=function(_0x10ad2){for(var _0x41af31=0x0,_0x3bcf74=events[_0xb143('0x5')];_0x41af31<_0x3bcf74;_0x41af31++){var _0x14384d=events[_0x41af31];var _0x4ca491=createListener(_0xb143('0x6')+_0x14384d,_0x10ad2);DashboardItemEvents['on'](_0x14384d,_0x4ca491);}};