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 _0x5bda=['./user.events','save','remove','update','emit','removeListener','length'];(function(_0x7c5a5d,_0x40d6dc){var _0x3d40b0=function(_0xb1d78d){while(--_0xb1d78d){_0x7c5a5d['push'](_0x7c5a5d['shift']());}};_0x3d40b0(++_0x40d6dc);}(_0x5bda,0x150));var _0xa5bd=function(_0x31bdff,_0x21a396){_0x31bdff=_0x31bdff-0x0;var _0x1600bd=_0x5bda[_0x31bdff];return _0x1600bd;};'use strict';var UserEvents=require(_0xa5bd('0x0'));var events=[_0xa5bd('0x1'),_0xa5bd('0x2'),_0xa5bd('0x3')];function createListener(_0x3f0795,_0x2a1e86){return function(_0x3e1ce4){_0x2a1e86[_0xa5bd('0x4')](_0x3f0795,_0x3e1ce4);};}function removeListener(_0x4ff5b6,_0xa4b9af){return function(){UserEvents[_0xa5bd('0x5')](_0x4ff5b6,_0xa4b9af);};}exports['register']=function(_0x569461){for(var _0x3fa834=0x0,_0x3ddab2=events[_0xa5bd('0x6')];_0x3fa834<_0x3ddab2;_0x3fa834++){var _0x31f663=events[_0x3fa834];var _0x11b96f=createListener('user:'+_0x31f663,_0x569461);UserEvents['on'](_0x31f663,_0x11b96f);}};