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 _0xc17d=['save','remove','update','emit','register','length','user:','./user.events'];(function(_0x5203ef,_0x441d90){var _0x5c5059=function(_0x54a830){while(--_0x54a830){_0x5203ef['push'](_0x5203ef['shift']());}};_0x5c5059(++_0x441d90);}(_0xc17d,0x8f));var _0xdc17=function(_0x7fd476,_0x47d2cc){_0x7fd476=_0x7fd476-0x0;var _0x53642f=_0xc17d[_0x7fd476];return _0x53642f;};'use strict';var UserEvents=require(_0xdc17('0x0'));var events=[_0xdc17('0x1'),_0xdc17('0x2'),_0xdc17('0x3')];function createListener(_0x426a5b,_0x38528e){return function(_0x91932){_0x38528e[_0xdc17('0x4')](_0x426a5b,_0x91932);};}function removeListener(_0x1cde24,_0x362e5a){return function(){UserEvents['removeListener'](_0x1cde24,_0x362e5a);};}exports[_0xdc17('0x5')]=function(_0x493694){for(var _0x457e75=0x0,_0x4d3431=events[_0xdc17('0x6')];_0x457e75<_0x4d3431;_0x457e75++){var _0x3489aa=events[_0x457e75];var _0x414300=createListener(_0xdc17('0x7')+_0x3489aa,_0x493694);UserEvents['on'](_0x3489aa,_0x414300);}};