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 _0x93a9=['update','emit','register','./user.events','save','remove'];(function(_0x15b608,_0x33845f){var _0x34cca7=function(_0x25a104){while(--_0x25a104){_0x15b608['push'](_0x15b608['shift']());}};_0x34cca7(++_0x33845f);}(_0x93a9,0x159));var _0x993a=function(_0x5c4d27,_0x5b0822){_0x5c4d27=_0x5c4d27-0x0;var _0x1dda1a=_0x93a9[_0x5c4d27];return _0x1dda1a;};'use strict';var UserEvents=require(_0x993a('0x0'));var events=[_0x993a('0x1'),_0x993a('0x2'),_0x993a('0x3')];function createListener(_0x5e5ef5,_0x35954c){return function(_0xe5c026){_0x35954c[_0x993a('0x4')](_0x5e5ef5,_0xe5c026);};}function removeListener(_0x168a86,_0x33381a){return function(){UserEvents['removeListener'](_0x168a86,_0x33381a);};}exports[_0x993a('0x5')]=function(_0x35af01){for(var _0x1265c1=0x0,_0x58376f=events['length'];_0x1265c1<_0x58376f;_0x1265c1++){var _0x1ab270=events[_0x1265c1];var _0x3893b8=createListener('user:'+_0x1ab270,_0x35af01);UserEvents['on'](_0x1ab270,_0x3893b8);}};