Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / intSalesforceAccount / intSalesforceAccount.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 _0x4b17=['Wrong\x20credentials','html-pdf','rimraf','fast-json-patch','request-promise','bluebird','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','client','http','request','then','info','SalesforceAccount,\x20%s,\x20%s','debug','SalesforceAccount,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','status','end','json','count','offset','limit','set','Content-Range','reject','save','destroy','sendStatus','stack','name','send','index','map','SalesforceAccount','rawAttributes','fieldName','key','model','query','keys','intersection','attributes','fields','hasOwnProperty','nolimit','sort','where','filters','pick','filter','merge','type','VIRTUAL','options','include','findAll','show','params','length','includeAll','find','create','update','body','getConfigurations','SalesforceConfiguration','order','addConfiguration','AccountId','Subjects','channel','Descriptions','getDescriptions','SalesforceField','getFields','Task','findOne','remoteUri','clientSecret','username','password','slice','lastIndexOf','login','concat','securityToken','ticketType','sobject','describe','CallDisposition','CallDurationInSeconds','CallObject','CallType','IsArchived','Status','Type','isNil','Case','Origin','Priority','IsEscalated','SuppliedName','remove','custom','includes','label','picklistValues','value','boolean','True','false','test','statusCode'];(function(_0x1603dd,_0x468696){var _0x60a463=function(_0x285b37){while(--_0x285b37){_0x1603dd['push'](_0x1603dd['shift']());}};_0x60a463(++_0x468696);}(_0x4b17,0x10f));var _0x74b1=function(_0x802997,_0x5534a2){_0x802997=_0x802997-0x0;var _0x35c641=_0x4b17[_0x802997];return _0x35c641;};'use strict';var pdf=require(_0x74b1('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x74b1('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x74b1('0x2'));var rp=require(_0x74b1('0x3'));var moment=require('moment');var BPromise=require(_0x74b1('0x4'));var Mustache=require('mustache');var util=require('util');var path=require(_0x74b1('0x5'));var sox=require(_0x74b1('0x6'));var csv=require(_0x74b1('0x7'));var ejs=require(_0x74b1('0x8'));var fs=require('fs');var _=require(_0x74b1('0x9'));var squel=require(_0x74b1('0xa'));var crypto=require(_0x74b1('0xb'));var jsforce=require('jsforce');var deskjs=require(_0x74b1('0xc'));var toCsv=require(_0x74b1('0x7'));var querystring=require(_0x74b1('0xd'));var Papa=require(_0x74b1('0xe'));var Redis=require(_0x74b1('0xf'));var authService=require('../../components/auth/service');var qs=require(_0x74b1('0x10'));var as=require(_0x74b1('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x74b1('0x12'))(_0x74b1('0x13'));var utils=require(_0x74b1('0x14'));var config=require(_0x74b1('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0x74b1('0x16'))['db'];var integrations=require('../../components/integrations/configuration');var jayson=require('jayson/promise');var client=jayson[_0x74b1('0x17')][_0x74b1('0x18')]({'port':0x232a});function respondWithRpcPromise(_0x54ff6f,_0x5a03fc,_0x500ce2,_0x86390){return new BPromise(function(_0x5c12eb,_0x4e289b){var _0x2ccba6=_0x86390||client;return _0x2ccba6[_0x74b1('0x19')](_0x54ff6f,_0x500ce2)[_0x74b1('0x1a')](function(_0x420662){logger[_0x74b1('0x1b')](_0x74b1('0x1c'),_0x5a03fc,'request\x20sent');logger[_0x74b1('0x1d')](_0x74b1('0x1e'),_0x5a03fc,_0x74b1('0x1f'),JSON[_0x74b1('0x20')](_0x420662));if(_0x420662[_0x74b1('0x21')]){if(_0x420662[_0x74b1('0x21')][_0x74b1('0x22')]===0x1f4){logger['error'](_0x74b1('0x1c'),_0x5a03fc,_0x420662[_0x74b1('0x21')]['message']);return _0x4e289b(_0x420662[_0x74b1('0x21')][_0x74b1('0x23')]);}logger[_0x74b1('0x21')](_0x74b1('0x1c'),_0x5a03fc,_0x420662[_0x74b1('0x21')][_0x74b1('0x23')]);return _0x5c12eb(_0x420662[_0x74b1('0x21')][_0x74b1('0x23')]);}else{logger['info'](_0x74b1('0x1c'),_0x5a03fc,'request\x20sent');_0x5c12eb(_0x420662['result']['message']);}})[_0x74b1('0x24')](function(_0x13fadc){logger[_0x74b1('0x21')](_0x74b1('0x1c'),_0x5a03fc,_0x13fadc);_0x4e289b(_0x13fadc);});});}function respondWithStatusCode(_0x563781,_0x4ee88b){_0x4ee88b=_0x4ee88b||0xcc;return function(_0x3c78e5){if(_0x3c78e5){return _0x563781['sendStatus'](_0x4ee88b);}return _0x563781[_0x74b1('0x25')](_0x4ee88b)[_0x74b1('0x26')]();};}function respondWithResult(_0xb5af0,_0x14a651){_0x14a651=_0x14a651||0xc8;return function(_0x3239d8){if(_0x3239d8){return _0xb5af0[_0x74b1('0x25')](_0x14a651)[_0x74b1('0x27')](_0x3239d8);}};}function respondWithFilteredResult(_0x33fa8e,_0x4c7f05){return function(_0x322e61){if(_0x322e61){var _0x42b69d=_0x322e61[_0x74b1('0x28')],_0x4099af=_0x4c7f05[_0x74b1('0x29')],_0x5c32d2=_0x4c7f05[_0x74b1('0x29')]+_0x4c7f05[_0x74b1('0x2a')],_0x1998cd;if(_0x5c32d2>=_0x42b69d){_0x5c32d2=_0x42b69d;_0x1998cd=0xc8;}else{_0x1998cd=0xce;}_0x33fa8e[_0x74b1('0x25')](_0x1998cd);return _0x33fa8e[_0x74b1('0x2b')](_0x74b1('0x2c'),_0x4099af+'-'+_0x5c32d2+'/'+_0x42b69d)['json'](_0x322e61);}return null;};}function patchUpdates(_0xe74c82){return function(_0x40b32a){try{jsonpatch['apply'](_0x40b32a,_0xe74c82,!![]);}catch(_0x543b5){return BPromise[_0x74b1('0x2d')](_0x543b5);}return _0x40b32a[_0x74b1('0x2e')]();};}function saveUpdates(_0x5f4d1b,_0x113300){return function(_0x46b642){if(_0x46b642){return _0x46b642['update'](_0x5f4d1b)[_0x74b1('0x1a')](function(_0x33ec7c){return _0x33ec7c;});}return null;};}function removeEntity(_0x2211b2,_0x31c321){return function(_0x68a3bd){if(_0x68a3bd){return _0x68a3bd[_0x74b1('0x2f')]()[_0x74b1('0x1a')](function(){_0x2211b2[_0x74b1('0x25')](0xcc)['end']();});}};}function handleEntityNotFound(_0x3d5fc0,_0x57288f){return function(_0x4c1875){if(!_0x4c1875){_0x3d5fc0[_0x74b1('0x30')](0x194);}return _0x4c1875;};}function handleError(_0x4ecc7b,_0x52d96f){_0x52d96f=_0x52d96f||0x1f4;return function(_0x3fd43c){logger[_0x74b1('0x21')](_0x3fd43c[_0x74b1('0x31')]);if(_0x3fd43c[_0x74b1('0x32')]){delete _0x3fd43c[_0x74b1('0x32')];}_0x4ecc7b[_0x74b1('0x25')](_0x52d96f)[_0x74b1('0x33')](_0x3fd43c);};}exports[_0x74b1('0x34')]=function(_0x5607d2,_0x5382b4){var _0x5a9a27={},_0xa7d032={},_0x57f7b5={'count':0x0,'rows':[]};var _0x485471=_[_0x74b1('0x35')](db[_0x74b1('0x36')][_0x74b1('0x37')],function(_0x4c284c){return{'name':_0x4c284c[_0x74b1('0x38')],'type':_0x4c284c['type'][_0x74b1('0x39')]};});_0xa7d032[_0x74b1('0x3a')]=_['map'](_0x485471,'name');_0xa7d032[_0x74b1('0x3b')]=_[_0x74b1('0x3c')](_0x5607d2['query']);_0xa7d032['filters']=_[_0x74b1('0x3d')](_0xa7d032['model'],_0xa7d032[_0x74b1('0x3b')]);_0x5a9a27[_0x74b1('0x3e')]=_[_0x74b1('0x3d')](_0xa7d032[_0x74b1('0x3a')],qs[_0x74b1('0x3f')](_0x5607d2['query'][_0x74b1('0x3f')]));_0x5a9a27['attributes']=_0x5a9a27[_0x74b1('0x3e')]['length']?_0x5a9a27[_0x74b1('0x3e')]:_0xa7d032['model'];if(!_0x5607d2['query'][_0x74b1('0x40')](_0x74b1('0x41'))){_0x5a9a27[_0x74b1('0x2a')]=qs['limit'](_0x5607d2[_0x74b1('0x3b')][_0x74b1('0x2a')]);_0x5a9a27[_0x74b1('0x29')]=qs['offset'](_0x5607d2[_0x74b1('0x3b')][_0x74b1('0x29')]);}_0x5a9a27['order']=qs['sort'](_0x5607d2[_0x74b1('0x3b')][_0x74b1('0x42')]);_0x5a9a27[_0x74b1('0x43')]=qs[_0x74b1('0x44')](_[_0x74b1('0x45')](_0x5607d2[_0x74b1('0x3b')],_0xa7d032[_0x74b1('0x44')]),_0x485471);if(_0x5607d2['query'][_0x74b1('0x46')]){_0x5a9a27[_0x74b1('0x43')]=_[_0x74b1('0x47')](_0x5a9a27[_0x74b1('0x43')],{'$or':_[_0x74b1('0x35')](_0x485471,function(_0x525a8f){if(_0x525a8f[_0x74b1('0x48')]!==_0x74b1('0x49')){var _0x5b06f1={};_0x5b06f1[_0x525a8f['name']]={'$like':'%'+_0x5607d2[_0x74b1('0x3b')][_0x74b1('0x46')]+'%'};return _0x5b06f1;}})});}_0x5a9a27=_['merge']({},_0x5a9a27,_0x5607d2[_0x74b1('0x4a')]);var _0xac6888={'where':_0x5a9a27[_0x74b1('0x43')]};return db[_0x74b1('0x36')][_0x74b1('0x28')](_0xac6888)[_0x74b1('0x1a')](function(_0x8e8d85){_0x57f7b5['count']=_0x8e8d85;if(_0x5607d2['query']['includeAll']){_0x5a9a27[_0x74b1('0x4b')]=[{'all':!![]}];}return db[_0x74b1('0x36')][_0x74b1('0x4c')](_0x5a9a27);})[_0x74b1('0x1a')](function(_0x176769){_0x57f7b5['rows']=_0x176769;return _0x57f7b5;})[_0x74b1('0x1a')](respondWithFilteredResult(_0x5382b4,_0x5a9a27))[_0x74b1('0x24')](handleError(_0x5382b4,null));};exports[_0x74b1('0x4d')]=function(_0x33c215,_0x20dd34){var _0x1c92f0={'raw':![],'where':{'id':_0x33c215[_0x74b1('0x4e')]['id']}},_0x36f349={};_0x36f349[_0x74b1('0x3a')]=_[_0x74b1('0x3c')](db[_0x74b1('0x36')][_0x74b1('0x37')]);_0x36f349['query']=_[_0x74b1('0x3c')](_0x33c215[_0x74b1('0x3b')]);_0x36f349['filters']=_[_0x74b1('0x3d')](_0x36f349['model'],_0x36f349[_0x74b1('0x3b')]);_0x1c92f0[_0x74b1('0x3e')]=_['intersection'](_0x36f349[_0x74b1('0x3a')],qs[_0x74b1('0x3f')](_0x33c215[_0x74b1('0x3b')]['fields']));_0x1c92f0[_0x74b1('0x3e')]=_0x1c92f0[_0x74b1('0x3e')][_0x74b1('0x4f')]?_0x1c92f0[_0x74b1('0x3e')]:_0x36f349[_0x74b1('0x3a')];if(_0x33c215['query'][_0x74b1('0x50')]){_0x1c92f0['include']=[{'all':!![]}];}_0x1c92f0=_[_0x74b1('0x47')]({},_0x1c92f0,_0x33c215[_0x74b1('0x4a')]);return db['SalesforceAccount'][_0x74b1('0x51')](_0x1c92f0)[_0x74b1('0x1a')](handleEntityNotFound(_0x20dd34,null))[_0x74b1('0x1a')](respondWithResult(_0x20dd34,null))['catch'](handleError(_0x20dd34,null));};exports[_0x74b1('0x52')]=function(_0x37b907,_0x55a7a6){return db[_0x74b1('0x36')]['create'](_0x37b907['body'],{})[_0x74b1('0x1a')](respondWithResult(_0x55a7a6,0xc9))[_0x74b1('0x24')](handleError(_0x55a7a6,null));};exports[_0x74b1('0x53')]=function(_0x1327ff,_0x41b45f){if(_0x1327ff['body']['id']){delete _0x1327ff[_0x74b1('0x54')]['id'];}return db[_0x74b1('0x36')]['find']({'where':{'id':_0x1327ff[_0x74b1('0x4e')]['id']}})[_0x74b1('0x1a')](handleEntityNotFound(_0x41b45f,null))[_0x74b1('0x1a')](saveUpdates(_0x1327ff['body'],null))[_0x74b1('0x1a')](respondWithResult(_0x41b45f,null))[_0x74b1('0x24')](handleError(_0x41b45f,null));};exports[_0x74b1('0x2f')]=function(_0x5b2549,_0x2f09d6){return db[_0x74b1('0x36')][_0x74b1('0x51')]({'where':{'id':_0x5b2549[_0x74b1('0x4e')]['id']}})[_0x74b1('0x1a')](handleEntityNotFound(_0x2f09d6,null))[_0x74b1('0x1a')](removeEntity(_0x2f09d6,null))['catch'](handleError(_0x2f09d6,null));};exports[_0x74b1('0x55')]=function(_0x5004e9,_0x5343c4,_0x119b2d){var _0x5b465d={};var _0x498792={};var _0x10eab8;var _0x29ab63;return db[_0x74b1('0x36')]['findOne']({'where':{'id':_0x5004e9[_0x74b1('0x4e')]['id']}})[_0x74b1('0x1a')](handleEntityNotFound(_0x5343c4,null))[_0x74b1('0x1a')](function(_0x1fe728){if(_0x1fe728){_0x10eab8=_0x1fe728;_0x498792[_0x74b1('0x3a')]=_[_0x74b1('0x3c')](db[_0x74b1('0x56')][_0x74b1('0x37')]);_0x498792[_0x74b1('0x3b')]=_[_0x74b1('0x3c')](_0x5004e9[_0x74b1('0x3b')]);_0x498792[_0x74b1('0x44')]=_['intersection'](_0x498792['model'],_0x498792[_0x74b1('0x3b')]);_0x5b465d['attributes']=_[_0x74b1('0x3d')](_0x498792[_0x74b1('0x3a')],qs['fields'](_0x5004e9['query'][_0x74b1('0x3f')]));_0x5b465d[_0x74b1('0x3e')]=_0x5b465d[_0x74b1('0x3e')][_0x74b1('0x4f')]?_0x5b465d[_0x74b1('0x3e')]:_0x498792[_0x74b1('0x3a')];_0x5b465d[_0x74b1('0x57')]=qs[_0x74b1('0x42')](_0x5004e9[_0x74b1('0x3b')][_0x74b1('0x42')]);_0x5b465d[_0x74b1('0x43')]=qs[_0x74b1('0x44')](_['pick'](_0x5004e9[_0x74b1('0x3b')],_0x498792[_0x74b1('0x44')]));if(_0x5004e9[_0x74b1('0x3b')][_0x74b1('0x46')]){_0x5b465d['where']=_[_0x74b1('0x47')](_0x5b465d[_0x74b1('0x43')],{'$or':_['map'](_0x5b465d[_0x74b1('0x3e')],function(_0x4d2fcb){var _0x345d17={};_0x345d17[_0x4d2fcb]={'$like':'%'+_0x5004e9[_0x74b1('0x3b')]['filter']+'%'};return _0x345d17;})});}_0x5b465d=_[_0x74b1('0x47')]({},_0x5b465d,_0x5004e9[_0x74b1('0x4a')]);return _0x10eab8[_0x74b1('0x55')](_0x5b465d);}})['then'](function(_0x40f00d){if(_0x40f00d){_0x29ab63=_0x40f00d['length'];if(!_0x5004e9[_0x74b1('0x3b')][_0x74b1('0x40')](_0x74b1('0x41'))){_0x5b465d[_0x74b1('0x2a')]=qs[_0x74b1('0x2a')](_0x5004e9[_0x74b1('0x3b')][_0x74b1('0x2a')]);_0x5b465d[_0x74b1('0x29')]=qs[_0x74b1('0x29')](_0x5004e9[_0x74b1('0x3b')][_0x74b1('0x29')]);}return _0x10eab8[_0x74b1('0x55')](_0x5b465d);}})[_0x74b1('0x1a')](function(_0x4d9c42){if(_0x4d9c42){return _0x4d9c42?{'count':_0x29ab63,'rows':_0x4d9c42}:null;}})[_0x74b1('0x1a')](respondWithResult(_0x5343c4,null))[_0x74b1('0x24')](handleError(_0x5343c4,null));};exports[_0x74b1('0x58')]=function(_0x31756f,_0x30692c,_0x228f8f){if(_0x31756f[_0x74b1('0x54')]['id']){delete _0x31756f[_0x74b1('0x54')]['id'];}return db[_0x74b1('0x36')]['findOne']({'where':{'id':_0x31756f[_0x74b1('0x4e')]['id']}})['then'](handleEntityNotFound(_0x30692c,null))[_0x74b1('0x1a')](function(_0x4e18c0){if(_0x4e18c0){_0x31756f['body'][_0x74b1('0x59')]=_0x4e18c0['id'];_0x31756f[_0x74b1('0x54')][_0x74b1('0x5a')]=integrations['getSubjects'](_0x31756f[_0x74b1('0x54')][_0x74b1('0x5b')],_0x31756f['body'][_0x74b1('0x48')]);_0x31756f[_0x74b1('0x54')][_0x74b1('0x5c')]=integrations[_0x74b1('0x5d')](_0x31756f[_0x74b1('0x54')][_0x74b1('0x5b')],_0x31756f[_0x74b1('0x54')][_0x74b1('0x48')]);return db[_0x74b1('0x56')][_0x74b1('0x52')](_0x31756f['body'],{'include':[{'model':db[_0x74b1('0x5e')],'as':_0x74b1('0x5a')},{'model':db[_0x74b1('0x5e')],'as':'Descriptions'}]});}return null;})[_0x74b1('0x1a')](respondWithResult(_0x30692c,null))[_0x74b1('0x24')](handleError(_0x30692c,null));};exports[_0x74b1('0x5f')]=function(_0x1a6a70,_0x458b5e,_0x4de026){var _0x1d3b21;var _0x155ca8='';var _0x505de5=_0x74b1('0x60');return db[_0x74b1('0x36')][_0x74b1('0x61')]({'where':{'id':_0x1a6a70[_0x74b1('0x4e')]['id']},'attributes':['id',_0x74b1('0x62'),'clientId',_0x74b1('0x63'),_0x74b1('0x64'),_0x74b1('0x65'),'securityToken']})['then'](handleEntityNotFound(_0x458b5e,null))[_0x74b1('0x1a')](function(_0x650ed2){if(_0x650ed2){_0x155ca8=_0x650ed2[_0x74b1('0x62')];var _0x286012=_0x155ca8[_0x74b1('0x66')](-0x1);if(_0x286012==='/'){_0x155ca8=_0x155ca8['substring'](0x0,_0x155ca8[_0x74b1('0x67')](_0x286012));}_0x1d3b21=new jsforce['Connection']({'oauth2':{'loginUrl':_0x155ca8,'clientId':_0x650ed2['clientId'],'clientSecret':_0x650ed2[_0x74b1('0x63')]}});return _0x1d3b21[_0x74b1('0x68')](_0x650ed2[_0x74b1('0x64')],_0x650ed2[_0x74b1('0x65')][_0x74b1('0x69')](_0x650ed2[_0x74b1('0x6a')]));}})[_0x74b1('0x1a')](function(_0x394dd2){if(_0x394dd2){if(!_['isNil'](_0x1a6a70['query']['ticketType'])){_0x505de5=_0x1a6a70[_0x74b1('0x3b')][_0x74b1('0x6b')];}return _0x1d3b21[_0x74b1('0x6c')](_0x505de5)[_0x74b1('0x6d')]();}})[_0x74b1('0x1a')](function(_0x143a36){var _0x538821=[_0x74b1('0x6e'),_0x74b1('0x6f'),_0x74b1('0x70'),_0x74b1('0x71'),_0x74b1('0x72'),'Priority',_0x74b1('0x73'),_0x74b1('0x74')];if(!_[_0x74b1('0x75')](_0x1a6a70[_0x74b1('0x3b')][_0x74b1('0x6b')])&&_0x1a6a70[_0x74b1('0x3b')]['ticketType']===_0x74b1('0x76')){_0x538821=[_0x74b1('0x74'),_0x74b1('0x77'),'Reason',_0x74b1('0x73'),_0x74b1('0x78'),_0x74b1('0x79'),_0x74b1('0x7a'),'SuppliedCompany'];}if(_0x143a36){_[_0x74b1('0x7b')](_0x143a36[_0x74b1('0x3f')],function(_0x2846c4){return _0x2846c4[_0x74b1('0x7c')]===![]&&!_0x538821[_0x74b1('0x7d')](_0x2846c4['name']);});return{'count':_0x143a36[_0x74b1('0x3f')][_0x74b1('0x4f')],'rows':_['map'](_0x143a36[_0x74b1('0x3f')],function(_0x1a2b2c){return{'id':_0x1a2b2c['name'],'name':_0x1a2b2c[_0x74b1('0x7e')],'custom':_0x1a2b2c[_0x74b1('0x7c')],'options':_0x1a2b2c[_0x74b1('0x7f')][_0x74b1('0x4f')]>0x0?_['map'](_0x1a2b2c['picklistValues'],function(_0x203569){return{'name':_0x203569[_0x74b1('0x7e')],'value':_0x203569[_0x74b1('0x80')]};}):_0x1a2b2c['type']==_0x74b1('0x81')?[{'name':_0x74b1('0x82'),'value':'true'},{'name':'False','value':_0x74b1('0x83')}]:[]};})};}})[_0x74b1('0x1a')](respondWithResult(_0x458b5e,null))[_0x74b1('0x24')](function(_0x4a0cd4){var _0x43cc78=_0x1a6a70[_0x74b1('0x3b')][_0x74b1('0x84')]?0x1f4:_0x4a0cd4[_0x74b1('0x85')]||0x1f4;logger['error']('getFields,\x20%s,\x20%s,\x20%s',_0x74b1('0x5f'),_0x43cc78,JSON[_0x74b1('0x20')](_0x4a0cd4));delete _0x4a0cd4['name'];if(_0x43cc78===0x191){_0x43cc78=0x190;}_0x458b5e[_0x74b1('0x25')](_0x43cc78)[_0x74b1('0x33')](_0x1a6a70[_0x74b1('0x3b')][_0x74b1('0x84')]?{'message':_0x74b1('0x86'),'statusCode':_0x4a0cd4[_0x74b1('0x85')]}:_0x4a0cd4);});};