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 _0x60c4=['user:','./user.events','remove','update','emit','removeListener','register','length'];(function(_0x173683,_0x462dfb){var _0x23711e=function(_0xee0712){while(--_0xee0712){_0x173683['push'](_0x173683['shift']());}};_0x23711e(++_0x462dfb);}(_0x60c4,0xf9));var _0x460c=function(_0x2b80e5,_0x523953){_0x2b80e5=_0x2b80e5-0x0;var _0x709c1c=_0x60c4[_0x2b80e5];return _0x709c1c;};'use strict';var UserEvents=require(_0x460c('0x0'));var events=['save',_0x460c('0x1'),_0x460c('0x2')];function createListener(_0x51e11e,_0x20459e){return function(_0xbc0c25){_0x20459e[_0x460c('0x3')](_0x51e11e,_0xbc0c25);};}function removeListener(_0x366144,_0x501610){return function(){UserEvents[_0x460c('0x4')](_0x366144,_0x501610);};}exports[_0x460c('0x5')]=function(_0x380c0f){for(var _0x4418c9=0x0,_0x57c780=events[_0x460c('0x6')];_0x4418c9<_0x57c780;_0x4418c9++){var _0x241091=events[_0x4418c9];var _0x185eb8=createListener(_0x460c('0x7')+_0x241091,_0x380c0f);UserEvents['on'](_0x241091,_0x185eb8);}};