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 _0x9a14=['removeListener','register','./user.events','save','remove','update','emit'];(function(_0x1bf6b7,_0x12519b){var _0x5e2768=function(_0x2fb507){while(--_0x2fb507){_0x1bf6b7['push'](_0x1bf6b7['shift']());}};_0x5e2768(++_0x12519b);}(_0x9a14,0x17c));var _0x49a1=function(_0x37f879,_0x182a16){_0x37f879=_0x37f879-0x0;var _0x160405=_0x9a14[_0x37f879];return _0x160405;};'use strict';var UserEvents=require(_0x49a1('0x0'));var events=[_0x49a1('0x1'),_0x49a1('0x2'),_0x49a1('0x3')];function createListener(_0x67544a,_0xd1b39b){return function(_0x4fe52d){_0xd1b39b[_0x49a1('0x4')](_0x67544a,_0x4fe52d);};}function removeListener(_0xdd88dc,_0x800609){return function(){UserEvents[_0x49a1('0x5')](_0xdd88dc,_0x800609);};}exports[_0x49a1('0x6')]=function(_0x34e50b){for(var _0x57f806=0x0,_0x3df1de=events['length'];_0x57f806<_0x3df1de;_0x57f806++){var _0x470909=events[_0x57f806];var _0x4df207=createListener('user:'+_0x470909,_0x34e50b);UserEvents['on'](_0x470909,_0x4df207);}};