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 _0x86d8=['update','emit','removeListener','length','./user.events','save','remove'];(function(_0x330524,_0x4307ac){var _0x26e908=function(_0x5f0ece){while(--_0x5f0ece){_0x330524['push'](_0x330524['shift']());}};_0x26e908(++_0x4307ac);}(_0x86d8,0x82));var _0x886d=function(_0x56c442,_0x433de4){_0x56c442=_0x56c442-0x0;var _0x2944db=_0x86d8[_0x56c442];return _0x2944db;};'use strict';var UserEvents=require(_0x886d('0x0'));var events=[_0x886d('0x1'),_0x886d('0x2'),_0x886d('0x3')];function createListener(_0x18840c,_0x3536d0){return function(_0xb48653){_0x3536d0[_0x886d('0x4')](_0x18840c,_0xb48653);};}function removeListener(_0x509dec,_0x4b7fb3){return function(){UserEvents[_0x886d('0x5')](_0x509dec,_0x4b7fb3);};}exports['register']=function(_0x4f6e01){for(var _0xf3799a=0x0,_0x294c4c=events[_0x886d('0x6')];_0xf3799a<_0x294c4c;_0xf3799a++){var _0x65c2ca=events[_0xf3799a];var _0x33817c=createListener('user:'+_0x65c2ca,_0x4f6e01);UserEvents['on'](_0x65c2ca,_0x33817c);}};