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 _0xcd9e=['update','emit','removeListener','length','./dashboardItem.events','save'];(function(_0x5d3415,_0x4fe7b1){var _0x553729=function(_0x1bf39a){while(--_0x1bf39a){_0x5d3415['push'](_0x5d3415['shift']());}};_0x553729(++_0x4fe7b1);}(_0xcd9e,0x19c));var _0xecd9=function(_0x426631,_0x1daf47){_0x426631=_0x426631-0x0;var _0x3834ce=_0xcd9e[_0x426631];return _0x3834ce;};'use strict';var DashboardItemEvents=require(_0xecd9('0x0'));var events=[_0xecd9('0x1'),'remove',_0xecd9('0x2')];function createListener(_0x46eb1f,_0x21ea81){return function(_0x165d9a){_0x21ea81[_0xecd9('0x3')](_0x46eb1f,_0x165d9a);};}function removeListener(_0x5bc789,_0x5e6260){return function(){DashboardItemEvents[_0xecd9('0x4')](_0x5bc789,_0x5e6260);};}exports['register']=function(_0x556221){for(var _0x572ca8=0x0,_0x351cb8=events[_0xecd9('0x5')];_0x572ca8<_0x351cb8;_0x572ca8++){var _0x5242ee=events[_0x572ca8];var _0x388642=createListener('dashboardItem:'+_0x5242ee,_0x556221);DashboardItemEvents['on'](_0x5242ee,_0x388642);}};