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 _0x37ae=['removeListener','register','length','./userProfile.events','save','update'];(function(_0x1545e8,_0x255734){var _0x4786c2=function(_0x517a99){while(--_0x517a99){_0x1545e8['push'](_0x1545e8['shift']());}};_0x4786c2(++_0x255734);}(_0x37ae,0x93));var _0xe37a=function(_0x209bbf,_0x2e2375){_0x209bbf=_0x209bbf-0x0;var _0x592d4b=_0x37ae[_0x209bbf];return _0x592d4b;};'use strict';var UserProfileEvents=require(_0xe37a('0x0'));var events=[_0xe37a('0x1'),'remove',_0xe37a('0x2')];function createListener(_0x2e910a,_0x597804){return function(_0x472542){_0x597804['emit'](_0x2e910a,_0x472542);};}function removeListener(_0x9b39ef,_0x55663c){return function(){UserProfileEvents[_0xe37a('0x3')](_0x9b39ef,_0x55663c);};}exports[_0xe37a('0x4')]=function(_0x9efb30){for(var _0x15519e=0x0,_0x4bb8fd=events[_0xe37a('0x5')];_0x15519e<_0x4bb8fd;_0x15519e++){var _0x47d92e=events[_0x15519e];var _0xa3f55e=createListener('userProfile:'+_0x47d92e,_0x9efb30);UserProfileEvents['on'](_0x47d92e,_0xa3f55e);}};