Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / intVtigerAccount / intVtigerAccount.controller.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 _0xfb50=['api','../../config/environment','../../config/license/util','../../mysqldb','jayson/promise','client','http','info','VtigerAccount,\x20%s,\x20%s','request\x20sent','debug','VtigerAccount,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','status','end','count','offset','limit','Content-Range','json','apply','reject','save','update','then','destroy','sendStatus','stack','name','send','index','map','VtigerAccount','rawAttributes','fieldName','model','keys','filters','intersection','query','attributes','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','type','findAll','show','params','includeAll','include','options','create','body','find','getConfigurations','findOne','VtigerConfiguration','nolimit','addConfiguration','Subjects','Descriptions','getDescriptions','channel','VtigerField','getFields','username','description','moduleName','accessKey','remoteUri','slice','substring','lastIndexOf','format','%s/webservice.php','GET','getchallenge','success','POST','login','describe','sessionName','reference','owner','remove','editable','startsWith','picklist','picklistValues','label','value','log','vTiger\x20error:\x20','test','statusCode','getFields,\x20%s,\x20%s,\x20%s','Wrong\x20credentials','html-pdf','eml-format','fast-json-patch','request-promise','moment','util','path','ejs','lodash','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger'];(function(_0x3a0ebd,_0x47f368){var _0x51a660=function(_0x4023e6){while(--_0x4023e6){_0x3a0ebd['push'](_0x3a0ebd['shift']());}};_0x51a660(++_0x47f368);}(_0xfb50,0x1ec));var _0x0fb5=function(_0x1beef3,_0x57c4b8){_0x1beef3=_0x1beef3-0x0;var _0x5af964=_0xfb50[_0x1beef3];return _0x5af964;};'use strict';var pdf=require(_0x0fb5('0x0'));var emlformat=require(_0x0fb5('0x1'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x0fb5('0x2'));var rp=require(_0x0fb5('0x3'));var moment=require(_0x0fb5('0x4'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x0fb5('0x5'));var path=require(_0x0fb5('0x6'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x0fb5('0x7'));var fs=require('fs');var _=require(_0x0fb5('0x8'));var squel=require(_0x0fb5('0x9'));var crypto=require('crypto');var jsforce=require(_0x0fb5('0xa'));var deskjs=require(_0x0fb5('0xb'));var toCsv=require(_0x0fb5('0xc'));var querystring=require(_0x0fb5('0xd'));var Papa=require(_0x0fb5('0xe'));var Redis=require(_0x0fb5('0xf'));var authService=require(_0x0fb5('0x10'));var qs=require(_0x0fb5('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x0fb5('0x12'));var logger=require(_0x0fb5('0x13'))(_0x0fb5('0x14'));var utils=require('../../config/utils');var config=require(_0x0fb5('0x15'));var licenseUtil=require(_0x0fb5('0x16'));var db=require(_0x0fb5('0x17'))['db'];var integrations=require('../../components/integrations/configuration');var jayson=require(_0x0fb5('0x18'));var client=jayson[_0x0fb5('0x19')][_0x0fb5('0x1a')]({'port':0x232a});function respondWithRpcPromise(_0x4c5a98,_0xcd30d6,_0x2bbb4f,_0x413249){return new BPromise(function(_0x145527,_0x1324d7){var _0x5f50e8=_0x413249||client;return _0x5f50e8['request'](_0x4c5a98,_0x2bbb4f)['then'](function(_0x408f1e){logger[_0x0fb5('0x1b')](_0x0fb5('0x1c'),_0xcd30d6,_0x0fb5('0x1d'));logger[_0x0fb5('0x1e')](_0x0fb5('0x1f'),_0xcd30d6,_0x0fb5('0x1d'),JSON[_0x0fb5('0x20')](_0x408f1e));if(_0x408f1e[_0x0fb5('0x21')]){if(_0x408f1e['error'][_0x0fb5('0x22')]===0x1f4){logger[_0x0fb5('0x21')](_0x0fb5('0x1c'),_0xcd30d6,_0x408f1e['error']['message']);return _0x1324d7(_0x408f1e[_0x0fb5('0x21')][_0x0fb5('0x23')]);}logger[_0x0fb5('0x21')](_0x0fb5('0x1c'),_0xcd30d6,_0x408f1e['error'][_0x0fb5('0x23')]);return _0x145527(_0x408f1e['error'][_0x0fb5('0x23')]);}else{logger[_0x0fb5('0x1b')](_0x0fb5('0x1c'),_0xcd30d6,_0x0fb5('0x1d'));_0x145527(_0x408f1e[_0x0fb5('0x24')][_0x0fb5('0x23')]);}})[_0x0fb5('0x25')](function(_0x35d0ef){logger[_0x0fb5('0x21')](_0x0fb5('0x1c'),_0xcd30d6,_0x35d0ef);_0x1324d7(_0x35d0ef);});});}function respondWithStatusCode(_0x54563f,_0x44fd60){_0x44fd60=_0x44fd60||0xcc;return function(_0x2499e7){if(_0x2499e7){return _0x54563f['sendStatus'](_0x44fd60);}return _0x54563f[_0x0fb5('0x26')](_0x44fd60)[_0x0fb5('0x27')]();};}function respondWithResult(_0x651223,_0x5c630c){_0x5c630c=_0x5c630c||0xc8;return function(_0x17a3f9){if(_0x17a3f9){return _0x651223['status'](_0x5c630c)['json'](_0x17a3f9);}};}function respondWithFilteredResult(_0x1aee90,_0x4400ff){return function(_0x184989){if(_0x184989){var _0xa62cf4=_0x184989[_0x0fb5('0x28')],_0x5e525f=_0x4400ff[_0x0fb5('0x29')],_0x4b538f=_0x4400ff['offset']+_0x4400ff[_0x0fb5('0x2a')],_0x3d215e;if(_0x4b538f>=_0xa62cf4){_0x4b538f=_0xa62cf4;_0x3d215e=0xc8;}else{_0x3d215e=0xce;}_0x1aee90['status'](_0x3d215e);return _0x1aee90['set'](_0x0fb5('0x2b'),_0x5e525f+'-'+_0x4b538f+'/'+_0xa62cf4)[_0x0fb5('0x2c')](_0x184989);}return null;};}function patchUpdates(_0x40ee05){return function(_0x14a1e1){try{jsonpatch[_0x0fb5('0x2d')](_0x14a1e1,_0x40ee05,!![]);}catch(_0x3f0dfb){return BPromise[_0x0fb5('0x2e')](_0x3f0dfb);}return _0x14a1e1[_0x0fb5('0x2f')]();};}function saveUpdates(_0x5e6cb2,_0x55f06a){return function(_0xac39ce){if(_0xac39ce){return _0xac39ce[_0x0fb5('0x30')](_0x5e6cb2)[_0x0fb5('0x31')](function(_0x4cd798){return _0x4cd798;});}return null;};}function removeEntity(_0x6dad9d,_0x2c7ee1){return function(_0x40a00c){if(_0x40a00c){return _0x40a00c[_0x0fb5('0x32')]()[_0x0fb5('0x31')](function(){_0x6dad9d[_0x0fb5('0x26')](0xcc)[_0x0fb5('0x27')]();});}};}function handleEntityNotFound(_0x44cdec,_0x5906aa){return function(_0x1f0c76){if(!_0x1f0c76){_0x44cdec[_0x0fb5('0x33')](0x194);}return _0x1f0c76;};}function handleError(_0x16eef1,_0x1adf3c){_0x1adf3c=_0x1adf3c||0x1f4;return function(_0x201cbb){logger['error'](_0x201cbb[_0x0fb5('0x34')]);if(_0x201cbb[_0x0fb5('0x35')]){delete _0x201cbb[_0x0fb5('0x35')];}_0x16eef1[_0x0fb5('0x26')](_0x1adf3c)[_0x0fb5('0x36')](_0x201cbb);};}exports[_0x0fb5('0x37')]=function(_0x189e0a,_0x3ab2ec){var _0x39414c={},_0x555485={},_0x2ace1e={'count':0x0,'rows':[]};var _0x140924=_[_0x0fb5('0x38')](db[_0x0fb5('0x39')][_0x0fb5('0x3a')],function(_0x245ec5){return{'name':_0x245ec5[_0x0fb5('0x3b')],'type':_0x245ec5['type']['key']};});_0x555485[_0x0fb5('0x3c')]=_[_0x0fb5('0x38')](_0x140924,'name');_0x555485['query']=_[_0x0fb5('0x3d')](_0x189e0a['query']);_0x555485[_0x0fb5('0x3e')]=_[_0x0fb5('0x3f')](_0x555485[_0x0fb5('0x3c')],_0x555485[_0x0fb5('0x40')]);_0x39414c[_0x0fb5('0x41')]=_['intersection'](_0x555485['model'],qs[_0x0fb5('0x42')](_0x189e0a[_0x0fb5('0x40')]['fields']));_0x39414c[_0x0fb5('0x41')]=_0x39414c['attributes'][_0x0fb5('0x43')]?_0x39414c[_0x0fb5('0x41')]:_0x555485[_0x0fb5('0x3c')];if(!_0x189e0a[_0x0fb5('0x40')][_0x0fb5('0x44')]('nolimit')){_0x39414c['limit']=qs[_0x0fb5('0x2a')](_0x189e0a[_0x0fb5('0x40')][_0x0fb5('0x2a')]);_0x39414c[_0x0fb5('0x29')]=qs[_0x0fb5('0x29')](_0x189e0a['query'][_0x0fb5('0x29')]);}_0x39414c[_0x0fb5('0x45')]=qs[_0x0fb5('0x46')](_0x189e0a[_0x0fb5('0x40')]['sort']);_0x39414c[_0x0fb5('0x47')]=qs[_0x0fb5('0x3e')](_[_0x0fb5('0x48')](_0x189e0a[_0x0fb5('0x40')],_0x555485['filters']),_0x140924);if(_0x189e0a['query'][_0x0fb5('0x49')]){_0x39414c[_0x0fb5('0x47')]=_[_0x0fb5('0x4a')](_0x39414c[_0x0fb5('0x47')],{'$or':_['map'](_0x140924,function(_0x66023b){if(_0x66023b[_0x0fb5('0x4b')]!=='VIRTUAL'){var _0x5dd7a9={};_0x5dd7a9[_0x66023b[_0x0fb5('0x35')]]={'$like':'%'+_0x189e0a[_0x0fb5('0x40')]['filter']+'%'};return _0x5dd7a9;}})});}_0x39414c=_['merge']({},_0x39414c,_0x189e0a['options']);var _0x1a387a={'where':_0x39414c[_0x0fb5('0x47')]};return db['VtigerAccount'][_0x0fb5('0x28')](_0x1a387a)[_0x0fb5('0x31')](function(_0x1e4706){_0x2ace1e[_0x0fb5('0x28')]=_0x1e4706;if(_0x189e0a[_0x0fb5('0x40')]['includeAll']){_0x39414c['include']=[{'all':!![]}];}return db[_0x0fb5('0x39')][_0x0fb5('0x4c')](_0x39414c);})['then'](function(_0x310f98){_0x2ace1e['rows']=_0x310f98;return _0x2ace1e;})[_0x0fb5('0x31')](respondWithFilteredResult(_0x3ab2ec,_0x39414c))[_0x0fb5('0x25')](handleError(_0x3ab2ec,null));};exports[_0x0fb5('0x4d')]=function(_0x4cb514,_0x286fac){var _0x5876a1={'raw':![],'where':{'id':_0x4cb514[_0x0fb5('0x4e')]['id']}},_0x505531={};_0x505531['model']=_['keys'](db['VtigerAccount'][_0x0fb5('0x3a')]);_0x505531[_0x0fb5('0x40')]=_[_0x0fb5('0x3d')](_0x4cb514['query']);_0x505531[_0x0fb5('0x3e')]=_[_0x0fb5('0x3f')](_0x505531['model'],_0x505531[_0x0fb5('0x40')]);_0x5876a1[_0x0fb5('0x41')]=_['intersection'](_0x505531[_0x0fb5('0x3c')],qs[_0x0fb5('0x42')](_0x4cb514[_0x0fb5('0x40')]['fields']));_0x5876a1[_0x0fb5('0x41')]=_0x5876a1[_0x0fb5('0x41')]['length']?_0x5876a1[_0x0fb5('0x41')]:_0x505531[_0x0fb5('0x3c')];if(_0x4cb514[_0x0fb5('0x40')][_0x0fb5('0x4f')]){_0x5876a1[_0x0fb5('0x50')]=[{'all':!![]}];}_0x5876a1=_[_0x0fb5('0x4a')]({},_0x5876a1,_0x4cb514[_0x0fb5('0x51')]);return db[_0x0fb5('0x39')]['find'](_0x5876a1)[_0x0fb5('0x31')](handleEntityNotFound(_0x286fac,null))['then'](respondWithResult(_0x286fac,null))[_0x0fb5('0x25')](handleError(_0x286fac,null));};exports[_0x0fb5('0x52')]=function(_0x520de8,_0x32f1c9){return db[_0x0fb5('0x39')]['create'](_0x520de8[_0x0fb5('0x53')],{})[_0x0fb5('0x31')](respondWithResult(_0x32f1c9,0xc9))[_0x0fb5('0x25')](handleError(_0x32f1c9,null));};exports['update']=function(_0x40306b,_0x29bf75){if(_0x40306b[_0x0fb5('0x53')]['id']){delete _0x40306b[_0x0fb5('0x53')]['id'];}return db[_0x0fb5('0x39')][_0x0fb5('0x54')]({'where':{'id':_0x40306b[_0x0fb5('0x4e')]['id']}})[_0x0fb5('0x31')](handleEntityNotFound(_0x29bf75,null))['then'](saveUpdates(_0x40306b[_0x0fb5('0x53')],null))[_0x0fb5('0x31')](respondWithResult(_0x29bf75,null))['catch'](handleError(_0x29bf75,null));};exports[_0x0fb5('0x32')]=function(_0x23bbc9,_0x5f497c){return db[_0x0fb5('0x39')][_0x0fb5('0x54')]({'where':{'id':_0x23bbc9[_0x0fb5('0x4e')]['id']}})[_0x0fb5('0x31')](handleEntityNotFound(_0x5f497c,null))[_0x0fb5('0x31')](removeEntity(_0x5f497c,null))[_0x0fb5('0x25')](handleError(_0x5f497c,null));};exports[_0x0fb5('0x55')]=function(_0x3f78ee,_0x48c759,_0x254db1){var _0x44e331={};var _0x3f9116={};var _0x58bde1;var _0x1183a8;return db['VtigerAccount'][_0x0fb5('0x56')]({'where':{'id':_0x3f78ee['params']['id']}})[_0x0fb5('0x31')](handleEntityNotFound(_0x48c759,null))[_0x0fb5('0x31')](function(_0x251aa9){if(_0x251aa9){_0x58bde1=_0x251aa9;_0x3f9116['model']=_[_0x0fb5('0x3d')](db[_0x0fb5('0x57')]['rawAttributes']);_0x3f9116['query']=_['keys'](_0x3f78ee[_0x0fb5('0x40')]);_0x3f9116['filters']=_[_0x0fb5('0x3f')](_0x3f9116[_0x0fb5('0x3c')],_0x3f9116[_0x0fb5('0x40')]);_0x44e331['attributes']=_[_0x0fb5('0x3f')](_0x3f9116[_0x0fb5('0x3c')],qs[_0x0fb5('0x42')](_0x3f78ee[_0x0fb5('0x40')][_0x0fb5('0x42')]));_0x44e331[_0x0fb5('0x41')]=_0x44e331['attributes'][_0x0fb5('0x43')]?_0x44e331['attributes']:_0x3f9116[_0x0fb5('0x3c')];_0x44e331[_0x0fb5('0x45')]=qs[_0x0fb5('0x46')](_0x3f78ee[_0x0fb5('0x40')][_0x0fb5('0x46')]);_0x44e331[_0x0fb5('0x47')]=qs[_0x0fb5('0x3e')](_[_0x0fb5('0x48')](_0x3f78ee['query'],_0x3f9116[_0x0fb5('0x3e')]));if(_0x3f78ee[_0x0fb5('0x40')]['filter']){_0x44e331[_0x0fb5('0x47')]=_['merge'](_0x44e331['where'],{'$or':_[_0x0fb5('0x38')](_0x44e331['attributes'],function(_0x1bed6c){var _0x5c647c={};_0x5c647c[_0x1bed6c]={'$like':'%'+_0x3f78ee[_0x0fb5('0x40')][_0x0fb5('0x49')]+'%'};return _0x5c647c;})});}_0x44e331=_[_0x0fb5('0x4a')]({},_0x44e331,_0x3f78ee[_0x0fb5('0x51')]);return _0x58bde1['getConfigurations'](_0x44e331);}})[_0x0fb5('0x31')](function(_0x5c98db){if(_0x5c98db){_0x1183a8=_0x5c98db[_0x0fb5('0x43')];if(!_0x3f78ee[_0x0fb5('0x40')][_0x0fb5('0x44')](_0x0fb5('0x58'))){_0x44e331['limit']=qs['limit'](_0x3f78ee[_0x0fb5('0x40')][_0x0fb5('0x2a')]);_0x44e331[_0x0fb5('0x29')]=qs[_0x0fb5('0x29')](_0x3f78ee[_0x0fb5('0x40')][_0x0fb5('0x29')]);}return _0x58bde1['getConfigurations'](_0x44e331);}})[_0x0fb5('0x31')](function(_0x10b183){if(_0x10b183){return _0x10b183?{'count':_0x1183a8,'rows':_0x10b183}:null;}})[_0x0fb5('0x31')](respondWithResult(_0x48c759,null))[_0x0fb5('0x25')](handleError(_0x48c759,null));};exports[_0x0fb5('0x59')]=function(_0x1b1f25,_0x1c6431,_0x50f054){if(_0x1b1f25['body']['id']){delete _0x1b1f25[_0x0fb5('0x53')]['id'];}return db[_0x0fb5('0x39')]['findOne']({'where':{'id':_0x1b1f25[_0x0fb5('0x4e')]['id']}})[_0x0fb5('0x31')](handleEntityNotFound(_0x1c6431,null))['then'](function(_0x459110){if(_0x459110){_0x1b1f25['body']['AccountId']=_0x459110['id'];_0x1b1f25['body'][_0x0fb5('0x5a')]=integrations['getSubjects'](_0x1b1f25[_0x0fb5('0x53')]['channel'],_0x1b1f25[_0x0fb5('0x53')][_0x0fb5('0x4b')]);_0x1b1f25[_0x0fb5('0x53')][_0x0fb5('0x5b')]=integrations[_0x0fb5('0x5c')](_0x1b1f25['body'][_0x0fb5('0x5d')],_0x1b1f25[_0x0fb5('0x53')][_0x0fb5('0x4b')]);return db[_0x0fb5('0x57')][_0x0fb5('0x52')](_0x1b1f25[_0x0fb5('0x53')],{'include':[{'model':db['VtigerField'],'as':'Subjects'},{'model':db[_0x0fb5('0x5e')],'as':_0x0fb5('0x5b')}]});}return null;})[_0x0fb5('0x31')](respondWithResult(_0x1c6431,null))[_0x0fb5('0x25')](handleError(_0x1c6431,null));};var md5=require('md5');exports[_0x0fb5('0x5f')]=function(_0x1fd8cd,_0x3c83a1,_0x312af3){var _0x4e23a1=null;var _0x8d0f83=null;var _0x2530e0=null;var _0x16bd40=null;var _0x5833d7='';return db[_0x0fb5('0x39')][_0x0fb5('0x56')]({'where':{'id':_0x1fd8cd['params']['id']},'attributes':['id',_0x0fb5('0x35'),_0x0fb5('0x60'),_0x0fb5('0x61'),_0x0fb5('0x62'),'remoteUri','serverUrl','accessKey']})[_0x0fb5('0x31')](handleEntityNotFound(_0x3c83a1,null))[_0x0fb5('0x31')](function(_0x5d4d35){if(_0x5d4d35){_0x4e23a1=_0x5d4d35[_0x0fb5('0x60')];_0x8d0f83=_0x5d4d35[_0x0fb5('0x63')];_0x2530e0=_0x5d4d35[_0x0fb5('0x62')];_0x5833d7=_0x5d4d35[_0x0fb5('0x64')];var _0x482845=_0x5833d7[_0x0fb5('0x65')](-0x1);if(_0x482845==='/'){_0x5833d7=_0x5833d7[_0x0fb5('0x66')](0x0,_0x5833d7[_0x0fb5('0x67')](_0x482845));}_0x16bd40=util[_0x0fb5('0x68')](_0x0fb5('0x69'),_0x5833d7);var _0x3ddb6a={'method':_0x0fb5('0x6a'),'uri':_0x16bd40,'qs':{'operation':_0x0fb5('0x6b'),'username':_0x5d4d35['username']},'json':!![]};return rp(_0x3ddb6a);}})[_0x0fb5('0x31')](function(_0xc9f8cb){if(_0xc9f8cb[_0x0fb5('0x6c')]){var _0x5194b2={'method':_0x0fb5('0x6d'),'uri':_0x16bd40,'form':{'operation':_0x0fb5('0x6e'),'username':_0x4e23a1,'accessKey':md5(_0xc9f8cb[_0x0fb5('0x24')]['token']+_0x8d0f83)},'json':!![]};return rp(_0x5194b2);}})[_0x0fb5('0x31')](function(_0x1b1c18){if(_0x1b1c18[_0x0fb5('0x6c')]){var _0x2d6774={'method':_0x0fb5('0x6a'),'uri':_0x16bd40,'qs':{'operation':_0x0fb5('0x6f'),'username':_0x4e23a1,'sessionName':_0x1b1c18[_0x0fb5('0x24')][_0x0fb5('0x70')],'elementType':_0x2530e0},'json':!![]};return rp(_0x2d6774);}})['then'](function(_0x318b98){if(_0x318b98[_0x0fb5('0x6c')]){var _0x542487=['autogenerated',_0x0fb5('0x71'),_0x0fb5('0x72')];_[_0x0fb5('0x73')](_0x318b98[_0x0fb5('0x24')][_0x0fb5('0x42')],function(_0x113347){return _0x542487['includes'](_0x113347[_0x0fb5('0x4b')][_0x0fb5('0x35')]);});_[_0x0fb5('0x73')](_0x318b98['result']['fields'],function(_0xe42853){return _0xe42853[_0x0fb5('0x74')]==='false';});return{'count':_0x318b98['result'][_0x0fb5('0x42')][_0x0fb5('0x43')],'rows':_['map'](_0x318b98[_0x0fb5('0x24')][_0x0fb5('0x42')],function(_0x36cc63){return{'id':_0x36cc63['name'],'name':_0x36cc63['label'],'custom':_[_0x0fb5('0x75')](_0x36cc63[_0x0fb5('0x35')],'cf_')?!![]:![],'options':_0x36cc63[_0x0fb5('0x4b')]['name']===_0x0fb5('0x76')&&_0x36cc63['type'][_0x0fb5('0x77')][_0x0fb5('0x43')]>0x0?_[_0x0fb5('0x38')](_0x36cc63[_0x0fb5('0x4b')]['picklistValues'],function(_0xda3e92){return{'name':_0xda3e92[_0x0fb5('0x78')],'value':_0xda3e92[_0x0fb5('0x79')]};}):[]};})};}})[_0x0fb5('0x31')](respondWithResult(_0x3c83a1,null))['catch'](function(_0x578f51){console[_0x0fb5('0x7a')](_0x0fb5('0x7b')+_0x578f51);var _0x2a2791=_0x1fd8cd['query'][_0x0fb5('0x7c')]?0x1f4:_0x578f51[_0x0fb5('0x7d')]||0x1f4;logger[_0x0fb5('0x21')](_0x0fb5('0x7e'),_0x0fb5('0x5f'),_0x2a2791,JSON[_0x0fb5('0x20')](_0x578f51));delete _0x578f51[_0x0fb5('0x35')];if(_0x2a2791===0x191){_0x2a2791=0x190;}_0x3c83a1[_0x0fb5('0x26')](_0x2a2791)['send'](_0x1fd8cd['query']['test']?{'message':_0x0fb5('0x7f'),'statusCode':_0x578f51['statusCode']}:_0x578f51);});};