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 _0x3d58=['save','update','emit','removeListener','register','length','dashboardItem:'];(function(_0x3cc8f0,_0x3c3ae8){var _0xa95917=function(_0x1340de){while(--_0x1340de){_0x3cc8f0['push'](_0x3cc8f0['shift']());}};_0xa95917(++_0x3c3ae8);}(_0x3d58,0x134));var _0x83d5=function(_0x3bca83,_0xfb20dd){_0x3bca83=_0x3bca83-0x0;var _0x2f969d=_0x3d58[_0x3bca83];return _0x2f969d;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0x83d5('0x0'),'remove',_0x83d5('0x1')];function createListener(_0x2997d0,_0x3654b5){return function(_0x200bf9){_0x3654b5[_0x83d5('0x2')](_0x2997d0,_0x200bf9);};}function removeListener(_0x2ab524,_0x1c5986){return function(){DashboardItemEvents[_0x83d5('0x3')](_0x2ab524,_0x1c5986);};}exports[_0x83d5('0x4')]=function(_0x344558){for(var _0x530f19=0x0,_0x2ad81d=events[_0x83d5('0x5')];_0x530f19<_0x2ad81d;_0x530f19++){var _0x5322a7=events[_0x530f19];var _0x4d96e3=createListener(_0x83d5('0x6')+_0x5322a7,_0x344558);DashboardItemEvents['on'](_0x5322a7,_0x4d96e3);}};