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 _0xff65=['update','removeListener','length','user:','./user.events','save','remove'];(function(_0x4d9c3b,_0x3c4663){var _0x35c391=function(_0x22ac2e){while(--_0x22ac2e){_0x4d9c3b['push'](_0x4d9c3b['shift']());}};_0x35c391(++_0x3c4663);}(_0xff65,0x107));var _0x5ff6=function(_0x35da42,_0x5c2610){_0x35da42=_0x35da42-0x0;var _0x370035=_0xff65[_0x35da42];return _0x370035;};'use strict';var UserEvents=require(_0x5ff6('0x0'));var events=[_0x5ff6('0x1'),_0x5ff6('0x2'),_0x5ff6('0x3')];function createListener(_0x489598,_0x2b2065){return function(_0x44aecc){_0x2b2065['emit'](_0x489598,_0x44aecc);};}function removeListener(_0x19df83,_0x5b462e){return function(){UserEvents[_0x5ff6('0x4')](_0x19df83,_0x5b462e);};}exports['register']=function(_0x4076ae){for(var _0x5a79df=0x0,_0x50652a=events[_0x5ff6('0x5')];_0x5a79df<_0x50652a;_0x5a79df++){var _0x250c9b=events[_0x5a79df];var _0x312608=createListener(_0x5ff6('0x6')+_0x250c9b,_0x4076ae);UserEvents['on'](_0x250c9b,_0x312608);}};