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 _0x10cf=['./userProfile.events','save','remove','update','emit','register','length'];(function(_0x6c570d,_0x3ac9b1){var _0x2b5ecc=function(_0x425227){while(--_0x425227){_0x6c570d['push'](_0x6c570d['shift']());}};_0x2b5ecc(++_0x3ac9b1);}(_0x10cf,0x111));var _0xf10c=function(_0x30a85a,_0x15a94a){_0x30a85a=_0x30a85a-0x0;var _0x20b4ab=_0x10cf[_0x30a85a];return _0x20b4ab;};'use strict';var UserProfileEvents=require(_0xf10c('0x0'));var events=[_0xf10c('0x1'),_0xf10c('0x2'),_0xf10c('0x3')];function createListener(_0x39bc32,_0x2b44ba){return function(_0xcb1e92){_0x2b44ba[_0xf10c('0x4')](_0x39bc32,_0xcb1e92);};}function removeListener(_0x312fcd,_0x5cec7f){return function(){UserProfileEvents['removeListener'](_0x312fcd,_0x5cec7f);};}exports[_0xf10c('0x5')]=function(_0x1f5cff){for(var _0x383f38=0x0,_0x5b71cf=events[_0xf10c('0x6')];_0x383f38<_0x5b71cf;_0x383f38++){var _0x505832=events[_0x383f38];var _0xdd1111=createListener('userProfile:'+_0x505832,_0x1f5cff);UserProfileEvents['on'](_0x505832,_0xdd1111);}};