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 _0xc24a=['./user.events','remove','update','emit','removeListener','user:'];(function(_0x432026,_0x3edb07){var _0x163663=function(_0x192b4c){while(--_0x192b4c){_0x432026['push'](_0x432026['shift']());}};_0x163663(++_0x3edb07);}(_0xc24a,0x1d4));var _0xac24=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0xc24a[_0x160c73];return _0xd9302;};'use strict';var UserEvents=require(_0xac24('0x0'));var events=['save',_0xac24('0x1'),_0xac24('0x2')];function createListener(_0x4a7a4e,_0x3276b1){return function(_0x1ec594){_0x3276b1[_0xac24('0x3')](_0x4a7a4e,_0x1ec594);};}function removeListener(_0xe50147,_0x515d2d){return function(){UserEvents[_0xac24('0x4')](_0xe50147,_0x515d2d);};}exports['register']=function(_0x5b06d2){for(var _0x386b56=0x0,_0x35919f=events['length'];_0x386b56<_0x35919f;_0x386b56++){var _0x3cdd8c=events[_0x386b56];var _0x400ed9=createListener(_0xac24('0x5')+_0x3cdd8c,_0x5b06d2);UserEvents['on'](_0x3cdd8c,_0x400ed9);}};