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 _0x001c=['length','user:','./user.events','save','update','emit','register'];(function(_0x4b7ac3,_0x4be828){var _0xedb5e0=function(_0x11be60){while(--_0x11be60){_0x4b7ac3['push'](_0x4b7ac3['shift']());}};_0xedb5e0(++_0x4be828);}(_0x001c,0x87));var _0xc001=function(_0x3284e0,_0x28d363){_0x3284e0=_0x3284e0-0x0;var _0x19ed28=_0x001c[_0x3284e0];return _0x19ed28;};'use strict';var UserEvents=require(_0xc001('0x0'));var events=[_0xc001('0x1'),'remove',_0xc001('0x2')];function createListener(_0x1f1f0c,_0x57f761){return function(_0x533551){_0x57f761[_0xc001('0x3')](_0x1f1f0c,_0x533551);};}function removeListener(_0x583d1e,_0x1e6d23){return function(){UserEvents['removeListener'](_0x583d1e,_0x1e6d23);};}exports[_0xc001('0x4')]=function(_0x4d1576){for(var _0x460a56=0x0,_0x5d83de=events[_0xc001('0x5')];_0x460a56<_0x5d83de;_0x460a56++){var _0x44ea84=events[_0x460a56];var _0x493008=createListener(_0xc001('0x6')+_0x44ea84,_0x4d1576);UserEvents['on'](_0x44ea84,_0x493008);}};