72c9bf3fed96081a9941b356a52b43753b477376
[motion2.git] / server / services / ami / trigger / integration / sugarcrm.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x725f=['uri','monitor_format','[QUEUE]','Recording\x20is\x20enabled!','recordingURL','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','uniqueid','calleridname','calleridnum','The\x20Enduser\x20ID\x20is:','Fields','Inbound','Ticket\x20created!','users','version','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','user:%s','trigger:browser:url','catch','%s/service/v4_1/rest.php','recordingFormat','none','[OUTBOUND]','The\x20User\x20ID\x20is:','destcalleridname','destcalleridnum','Outbound','charAt','error','The\x20Ticket\x20ID\x20is:','contacts','lastevent','toUpperCase','lodash','request-promise','bluebird','util','ioredis','./util','../../../../config/environment','sugarcrm','redis','socket.io-emitter','POST','Creating\x20new\x20ticket...','name','getString','Subjects','created_by','description','Descriptions','date_start','slice','replace','duration_hours','parent_id','parent_type','Contacts','parent_name','direction','length','forEach','variableName','push','idField','set_entry','JSON','Calls','Basic\x20%s','apiKey','toString','base64','get_server_info','stringify','isNil','info','Getting\x20agent\x20with\x20name','get_entry_list','Employees','then','entry_list','find','name_value_list','user_name','value','resolve','user_id','Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!','Searching\x20enduser\x20with\x20phone','format','contacts.phone_home\x20=\x20\x22%s\x22','phone_home','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','first_name','<unknown>','Caller\x20-\x20%s','Enduser\x20created.','debug','[HTTP]','map','nameField','customField','content','type','string','custom_fields','variable','customVariable','Variable','toLowerCase','login','username','PLAIN','sessionID','Account\x20%d\x20is\x20not\x20valid','set_relationship','queue','remoteUri','stripTrailingSlash','serverUrl'];(function(_0xce0591,_0x20c9ae){var _0xf6499e=function(_0x40d94d){while(--_0x40d94d){_0xce0591['push'](_0xce0591['shift']());}};_0xf6499e(++_0x20c9ae);}(_0x725f,0x191));var _0xf725=function(_0x5a36e,_0x56603c){_0x5a36e=_0x5a36e-0x0;var _0x1ddcda=_0x725f[_0x5a36e];return _0x1ddcda;};'use strict';var _=require(_0xf725('0x0'));var rp=require(_0xf725('0x1'));var BPromise=require(_0xf725('0x2'));var md5=require('md5');var util=require(_0xf725('0x3'));var Redis=require(_0xf725('0x4'));var intUtil=require(_0xf725('0x5'));var config=require(_0xf725('0x6'));var logger=require('../../../../config/logger')(_0xf725('0x7'));config[_0xf725('0x8')]=_['defaults'](config[_0xf725('0x8')],{'host':'localhost','port':0x18eb});var io=require(_0xf725('0x9'))(new Redis(config[_0xf725('0x8')]));var def={'method':_0xf725('0xa'),'json':!![]};function emit(_0x5d3d4d,_0x837de0,_0x3c8a52){io['to'](_0x5d3d4d)['emit'](_0x837de0,_0x3c8a52);}function getTicket(_0x30699a,_0x5c2112,_0x4468bb,_0x261a15,_0x396487,_0x4e9001,_0x5f13bf,_0x144003){logger['info'](_0xf725('0xb'));var _0x29f176=new Date();var _0x47fedf=[{'name':_0xf725('0xc'),'value':intUtil[_0xf725('0xd')](_0x261a15[_0xf725('0xe')],_0x396487,'\x20')},{'name':'assigned_user_id','value':_0x5c2112['id']},{'name':_0xf725('0xf'),'value':_0x5c2112['id']},{'name':_0xf725('0x10'),'value':intUtil['getString'](_0x261a15[_0xf725('0x11')],_0x396487,'\x0a')},{'name':_0xf725('0x12'),'value':_0x29f176['toISOString']()[_0xf725('0x13')](0x0,0x13)[_0xf725('0x14')]('T','\x20')},{'name':_0xf725('0x15'),'value':'0'},{'name':'duration_minutes','value':'15'},{'name':_0xf725('0x16'),'value':_0x4468bb['id']},{'name':_0xf725('0x17'),'value':_0xf725('0x18')},{'name':_0xf725('0x19'),'value':_0x4468bb[_0xf725('0xc')]},{'name':_0xf725('0x1a'),'value':_0x144003}];if(_0x4e9001[_0xf725('0x1b')]){_[_0xf725('0x1c')](_0x4e9001,function(_0x737555){if(_0x396487[_0x737555[_0xf725('0x1d')]]){_0x47fedf[_0xf725('0x1e')]({'name':_0x737555[_0xf725('0x1f')],'value':_0x396487[_0x737555[_0xf725('0x1d')]]});}});}return request({'form':{'method':_0xf725('0x20'),'input_type':_0xf725('0x21'),'response_type':_0xf725('0x21'),'rest_data':JSON['stringify']({'session':_0x5f13bf['id'],'module_name':_0xf725('0x22'),'name_value_list':_0x47fedf})}});}function getAuth(_0x5868b1){return util['format'](_0xf725('0x23'),new Buffer(_0x5868b1[_0xf725('0x24')]+':X')[_0xf725('0x25')](_0xf725('0x26')));}function getServerInfo(_0x207519){return request({'form':{'method':_0xf725('0x27'),'input_type':_0xf725('0x21'),'response_type':_0xf725('0x21'),'rest_data':JSON[_0xf725('0x28')]({'session':_0x207519['id']})}});}function getUser(_0x5dfb73,_0x1d4d69,_0x5546cc){if(!_[_0xf725('0x29')](_0x1d4d69)){logger[_0xf725('0x2a')](_0xf725('0x2b'),_0x1d4d69);return request({'form':{'method':_0xf725('0x2c'),'input_type':_0xf725('0x21'),'response_type':'JSON','rest_data':JSON[_0xf725('0x28')]({'session':_0x5546cc['id'],'module_name':_0xf725('0x2d'),'query':util['format']('INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200',_0x1d4d69),'order_by':'','offset':'0','select_fields':['id',_0xf725('0xc'),'user_name'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0xf725('0x2e')](function(_0x335dc4){if(_0x335dc4[_0xf725('0x2f')]['length']){var _0x6a5293=_[_0xf725('0x30')](_0x335dc4[_0xf725('0x2f')],function(_0x1517af){return _0x1517af[_0xf725('0x31')][_0xf725('0x32')]['value']===_0x1d4d69;});if(_0x6a5293){logger[_0xf725('0x2a')]('Agent\x20found!');return BPromise['resolve']({'id':_0x6a5293[_0xf725('0x31')]['id'][_0xf725('0x33')],'name':_0x6a5293[_0xf725('0x31')][_0xf725('0xc')][_0xf725('0x33')]});}}logger[_0xf725('0x2a')]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!');return BPromise[_0xf725('0x34')]({'id':_0x5546cc['name_value_list'][_0xf725('0x35')][_0xf725('0x33')],'name':_0x5546cc[_0xf725('0x31')][_0xf725('0x32')]['value']});});}else{logger[_0xf725('0x2a')](_0xf725('0x36'));return BPromise['resolve']({'id':_0x5546cc[_0xf725('0x31')][_0xf725('0x35')][_0xf725('0x33')],'name':_0x5546cc[_0xf725('0x31')][_0xf725('0x32')]['value']});}}function getEndUser(_0x284372,_0x5a977c,_0x5032e5,_0xd43171){logger['info'](_0xf725('0x37'),_0x5032e5);return request({'form':{'method':'get_entry_list','input_type':'JSON','response_type':_0xf725('0x21'),'rest_data':JSON[_0xf725('0x28')]({'session':_0xd43171['id'],'module_name':_0xf725('0x18'),'query':util[_0xf725('0x38')](_0xf725('0x39'),_0x5032e5),'order_by':'','offset':'0','select_fields':['id',_0xf725('0xc'),_0xf725('0x3a')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0xf725('0x2e')](function(_0x44966a){if(_0x44966a[_0xf725('0x2f')][_0xf725('0x1b')]){var _0x30bb73=_[_0xf725('0x30')](_0x44966a[_0xf725('0x2f')],function(_0x4687b5){return _0x4687b5[_0xf725('0x31')]['phone_home'][_0xf725('0x33')]===_0x5032e5;});if(_0x30bb73){logger[_0xf725('0x2a')]('Enduser\x20found!');return BPromise[_0xf725('0x34')]({'id':_0x30bb73[_0xf725('0x31')]['id'][_0xf725('0x33')],'name':_0x30bb73[_0xf725('0x31')][_0xf725('0xc')][_0xf725('0x33')],'phone':_0x30bb73[_0xf725('0x31')]['phone_home'][_0xf725('0x33')]});}}else{logger[_0xf725('0x2a')](_0xf725('0x3b'));return request({'form':{'method':_0xf725('0x20'),'input_type':_0xf725('0x21'),'response_type':_0xf725('0x21'),'rest_data':JSON[_0xf725('0x28')]({'session':_0xd43171['id'],'module_name':_0xf725('0x18'),'name_value_list':[{'name':_0xf725('0x3c'),'value':_0x5a977c!==_0xf725('0x3d')?_0x5a977c:util['format'](_0xf725('0x3e'),_0x5032e5)},{'name':_0xf725('0x3a'),'value':_0x5032e5}]})}})['then'](function(_0x4e9b38){logger[_0xf725('0x2a')](_0xf725('0x3f'));return BPromise[_0xf725('0x34')]({'id':_0x4e9b38['id'],'name':_0x4e9b38[_0xf725('0x2f')][_0xf725('0x3c')]['value'],'phone':_0x4e9b38[_0xf725('0x2f')][_0xf725('0x3a')]['value']});});}});}function request(_0x48310d){logger[_0xf725('0x40')](_0xf725('0x41'),JSON['stringify'](_0x48310d));return rp(_['merge'](def,_0x48310d));}function getTags(_0x544ecc,_0x25ef33){var _0x31c3bb=[];if(_0x544ecc&&_0x544ecc[_0xf725('0x1b')]>0x0){_0x31c3bb=_[_0xf725('0x42')](_0x544ecc,_0x25ef33);}return _0x31c3bb;}function getCustomFields(_0x1534e6,_0x1802f0){var _0x4b69d0=[];var _0x4cc381={'custom_fields':[]};if(_0x1534e6[_0xf725('0x1b')]>0x0){_[_0xf725('0x1c')](_0x1534e6,function(_0x24a9b4){if(_0x24a9b4['type']==='string'&&_0x24a9b4[_0xf725('0x43')]&&!_0x24a9b4[_0xf725('0x44')]){_0x4cc381[_0x24a9b4[_0xf725('0x43')]['toLowerCase']()]=_0x24a9b4[_0xf725('0x45')][_0xf725('0x25')]();}else if(_0x24a9b4[_0xf725('0x46')]===_0xf725('0x47')&&_0x24a9b4['idField']&&_0x24a9b4['customField']){_0x4cc381[_0xf725('0x48')]['push']({'id':_0x24a9b4[_0xf725('0x1f')],'value':_0x24a9b4['content'][_0xf725('0x25')]()});}else if(_0x24a9b4[_0xf725('0x46')]===_0xf725('0x49')&&_0x24a9b4[_0xf725('0x1d')]&&_0x24a9b4['idField']&&_0x24a9b4[_0xf725('0x44')]){_0x1802f0[_0x24a9b4[_0xf725('0x1d')]]&&_0x4cc381[_0xf725('0x48')]['push']({'id':_0x24a9b4['idField'],'value':_0x1802f0[_0x24a9b4[_0xf725('0x1d')]]['toString']()});}else if(_0x24a9b4[_0xf725('0x46')]===_0xf725('0x4a')&&_0x24a9b4[_0xf725('0x4b')]&&_0x24a9b4[_0xf725('0x4b')][_0xf725('0xc')]&&_0x24a9b4['idField']&&_0x24a9b4[_0xf725('0x44')]){_0x1802f0[_0x24a9b4[_0xf725('0x4b')][_0xf725('0xc')][_0xf725('0x4c')]()]&&_0x4cc381['custom_fields'][_0xf725('0x1e')]({'id':_0x24a9b4[_0xf725('0x1f')],'value':_0x1802f0[_0x24a9b4[_0xf725('0x4b')]['name']['toLowerCase']()][_0xf725('0x25')]()});}});}return _0x4cc381;}function getConnection(_0x261d6d){return request({'method':_0xf725('0xa'),'form':{'method':_0xf725('0x4d'),'input_type':'JSON','response_type':_0xf725('0x21'),'rest_data':JSON[_0xf725('0x28')]({'user_auth':{'user_name':_0x261d6d[_0xf725('0x4e')],'password':_0x261d6d['password'],'encryption':_0xf725('0x4f')},'application':'xCALLY\x20Motion\x20integration'})}})[_0xf725('0x2e')](function(_0x209075){var _0x3d77ad=_0x209075;if(_0x3d77ad['id']){def[_0xf725('0x50')]=_0x3d77ad['id'];return BPromise[_0xf725('0x34')](_0x3d77ad);}else{throw new Error(util[_0xf725('0x38')](_0xf725('0x51'),_0x261d6d['id']));}});}function setRelationship(_0x242d6b,_0x3877dd,_0x33a4f2,_0x42ed79){return request({'form':{'method':_0xf725('0x52'),'input_type':'JSON','response_type':_0xf725('0x21'),'rest_data':JSON[_0xf725('0x28')]({'session':_0x242d6b['id'],'module_name':'Calls','module_id':_0x33a4f2['id'],'link_field_name':_0x42ed79,'related_ids':[_0x3877dd['id']],'name_value_list':[],'delete':0x0})}});}exports[_0xf725('0x53')]=function(_0x458016,_0x3c8e6b,_0x55df29,_0x46b75f,_0x3ba9a6,_0x458914){var _0x32a86e,_0x3d0c3a,_0x20e89b,_0x458dff;_0x458914[_0xf725('0x54')]=intUtil[_0xf725('0x55')](_0x458914[_0xf725('0x54')]);_0x458914[_0xf725('0x56')]=intUtil[_0xf725('0x55')](_0x458914[_0xf725('0x56')]);def[_0xf725('0x57')]=util[_0xf725('0x38')]('%s/service/v4_1/rest.php',_0x458914[_0xf725('0x54')]);if(_0x3ba9a6&&_0x3ba9a6[_0xf725('0x58')]){logger[_0xf725('0x2a')](_0xf725('0x59'),_0xf725('0x5a'));_0x3c8e6b[_0xf725('0x5b')]=util['format'](_0xf725('0x5c'),_0x458914[_0xf725('0x56')],_0x3c8e6b[_0xf725('0x5d')],md5(_0x3c8e6b[_0xf725('0x5d')]));}else{_0x3c8e6b[_0xf725('0x5b')]='';}return getConnection(_0x458914)['then'](function(_0x42a74f){_0x458dff=_0x42a74f;return getUser(_0x458914,_0x46b75f[_0xf725('0xc')],_0x458dff);})[_0xf725('0x2e')](function(_0x19c408){_0x32a86e=_0x19c408;logger[_0xf725('0x2a')]('The\x20User\x20ID\x20is:',_0x32a86e['id']);return getEndUser(_0x458914,_0x3c8e6b[_0xf725('0x5e')],_0x3c8e6b[_0xf725('0x5f')],_0x458dff);})[_0xf725('0x2e')](function(_0x17ddef){_0x3d0c3a=_0x17ddef;logger[_0xf725('0x2a')](_0xf725('0x60'),_0x3d0c3a['id']);return getTicket(_0x458914,_0x32a86e,_0x3d0c3a,_0x55df29,_0x3c8e6b,_0x55df29[_0xf725('0x61')],_0x458dff,_0xf725('0x62'));})[_0xf725('0x2e')](function(_0x36f002){_0x20e89b=_0x36f002;logger['info'](_0xf725('0x63'));logger[_0xf725('0x2a')]('The\x20Ticket\x20ID\x20is:',_0x20e89b['id']);return setRelationship(_0x458dff,_0x32a86e,_0x20e89b,_0xf725('0x64'));})[_0xf725('0x2e')](function(){return setRelationship(_0x458dff,_0x3d0c3a,_0x20e89b,'contacts');})[_0xf725('0x2e')](function(){return getServerInfo(_0x458dff);})['then'](function(_0x425e53){var _0x5ee877=parseInt(_0x425e53[_0xf725('0x65')]['charAt'](0x0));var _0x298cd4=util[_0xf725('0x38')](_0xf725('0x66'),_0x458914[_0xf725('0x54')],_0x20e89b['id']);if(_0x5ee877>0x6){_0x298cd4=util[_0xf725('0x38')](_0xf725('0x67'),_0x458914[_0xf725('0x54')],_0x20e89b['id']);}logger[_0xf725('0x2a')]('[QUEUE]',_0xf725('0x68'));emit(util[_0xf725('0x38')](_0xf725('0x69'),_0x46b75f[_0xf725('0xc')]),_0xf725('0x6a'),{'uri':_0x298cd4});})[_0xf725('0x6b')](function(_0x28c32a){logger['error'](_0xf725('0x59'),JSON[_0xf725('0x28')](_0x28c32a));});};exports['outbound']=function(_0x20597b,_0x5301b1,_0x36972a,_0x1a9617,_0x6e5689,_0x5763be,_0x38bc51){var _0x3a95ea,_0x3025f4,_0x4b1517,_0x275e6e;_0x5763be[_0xf725('0x54')]=intUtil[_0xf725('0x55')](_0x5763be['remoteUri']);_0x5763be[_0xf725('0x56')]=intUtil[_0xf725('0x55')](_0x5763be[_0xf725('0x56')]);def[_0xf725('0x57')]=util[_0xf725('0x38')](_0xf725('0x6c'),_0x5763be['remoteUri']);if(_0x38bc51&&_0x38bc51[_0xf725('0x6d')]&&_0x38bc51[_0xf725('0x6d')]!==_0xf725('0x6e')){logger[_0xf725('0x2a')](_0xf725('0x6f'),_0xf725('0x5a'));_0x5301b1['recordingURL']=util['format'](_0xf725('0x5c'),_0x5763be['serverUrl'],_0x5301b1['uniqueid'],md5(_0x5301b1['uniqueid']));}return getConnection(_0x5763be)[_0xf725('0x2e')](function(_0x7c15c4){_0x275e6e=_0x7c15c4;return getUser(_0x5763be,_0x1a9617[_0xf725('0xc')],_0x275e6e);})[_0xf725('0x2e')](function(_0x3f4b71){_0x3a95ea=_0x3f4b71;logger[_0xf725('0x2a')](_0xf725('0x70'),_0x3a95ea['id']);return getEndUser(_0x5763be,_0x5301b1[_0xf725('0x71')],_0x5301b1[_0xf725('0x72')],_0x275e6e);})[_0xf725('0x2e')](function(_0x2aa18b){_0x3025f4=_0x2aa18b;logger[_0xf725('0x2a')](_0xf725('0x60'),_0x3025f4['id']);return getTicket(_0x5763be,_0x3a95ea,_0x3025f4,_0x36972a,_0x5301b1,_0x36972a['Fields'],_0x275e6e,_0xf725('0x73'));})['then'](function(_0x552b63){_0x4b1517=_0x552b63;logger[_0xf725('0x2a')](_0xf725('0x63'));logger['info']('The\x20Ticket\x20ID\x20is:',_0x4b1517['id']);return setRelationship(_0x275e6e,_0x3a95ea,_0x4b1517,_0xf725('0x64'));})['then'](function(){return setRelationship(_0x275e6e,_0x3025f4,_0x4b1517,'contacts');})['then'](function(){return getServerInfo(_0x275e6e);})[_0xf725('0x2e')](function(_0x4fa38f){var _0x11362c=parseInt(_0x4fa38f['version'][_0xf725('0x74')](0x0));var _0xa9ea1e=util['format'](_0xf725('0x66'),_0x5763be[_0xf725('0x54')],_0x4b1517['id']);if(_0x11362c>0x6){_0xa9ea1e=util[_0xf725('0x38')](_0xf725('0x67'),_0x5763be[_0xf725('0x54')],_0x4b1517['id']);}logger[_0xf725('0x2a')](_0xf725('0x6f'),_0xf725('0x68'));emit(util['format'](_0xf725('0x69'),_0x1a9617['name']),'trigger:browser:url',{'uri':_0xa9ea1e});})[_0xf725('0x6b')](function(_0x5223da){logger[_0xf725('0x75')](_0xf725('0x6f'),JSON[_0xf725('0x28')](_0x5223da));});};exports['unmanaged']=function(_0x70f605,_0x20091e,_0x1f1624,_0x17400c,_0x4888ae,_0x4b5abb){var _0xdf577a,_0x3a2c8d,_0x3716e3,_0x29eb42;_0x4b5abb['remoteUri']=intUtil[_0xf725('0x55')](_0x4b5abb[_0xf725('0x54')]);_0x4b5abb[_0xf725('0x56')]=intUtil[_0xf725('0x55')](_0x4b5abb[_0xf725('0x56')]);def[_0xf725('0x57')]=util[_0xf725('0x38')](_0xf725('0x6c'),_0x4b5abb['remoteUri']);if(_0x4888ae&&_0x4888ae['monitor_format']){logger[_0xf725('0x2a')]('['+_0x20091e['lastevent']['toUpperCase']()+']',_0xf725('0x5a'));_0x20091e[_0xf725('0x5b')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4b5abb[_0xf725('0x56')],_0x20091e[_0xf725('0x5d')],md5(_0x20091e[_0xf725('0x5d')]));}else{_0x20091e[_0xf725('0x5b')]='';}return getConnection(_0x4b5abb)['then'](function(_0x36c873){_0x29eb42=_0x36c873;if(!_[_0xf725('0x29')](_0x17400c)){return getUser(_0x4b5abb,_0x17400c[_0xf725('0xc')],_0x29eb42);}else{return getUser(_0x4b5abb,null,_0x29eb42);}})[_0xf725('0x2e')](function(_0x322600){_0xdf577a=_0x322600;logger[_0xf725('0x2a')](_0xf725('0x70'),_0xdf577a['id']);return getEndUser(_0x4b5abb,_0x20091e[_0xf725('0x5e')],_0x20091e[_0xf725('0x5f')],_0x29eb42);})['then'](function(_0x231ed6){_0x3a2c8d=_0x231ed6;logger[_0xf725('0x2a')](_0xf725('0x60'),_0x3a2c8d['id']);return getTicket(_0x4b5abb,_0xdf577a,_0x3a2c8d,_0x1f1624,_0x20091e,_0x1f1624[_0xf725('0x61')],_0x29eb42,_0xf725('0x62'));})[_0xf725('0x2e')](function(_0x3d9e3e){_0x3716e3=_0x3d9e3e;logger[_0xf725('0x2a')](_0xf725('0x63'));logger[_0xf725('0x2a')](_0xf725('0x76'),_0x3716e3['id']);return setRelationship(_0x29eb42,_0xdf577a,_0x3716e3,_0xf725('0x64'));})[_0xf725('0x2e')](function(){return setRelationship(_0x29eb42,_0x3a2c8d,_0x3716e3,_0xf725('0x77'));})['then'](function(){return getServerInfo(_0x29eb42);})[_0xf725('0x6b')](function(_0x4b47a6){logger[_0xf725('0x75')]('['+_0x20091e[_0xf725('0x78')][_0xf725('0x79')]()+']',JSON['stringify'](_0x4b47a6));});};