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 _0xc025=['register','length','user:','./user.events','save','remove','update','emit','removeListener'];(function(_0x4b75b8,_0x188532){var _0x19bbd2=function(_0x4ad5b1){while(--_0x4ad5b1){_0x4b75b8['push'](_0x4b75b8['shift']());}};_0x19bbd2(++_0x188532);}(_0xc025,0x111));var _0x5c02=function(_0x468989,_0x2d7d05){_0x468989=_0x468989-0x0;var _0x3de51b=_0xc025[_0x468989];return _0x3de51b;};'use strict';var UserEvents=require(_0x5c02('0x0'));var events=[_0x5c02('0x1'),_0x5c02('0x2'),_0x5c02('0x3')];function createListener(_0x43e7ea,_0x5a5d50){return function(_0x2714d2){_0x5a5d50[_0x5c02('0x4')](_0x43e7ea,_0x2714d2);};}function removeListener(_0x31f116,_0xd4e5d1){return function(){UserEvents[_0x5c02('0x5')](_0x31f116,_0xd4e5d1);};}exports[_0x5c02('0x6')]=function(_0x2dbc62){for(var _0x415d55=0x0,_0x388d76=events[_0x5c02('0x7')];_0x415d55<_0x388d76;_0x415d55++){var _0x3a97e0=events[_0x415d55];var _0x53866b=createListener(_0x5c02('0x8')+_0x3a97e0,_0x2dbc62);UserEvents['on'](_0x3a97e0,_0x53866b);}};