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 _0x1a68=['removeListener','register','length','./dashboard.events'];(function(_0x301f5e,_0x5a6185){var _0x3ba83b=function(_0xf541f5){while(--_0xf541f5){_0x301f5e['push'](_0x301f5e['shift']());}};_0x3ba83b(++_0x5a6185);}(_0x1a68,0x16f));var _0x81a6=function(_0x3cfce0,_0xa4182b){_0x3cfce0=_0x3cfce0-0x0;var _0x53ec42=_0x1a68[_0x3cfce0];return _0x53ec42;};'use strict';var DashboardEvents=require(_0x81a6('0x0'));var events=['save','remove','update'];function createListener(_0x3377b7,_0xfb9f0f){return function(_0x77146e){_0xfb9f0f['emit'](_0x3377b7,_0x77146e);};}function removeListener(_0x56aa71,_0x3feb0a){return function(){DashboardEvents[_0x81a6('0x1')](_0x56aa71,_0x3feb0a);};}exports[_0x81a6('0x2')]=function(_0x1d6a59){for(var _0x202bd2=0x0,_0x4dc2bd=events[_0x81a6('0x3')];_0x202bd2<_0x4dc2bd;_0x202bd2++){var _0x4372c8=events[_0x202bd2];var _0x2eb10d=createListener('dashboard:'+_0x4372c8,_0x1d6a59);DashboardEvents['on'](_0x4372c8,_0x2eb10d);}};