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 _0xdcde=['update','removeListener','register','user:','./user.events','save'];(function(_0x33949e,_0x37f5ee){var _0x52e067=function(_0x520757){while(--_0x520757){_0x33949e['push'](_0x33949e['shift']());}};_0x52e067(++_0x37f5ee);}(_0xdcde,0xa0));var _0xedcd=function(_0x3f6f53,_0x56f3e4){_0x3f6f53=_0x3f6f53-0x0;var _0x5049e9=_0xdcde[_0x3f6f53];return _0x5049e9;};'use strict';var UserEvents=require(_0xedcd('0x0'));var events=[_0xedcd('0x1'),'remove',_0xedcd('0x2')];function createListener(_0x5e7e45,_0x4c461a){return function(_0x2bbad4){_0x4c461a['emit'](_0x5e7e45,_0x2bbad4);};}function removeListener(_0x5fffc9,_0x207e33){return function(){UserEvents[_0xedcd('0x3')](_0x5fffc9,_0x207e33);};}exports[_0xedcd('0x4')]=function(_0x5617dd){for(var _0x59a1cb=0x0,_0x2520bc=events['length'];_0x59a1cb<_0x2520bc;_0x59a1cb++){var _0x21e35=events[_0x59a1cb];var _0x26229d=createListener(_0xedcd('0x5')+_0x21e35,_0x5617dd);UserEvents['on'](_0x21e35,_0x26229d);}};