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 _0x6e4c=['dashboardItem:','./dashboardItem.events','save','update','removeListener','register','length'];(function(_0x23b0b1,_0x43a6a0){var _0x546e5b=function(_0x2535db){while(--_0x2535db){_0x23b0b1['push'](_0x23b0b1['shift']());}};_0x546e5b(++_0x43a6a0);}(_0x6e4c,0x8d));var _0xc6e4=function(_0x4b6830,_0x2bf6fb){_0x4b6830=_0x4b6830-0x0;var _0x239e4a=_0x6e4c[_0x4b6830];return _0x239e4a;};'use strict';var DashboardItemEvents=require(_0xc6e4('0x0'));var events=[_0xc6e4('0x1'),'remove',_0xc6e4('0x2')];function createListener(_0x12f5f5,_0xc158a4){return function(_0x22acf3){_0xc158a4['emit'](_0x12f5f5,_0x22acf3);};}function removeListener(_0x461b79,_0x89e923){return function(){DashboardItemEvents[_0xc6e4('0x3')](_0x461b79,_0x89e923);};}exports[_0xc6e4('0x4')]=function(_0x3f59ba){for(var _0x4d012e=0x0,_0x4eb0e9=events[_0xc6e4('0x5')];_0x4d012e<_0x4eb0e9;_0x4d012e++){var _0x53cdcd=events[_0x4d012e];var _0x8a6ab9=createListener(_0xc6e4('0x6')+_0x53cdcd,_0x3f59ba);DashboardItemEvents['on'](_0x53cdcd,_0x8a6ab9);}};