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 _0x0367=['userProfile:','save','remove','update','emit','removeListener','register','length'];(function(_0x96f37,_0x5c80f8){var _0x15e143=function(_0x3ddd2f){while(--_0x3ddd2f){_0x96f37['push'](_0x96f37['shift']());}};_0x15e143(++_0x5c80f8);}(_0x0367,0xa1));var _0x7036=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x0367[_0x17d9e3];return _0x14192d;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0x7036('0x0'),_0x7036('0x1'),_0x7036('0x2')];function createListener(_0x21968d,_0x525849){return function(_0x4aa5bd){_0x525849[_0x7036('0x3')](_0x21968d,_0x4aa5bd);};}function removeListener(_0x5006a1,_0x1af968){return function(){UserProfileEvents[_0x7036('0x4')](_0x5006a1,_0x1af968);};}exports[_0x7036('0x5')]=function(_0x484f8c){for(var _0x7e088b=0x0,_0x4cb729=events[_0x7036('0x6')];_0x7e088b<_0x4cb729;_0x7e088b++){var _0x56fe63=events[_0x7e088b];var _0x5bb7ec=createListener(_0x7036('0x7')+_0x56fe63,_0x484f8c);UserProfileEvents['on'](_0x56fe63,_0x5bb7ec);}};