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 _0xb8bf=['user:','save','remove','update','removeListener','register'];(function(_0x18468f,_0x1515e9){var _0x4e8097=function(_0x4e620c){while(--_0x4e620c){_0x18468f['push'](_0x18468f['shift']());}};_0x4e8097(++_0x1515e9);}(_0xb8bf,0x7f));var _0xfb8b=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0xb8bf[_0x432682];return _0x463d05;};'use strict';var UserEvents=require('./user.events');var events=[_0xfb8b('0x0'),_0xfb8b('0x1'),_0xfb8b('0x2')];function createListener(_0x5078f5,_0x53d6bf){return function(_0x5ad85b){_0x53d6bf['emit'](_0x5078f5,_0x5ad85b);};}function removeListener(_0x54f7dd,_0x1bcd7a){return function(){UserEvents[_0xfb8b('0x3')](_0x54f7dd,_0x1bcd7a);};}exports[_0xfb8b('0x4')]=function(_0x38c2d8){for(var _0x1eb93c=0x0,_0x5c198f=events['length'];_0x1eb93c<_0x5c198f;_0x1eb93c++){var _0x44a6dd=events[_0x1eb93c];var _0x3e2a5c=createListener(_0xfb8b('0x5')+_0x44a6dd,_0x38c2d8);UserEvents['on'](_0x44a6dd,_0x3e2a5c);}};