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 _0xb0f5=['update','emit','length','./userProfile.events','save','remove'];(function(_0x2b0f15,_0x4fed91){var _0x254c8e=function(_0x3fd61f){while(--_0x3fd61f){_0x2b0f15['push'](_0x2b0f15['shift']());}};_0x254c8e(++_0x4fed91);}(_0xb0f5,0x87));var _0x5b0f=function(_0x2235bf,_0x3a06a7){_0x2235bf=_0x2235bf-0x0;var _0x4c3a64=_0xb0f5[_0x2235bf];return _0x4c3a64;};'use strict';var UserProfileEvents=require(_0x5b0f('0x0'));var events=[_0x5b0f('0x1'),_0x5b0f('0x2'),_0x5b0f('0x3')];function createListener(_0x34f71b,_0x512dad){return function(_0x292026){_0x512dad[_0x5b0f('0x4')](_0x34f71b,_0x292026);};}function removeListener(_0x113d64,_0xe1600a){return function(){UserProfileEvents['removeListener'](_0x113d64,_0xe1600a);};}exports['register']=function(_0x3d2c0d){for(var _0x1d34d0=0x0,_0x13bd39=events[_0x5b0f('0x5')];_0x1d34d0<_0x13bd39;_0x1d34d0++){var _0x3ade74=events[_0x1d34d0];var _0x228c3c=createListener('userProfile:'+_0x3ade74,_0x3d2c0d);UserProfileEvents['on'](_0x3ade74,_0x228c3c);}};