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 _0x19c2=['remove','update','removeListener','register','length','user:','./user.events','save'];(function(_0x4b76fe,_0x42045b){var _0x305149=function(_0x2f8de3){while(--_0x2f8de3){_0x4b76fe['push'](_0x4b76fe['shift']());}};_0x305149(++_0x42045b);}(_0x19c2,0x196));var _0x219c=function(_0x197115,_0x14d69a){_0x197115=_0x197115-0x0;var _0x19d830=_0x19c2[_0x197115];return _0x19d830;};'use strict';var UserEvents=require(_0x219c('0x0'));var events=[_0x219c('0x1'),_0x219c('0x2'),_0x219c('0x3')];function createListener(_0x23b6af,_0x388c0a){return function(_0x1cf166){_0x388c0a['emit'](_0x23b6af,_0x1cf166);};}function removeListener(_0x525356,_0x1d0803){return function(){UserEvents[_0x219c('0x4')](_0x525356,_0x1d0803);};}exports[_0x219c('0x5')]=function(_0x5e4631){for(var _0x241a4c=0x0,_0x2d2924=events[_0x219c('0x6')];_0x241a4c<_0x2d2924;_0x241a4c++){var _0x59e260=events[_0x241a4c];var _0x35a962=createListener(_0x219c('0x7')+_0x59e260,_0x5e4631);UserEvents['on'](_0x59e260,_0x35a962);}};