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 _0x444b=['removeListener','register','user:','./user.events','remove','update','emit'];(function(_0x5a1d6b,_0x59cc6d){var _0x5507eb=function(_0x21fd8b){while(--_0x21fd8b){_0x5a1d6b['push'](_0x5a1d6b['shift']());}};_0x5507eb(++_0x59cc6d);}(_0x444b,0x176));var _0xb444=function(_0x4ab6b1,_0x307390){_0x4ab6b1=_0x4ab6b1-0x0;var _0x41ed26=_0x444b[_0x4ab6b1];return _0x41ed26;};'use strict';var UserEvents=require(_0xb444('0x0'));var events=['save',_0xb444('0x1'),_0xb444('0x2')];function createListener(_0x54fe3b,_0x2374f9){return function(_0x59f37d){_0x2374f9[_0xb444('0x3')](_0x54fe3b,_0x59f37d);};}function removeListener(_0x3b8220,_0x1e5d9f){return function(){UserEvents[_0xb444('0x4')](_0x3b8220,_0x1e5d9f);};}exports[_0xb444('0x5')]=function(_0x8d1c8f){for(var _0x58c89e=0x0,_0x425326=events['length'];_0x58c89e<_0x425326;_0x58c89e++){var _0x38019f=events[_0x58c89e];var _0x405392=createListener(_0xb444('0x6')+_0x38019f,_0x8d1c8f);UserEvents['on'](_0x38019f,_0x405392);}};