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 _0x2bae=['emit','removeListener','length','dashboard:','./dashboard.events','save','update'];(function(_0x641145,_0x4a6429){var _0x39af3f=function(_0x3a2274){while(--_0x3a2274){_0x641145['push'](_0x641145['shift']());}};_0x39af3f(++_0x4a6429);}(_0x2bae,0x14d));var _0xe2ba=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2bae[_0x3dd15e];return _0x231fd0;};'use strict';var DashboardEvents=require(_0xe2ba('0x0'));var events=[_0xe2ba('0x1'),'remove',_0xe2ba('0x2')];function createListener(_0x1de191,_0x4ac7f4){return function(_0x1abb71){_0x4ac7f4[_0xe2ba('0x3')](_0x1de191,_0x1abb71);};}function removeListener(_0x42135a,_0xddde7b){return function(){DashboardEvents[_0xe2ba('0x4')](_0x42135a,_0xddde7b);};}exports['register']=function(_0x50113c){for(var _0x3c7d81=0x0,_0x204b91=events[_0xe2ba('0x5')];_0x3c7d81<_0x204b91;_0x3c7d81++){var _0x3eca15=events[_0x3c7d81];var _0x56ce49=createListener(_0xe2ba('0x6')+_0x3eca15,_0x50113c);DashboardEvents['on'](_0x3eca15,_0x56ce49);}};