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 _0x217c=['update','removeListener','length','userProfile:','save','remove'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0x217c,0x17e));var _0xc217=function(_0x43ccb6,_0x4f75fe){_0x43ccb6=_0x43ccb6-0x0;var _0x4de792=_0x217c[_0x43ccb6];return _0x4de792;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0xc217('0x0'),_0xc217('0x1'),_0xc217('0x2')];function createListener(_0x43ffad,_0x7f1f6){return function(_0x2c0e16){_0x7f1f6['emit'](_0x43ffad,_0x2c0e16);};}function removeListener(_0x4e199c,_0x1d088d){return function(){UserProfileEvents[_0xc217('0x3')](_0x4e199c,_0x1d088d);};}exports['register']=function(_0x1e5c10){for(var _0x6741e6=0x0,_0x22c7bf=events[_0xc217('0x4')];_0x6741e6<_0x22c7bf;_0x6741e6++){var _0x7db454=events[_0x6741e6];var _0x4f4b54=createListener(_0xc217('0x5')+_0x7db454,_0x1e5c10);UserProfileEvents['on'](_0x7db454,_0x4f4b54);}};