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 _0x398f=['./user.events','save','remove','update','emit','removeListener','register','user:'];(function(_0x2074db,_0x10b81b){var _0x27324c=function(_0x5c3d5c){while(--_0x5c3d5c){_0x2074db['push'](_0x2074db['shift']());}};_0x27324c(++_0x10b81b);}(_0x398f,0x68));var _0xf398=function(_0x3097cc,_0x123fca){_0x3097cc=_0x3097cc-0x0;var _0x2c11a4=_0x398f[_0x3097cc];return _0x2c11a4;};'use strict';var UserEvents=require(_0xf398('0x0'));var events=[_0xf398('0x1'),_0xf398('0x2'),_0xf398('0x3')];function createListener(_0x522ee7,_0x175b5b){return function(_0x233088){_0x175b5b[_0xf398('0x4')](_0x522ee7,_0x233088);};}function removeListener(_0x45fe44,_0x469b8c){return function(){UserEvents[_0xf398('0x5')](_0x45fe44,_0x469b8c);};}exports[_0xf398('0x6')]=function(_0x3f5f60){for(var _0x186bc4=0x0,_0x5ea1f9=events['length'];_0x186bc4<_0x5ea1f9;_0x186bc4++){var _0x709d8e=events[_0x186bc4];var _0x13081c=createListener(_0xf398('0x7')+_0x709d8e,_0x3f5f60);UserEvents['on'](_0x709d8e,_0x13081c);}};