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 _0xfcd4=['emit','removeListener','length','dashboardItem:','./dashboardItem.events','save','remove','update'];(function(_0x5c814d,_0x4d81c7){var _0x89b71=function(_0x1068a4){while(--_0x1068a4){_0x5c814d['push'](_0x5c814d['shift']());}};_0x89b71(++_0x4d81c7);}(_0xfcd4,0x16c));var _0x4fcd=function(_0x254761,_0x550307){_0x254761=_0x254761-0x0;var _0x4236de=_0xfcd4[_0x254761];return _0x4236de;};'use strict';var DashboardItemEvents=require(_0x4fcd('0x0'));var events=[_0x4fcd('0x1'),_0x4fcd('0x2'),_0x4fcd('0x3')];function createListener(_0x59ae96,_0x370f86){return function(_0x42cfa8){_0x370f86[_0x4fcd('0x4')](_0x59ae96,_0x42cfa8);};}function removeListener(_0xe1abdb,_0xf8f6c6){return function(){DashboardItemEvents[_0x4fcd('0x5')](_0xe1abdb,_0xf8f6c6);};}exports['register']=function(_0x2aeb6a){for(var _0xd48eb8=0x0,_0x313fe0=events[_0x4fcd('0x6')];_0xd48eb8<_0x313fe0;_0xd48eb8++){var _0x5875b7=events[_0xd48eb8];var _0x11ed89=createListener(_0x4fcd('0x7')+_0x5875b7,_0x2aeb6a);DashboardItemEvents['on'](_0x5875b7,_0x11ed89);}};