Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / api / intSugarcrmAccount / intSugarcrmAccount.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 _0x9425=['filters','pick','merge','VIRTUAL','filter','options','count','includeAll','findAll','rows','show','length','include','find','create','body','params','findOne','SugarcrmConfiguration','getConfigurations','addConfiguration','AccountId','Subjects','getSubjects','channel','Descriptions','SugarcrmField','getFields','assigned_user_id','created_by','description','date_start','duration_hours','duration_minutes','parent_id','parent_type','parent_name','direction','username','remoteUri','substring','lastIndexOf','POST','format','/service/v4_1/rest.php','JSON','password','PLAIN','Invalid\x20Login','Password\x20Expired','%s%s','get_module_fields','Calls','values','module_fields','remove','includes','label','endsWith','value','statusCode','getFields,\x20%s,\x20%s,\x20%s','Wrong\x20credentials','html-pdf','eml-format','zip-dir','moment','bluebird','mustache','util','path','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','../../components/integrations/configuration','jayson/promise','client','test','Sequelize','info','request\x20sent','debug','SugarcrmAccount,\x20%s,\x20%s,\x20%s','stringify','error','message','SugarcrmAccount,\x20%s,\x20%s','result','catch','sendStatus','status','end','offset','limit','Content-Range','json','reject','update','then','destroy','name','send','index','map','SugarcrmAccount','rawAttributes','fieldName','type','key','model','query','keys','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x9425,0x1cb));var _0x5942=function(_0x16364e,_0xcbdd60){_0x16364e=_0x16364e-0x0;var _0x266318=_0x9425[_0x16364e];return _0x266318;};'use strict';var pdf=require(_0x5942('0x0'));var emlformat=require(_0x5942('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x5942('0x2'));var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0x5942('0x3'));var BPromise=require(_0x5942('0x4'));var Mustache=require(_0x5942('0x5'));var util=require(_0x5942('0x6'));var path=require(_0x5942('0x7'));var sox=require('sox');var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require(_0x5942('0x8'));var crypto=require('crypto');var jsforce=require(_0x5942('0x9'));var deskjs=require(_0x5942('0xa'));var toCsv=require(_0x5942('0xb'));var querystring=require(_0x5942('0xc'));var Papa=require(_0x5942('0xd'));var Redis=require(_0x5942('0xe'));var authService=require(_0x5942('0xf'));var qs=require(_0x5942('0x10'));var as=require(_0x5942('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x5942('0x12'))(_0x5942('0x13'));var utils=require(_0x5942('0x14'));var config=require(_0x5942('0x15'));var db=require(_0x5942('0x16'))['db'];var integrations=require(_0x5942('0x17'));var jayson=require(_0x5942('0x18'));var client=jayson[_0x5942('0x19')]['http']({'port':0x232a});function checkPasswordPattern(_0x2454dd,_0x12ddc0,_0x3d47e3){if(_0x3d47e3){var _0x2c6861=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x2c6861[_0x5942('0x1a')](_0x12ddc0)){return _0x2454dd;}else{throw new db[(_0x5942('0x1b'))]['ValidationError']('The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.');}}else{return _0x2454dd;}}function respondWithRpcPromise(_0x20b88b,_0x411da4,_0x4c7b7d,_0xf712f0){return new BPromise(function(_0x80f786,_0x9ba6a1){var _0x236703=_0xf712f0||client;return _0x236703['request'](_0x20b88b,_0x4c7b7d)['then'](function(_0x68e6b2){logger[_0x5942('0x1c')]('SugarcrmAccount,\x20%s,\x20%s',_0x411da4,_0x5942('0x1d'));logger[_0x5942('0x1e')](_0x5942('0x1f'),_0x411da4,_0x5942('0x1d'),JSON[_0x5942('0x20')](_0x68e6b2));if(_0x68e6b2[_0x5942('0x21')]){if(_0x68e6b2[_0x5942('0x21')]['code']===0x1f4){logger['error']('SugarcrmAccount,\x20%s,\x20%s',_0x411da4,_0x68e6b2[_0x5942('0x21')]['message']);return _0x9ba6a1(_0x68e6b2[_0x5942('0x21')][_0x5942('0x22')]);}logger[_0x5942('0x21')](_0x5942('0x23'),_0x411da4,_0x68e6b2[_0x5942('0x21')][_0x5942('0x22')]);return _0x80f786(_0x68e6b2['error'][_0x5942('0x22')]);}else{logger[_0x5942('0x1c')](_0x5942('0x23'),_0x411da4,_0x5942('0x1d'));_0x80f786(_0x68e6b2[_0x5942('0x24')][_0x5942('0x22')]);}})[_0x5942('0x25')](function(_0x1449ca){logger[_0x5942('0x21')]('SugarcrmAccount,\x20%s,\x20%s',_0x411da4,_0x1449ca);_0x9ba6a1(_0x1449ca);});});}function respondWithStatusCode(_0x3d0cd8,_0x1ef75c){_0x1ef75c=_0x1ef75c||0xcc;return function(_0x516365){if(_0x516365){return _0x3d0cd8[_0x5942('0x26')](_0x1ef75c);}return _0x3d0cd8[_0x5942('0x27')](_0x1ef75c)[_0x5942('0x28')]();};}function respondWithResult(_0x316811,_0x3af6eb){_0x3af6eb=_0x3af6eb||0xc8;return function(_0x8dc626){if(_0x8dc626){return _0x316811['status'](_0x3af6eb)['json'](_0x8dc626);}};}function respondWithFilteredResult(_0x522a38,_0x50fc15){return function(_0x47605f){if(_0x47605f){var _0x4cef5f=_0x47605f['count'],_0x54711a=_0x50fc15[_0x5942('0x29')],_0x3f49fc=_0x50fc15[_0x5942('0x29')]+_0x50fc15[_0x5942('0x2a')],_0xb9adc8;if(_0x3f49fc>=_0x4cef5f){_0x3f49fc=_0x4cef5f;_0xb9adc8=0xc8;}else{_0xb9adc8=0xce;}_0x522a38[_0x5942('0x27')](_0xb9adc8);return _0x522a38['set'](_0x5942('0x2b'),_0x54711a+'-'+_0x3f49fc+'/'+_0x4cef5f)[_0x5942('0x2c')](_0x47605f);}return null;};}function patchUpdates(_0x258532){return function(_0x45573f){try{jsonpatch['apply'](_0x45573f,_0x258532,!![]);}catch(_0x3240c8){return BPromise[_0x5942('0x2d')](_0x3240c8);}return _0x45573f['save']();};}function saveUpdates(_0x24a011,_0x5d5d52){return function(_0x10ae47){if(_0x10ae47){return _0x10ae47[_0x5942('0x2e')](_0x24a011)[_0x5942('0x2f')](function(_0x7b4827){return _0x7b4827;});}return null;};}function removeEntity(_0x450d9b,_0x1d6b16){return function(_0x1dc48e){if(_0x1dc48e){return _0x1dc48e[_0x5942('0x30')]()[_0x5942('0x2f')](function(){_0x450d9b['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x55ecfc,_0x10d5db){return function(_0x4cbbb7){if(!_0x4cbbb7){_0x55ecfc['sendStatus'](0x194);}return _0x4cbbb7;};}function handleError(_0x2bf250,_0x57b008){_0x57b008=_0x57b008||0x1f4;return function(_0x6a05c2){logger[_0x5942('0x21')](_0x6a05c2['stack']);if(_0x6a05c2[_0x5942('0x31')]){delete _0x6a05c2[_0x5942('0x31')];}_0x2bf250[_0x5942('0x27')](_0x57b008)[_0x5942('0x32')](_0x6a05c2);};}exports[_0x5942('0x33')]=function(_0x7a4961,_0x57298c){var _0x1553a2={},_0x2a0600={},_0x306db5={'count':0x0,'rows':[]};var _0x150d75=_[_0x5942('0x34')](db[_0x5942('0x35')][_0x5942('0x36')],function(_0x1bf7f6){return{'name':_0x1bf7f6[_0x5942('0x37')],'type':_0x1bf7f6[_0x5942('0x38')][_0x5942('0x39')]};});_0x2a0600[_0x5942('0x3a')]=_['map'](_0x150d75,_0x5942('0x31'));_0x2a0600[_0x5942('0x3b')]=_[_0x5942('0x3c')](_0x7a4961[_0x5942('0x3b')]);_0x2a0600['filters']=_[_0x5942('0x3d')](_0x2a0600['model'],_0x2a0600['query']);_0x1553a2[_0x5942('0x3e')]=_['intersection'](_0x2a0600['model'],qs[_0x5942('0x3f')](_0x7a4961['query'][_0x5942('0x3f')]));_0x1553a2['attributes']=_0x1553a2[_0x5942('0x3e')]['length']?_0x1553a2[_0x5942('0x3e')]:_0x2a0600[_0x5942('0x3a')];if(!_0x7a4961[_0x5942('0x3b')][_0x5942('0x40')](_0x5942('0x41'))){_0x1553a2[_0x5942('0x2a')]=qs[_0x5942('0x2a')](_0x7a4961[_0x5942('0x3b')][_0x5942('0x2a')]);_0x1553a2[_0x5942('0x29')]=qs[_0x5942('0x29')](_0x7a4961[_0x5942('0x3b')]['offset']);}_0x1553a2[_0x5942('0x42')]=qs[_0x5942('0x43')](_0x7a4961[_0x5942('0x3b')][_0x5942('0x43')]);_0x1553a2[_0x5942('0x44')]=qs[_0x5942('0x45')](_[_0x5942('0x46')](_0x7a4961['query'],_0x2a0600[_0x5942('0x45')]),_0x150d75);if(_0x7a4961[_0x5942('0x3b')]['filter']){_0x1553a2[_0x5942('0x44')]=_[_0x5942('0x47')](_0x1553a2['where'],{'$or':_['map'](_0x150d75,function(_0xea15dc){if(_0xea15dc[_0x5942('0x38')]!==_0x5942('0x48')){var _0x1cdf75={};_0x1cdf75[_0xea15dc[_0x5942('0x31')]]={'$like':'%'+_0x7a4961[_0x5942('0x3b')][_0x5942('0x49')]+'%'};return _0x1cdf75;}})});}_0x1553a2=_[_0x5942('0x47')]({},_0x1553a2,_0x7a4961[_0x5942('0x4a')]);var _0x54c3aa={'where':_0x1553a2[_0x5942('0x44')]};return db['SugarcrmAccount'][_0x5942('0x4b')](_0x54c3aa)[_0x5942('0x2f')](function(_0x413c1b){_0x306db5[_0x5942('0x4b')]=_0x413c1b;if(_0x7a4961[_0x5942('0x3b')][_0x5942('0x4c')]){_0x1553a2['include']=[{'all':!![]}];}return db[_0x5942('0x35')][_0x5942('0x4d')](_0x1553a2);})['then'](function(_0x5a069f){_0x306db5[_0x5942('0x4e')]=_0x5a069f;return _0x306db5;})['then'](respondWithFilteredResult(_0x57298c,_0x1553a2))[_0x5942('0x25')](handleError(_0x57298c,null));};exports[_0x5942('0x4f')]=function(_0x29e416,_0x570067){var _0x41594f={'raw':![],'where':{'id':_0x29e416['params']['id']}},_0x412822={};_0x412822[_0x5942('0x3a')]=_[_0x5942('0x3c')](db[_0x5942('0x35')][_0x5942('0x36')]);_0x412822[_0x5942('0x3b')]=_[_0x5942('0x3c')](_0x29e416[_0x5942('0x3b')]);_0x412822[_0x5942('0x45')]=_[_0x5942('0x3d')](_0x412822[_0x5942('0x3a')],_0x412822['query']);_0x41594f['attributes']=_[_0x5942('0x3d')](_0x412822[_0x5942('0x3a')],qs['fields'](_0x29e416[_0x5942('0x3b')][_0x5942('0x3f')]));_0x41594f[_0x5942('0x3e')]=_0x41594f['attributes'][_0x5942('0x50')]?_0x41594f['attributes']:_0x412822[_0x5942('0x3a')];if(_0x29e416['query'][_0x5942('0x4c')]){_0x41594f[_0x5942('0x51')]=[{'all':!![]}];}_0x41594f=_[_0x5942('0x47')]({},_0x41594f,_0x29e416[_0x5942('0x4a')]);return db[_0x5942('0x35')][_0x5942('0x52')](_0x41594f)[_0x5942('0x2f')](handleEntityNotFound(_0x570067,null))['then'](respondWithResult(_0x570067,null))[_0x5942('0x25')](handleError(_0x570067,null));};exports['create']=function(_0x226ad8,_0xf53700){return db[_0x5942('0x35')][_0x5942('0x53')](_0x226ad8[_0x5942('0x54')],{})['then'](respondWithResult(_0xf53700,0xc9))[_0x5942('0x25')](handleError(_0xf53700,null));};exports[_0x5942('0x2e')]=function(_0x46eaad,_0x39b4ee){if(_0x46eaad[_0x5942('0x54')]['id']){delete _0x46eaad[_0x5942('0x54')]['id'];}return db[_0x5942('0x35')][_0x5942('0x52')]({'where':{'id':_0x46eaad[_0x5942('0x55')]['id']}})[_0x5942('0x2f')](handleEntityNotFound(_0x39b4ee,null))[_0x5942('0x2f')](saveUpdates(_0x46eaad['body'],null))[_0x5942('0x2f')](respondWithResult(_0x39b4ee,null))['catch'](handleError(_0x39b4ee,null));};exports['destroy']=function(_0x6a1b9,_0x38b265){return db[_0x5942('0x35')]['find']({'where':{'id':_0x6a1b9[_0x5942('0x55')]['id']}})['then'](handleEntityNotFound(_0x38b265,null))[_0x5942('0x2f')](removeEntity(_0x38b265,null))[_0x5942('0x25')](handleError(_0x38b265,null));};exports['getConfigurations']=function(_0xe03caa,_0x3e2bb9,_0x2c3d3e){var _0x1de0b4={};var _0x1d2e30={};var _0x1f4c8f;var _0x49e502;return db[_0x5942('0x35')][_0x5942('0x56')]({'where':{'id':_0xe03caa[_0x5942('0x55')]['id']}})[_0x5942('0x2f')](handleEntityNotFound(_0x3e2bb9,null))[_0x5942('0x2f')](function(_0x4f21d3){if(_0x4f21d3){_0x1f4c8f=_0x4f21d3;_0x1d2e30[_0x5942('0x3a')]=_[_0x5942('0x3c')](db[_0x5942('0x57')][_0x5942('0x36')]);_0x1d2e30[_0x5942('0x3b')]=_[_0x5942('0x3c')](_0xe03caa[_0x5942('0x3b')]);_0x1d2e30['filters']=_['intersection'](_0x1d2e30[_0x5942('0x3a')],_0x1d2e30[_0x5942('0x3b')]);_0x1de0b4[_0x5942('0x3e')]=_['intersection'](_0x1d2e30[_0x5942('0x3a')],qs[_0x5942('0x3f')](_0xe03caa['query'][_0x5942('0x3f')]));_0x1de0b4[_0x5942('0x3e')]=_0x1de0b4['attributes'][_0x5942('0x50')]?_0x1de0b4['attributes']:_0x1d2e30[_0x5942('0x3a')];_0x1de0b4[_0x5942('0x42')]=qs['sort'](_0xe03caa[_0x5942('0x3b')][_0x5942('0x43')]);_0x1de0b4['where']=qs['filters'](_['pick'](_0xe03caa['query'],_0x1d2e30[_0x5942('0x45')]));if(_0xe03caa[_0x5942('0x3b')][_0x5942('0x49')]){_0x1de0b4['where']=_[_0x5942('0x47')](_0x1de0b4[_0x5942('0x44')],{'$or':_['map'](_0x1de0b4['attributes'],function(_0x56bfe3){var _0x165f75={};_0x165f75[_0x56bfe3]={'$like':'%'+_0xe03caa[_0x5942('0x3b')]['filter']+'%'};return _0x165f75;})});}_0x1de0b4=_[_0x5942('0x47')]({},_0x1de0b4,_0xe03caa[_0x5942('0x4a')]);return _0x1f4c8f['getConfigurations'](_0x1de0b4);}})[_0x5942('0x2f')](function(_0x2689ce){if(_0x2689ce){_0x49e502=_0x2689ce[_0x5942('0x50')];if(!_0xe03caa[_0x5942('0x3b')]['hasOwnProperty']('nolimit')){_0x1de0b4[_0x5942('0x2a')]=qs['limit'](_0xe03caa[_0x5942('0x3b')][_0x5942('0x2a')]);_0x1de0b4[_0x5942('0x29')]=qs[_0x5942('0x29')](_0xe03caa[_0x5942('0x3b')][_0x5942('0x29')]);}return _0x1f4c8f[_0x5942('0x58')](_0x1de0b4);}})[_0x5942('0x2f')](function(_0x2fba5f){if(_0x2fba5f){return _0x2fba5f?{'count':_0x49e502,'rows':_0x2fba5f}:null;}})[_0x5942('0x2f')](respondWithResult(_0x3e2bb9,null))[_0x5942('0x25')](handleError(_0x3e2bb9,null));};exports[_0x5942('0x59')]=function(_0x226b3b,_0x54ed21,_0x3c82a7){if(_0x226b3b[_0x5942('0x54')]['id']){delete _0x226b3b[_0x5942('0x54')]['id'];}return db[_0x5942('0x35')]['findOne']({'where':{'id':_0x226b3b['params']['id']}})[_0x5942('0x2f')](handleEntityNotFound(_0x54ed21,null))[_0x5942('0x2f')](function(_0x9a2ec3){if(_0x9a2ec3){_0x226b3b[_0x5942('0x54')][_0x5942('0x5a')]=_0x9a2ec3['id'];_0x226b3b[_0x5942('0x54')][_0x5942('0x5b')]=integrations[_0x5942('0x5c')](_0x226b3b[_0x5942('0x54')][_0x5942('0x5d')],_0x226b3b[_0x5942('0x54')][_0x5942('0x38')]);_0x226b3b[_0x5942('0x54')][_0x5942('0x5e')]=integrations['getDescriptions'](_0x226b3b[_0x5942('0x54')][_0x5942('0x5d')],_0x226b3b['body'][_0x5942('0x38')]);return db[_0x5942('0x57')][_0x5942('0x53')](_0x226b3b[_0x5942('0x54')],{'include':[{'model':db[_0x5942('0x5f')],'as':'Subjects'},{'model':db['SugarcrmField'],'as':_0x5942('0x5e')}]});}return null;})['then'](respondWithResult(_0x54ed21,null))['catch'](handleError(_0x54ed21,null));};exports[_0x5942('0x60')]=function(_0x4f7a57,_0x53ed8b,_0x1c3766){var _0x43970f='';var _0x462173=['id',_0x5942('0x31'),_0x5942('0x61'),_0x5942('0x62'),_0x5942('0x63'),_0x5942('0x64'),_0x5942('0x65'),_0x5942('0x66'),_0x5942('0x67'),_0x5942('0x68'),_0x5942('0x69'),_0x5942('0x6a')];return db[_0x5942('0x35')][_0x5942('0x56')]({'where':{'id':_0x4f7a57[_0x5942('0x55')]['id']},'attributes':['id',_0x5942('0x6b'),'password',_0x5942('0x6c')]})[_0x5942('0x2f')](handleEntityNotFound(_0x53ed8b,null))[_0x5942('0x2f')](function(_0x4e419b){if(_0x4e419b){_0x43970f=_0x4e419b[_0x5942('0x6c')];var _0x43ce25=_0x43970f['slice'](-0x1);if(_0x43ce25==='/'){_0x43970f=_0x43970f[_0x5942('0x6d')](0x0,_0x43970f[_0x5942('0x6e')](_0x43ce25));}return rp({'method':_0x5942('0x6f'),'uri':util[_0x5942('0x70')]('%s%s',_0x43970f,_0x5942('0x71')),'json':!![],'form':{'method':'login','input_type':'JSON','response_type':_0x5942('0x72'),'rest_data':JSON[_0x5942('0x20')]({'user_auth':{'user_name':_0x4e419b[_0x5942('0x6b')],'password':_0x4e419b[_0x5942('0x73')],'encryption':_0x5942('0x74')},'application':'xCALLY\x20Motion\x20Integration'})}});}})[_0x5942('0x2f')](function(_0x34a030){if(_0x34a030&&_0x34a030[_0x5942('0x31')]!==_0x5942('0x75')&&_0x34a030['name']!==_0x5942('0x76')){return rp({'method':_0x5942('0x6f'),'uri':util['format'](_0x5942('0x77'),_0x43970f,_0x5942('0x71')),'json':!![],'form':{'method':_0x5942('0x78'),'input_type':_0x5942('0x72'),'response_type':_0x5942('0x72'),'rest_data':JSON[_0x5942('0x20')]({'session':_0x34a030['id'],'module_name':_0x5942('0x79')})}})[_0x5942('0x2f')](function(_0x4d0356){if(_0x4d0356){var _0x1dd9c7=_[_0x5942('0x7a')](_0x4d0356[_0x5942('0x7b')]);_[_0x5942('0x7c')](_0x1dd9c7,function(_0x14a13a){return _0x462173[_0x5942('0x7d')](_0x14a13a[_0x5942('0x31')]);});return{'count':_0x1dd9c7[_0x5942('0x50')],'rows':_[_0x5942('0x34')](_0x1dd9c7,function(_0x4bfcfa){return{'id':_0x4bfcfa[_0x5942('0x31')],'name':_0x4bfcfa[_0x5942('0x7e')],'custom':_[_0x5942('0x7f')](_0x4bfcfa[_0x5942('0x31')],'_c')?!![]:![],'options':_0x4bfcfa[_0x5942('0x4a')]?_[_0x5942('0x34')](_[_0x5942('0x7a')](_0x4bfcfa['options']),function(_0x15f024){return{'name':_0x15f024[_0x5942('0x80')],'value':_0x15f024[_0x5942('0x31')]};}):[]};})};}})[_0x5942('0x2f')](respondWithResult(_0x53ed8b,null))[_0x5942('0x25')](function(_0x3e84db){var _0x244058=_0x4f7a57[_0x5942('0x3b')]['test']?0x1f4:_0x3e84db[_0x5942('0x81')]||0x1f4;logger[_0x5942('0x21')](_0x5942('0x82'),_0x5942('0x60'),_0x244058,JSON[_0x5942('0x20')](_0x3e84db));delete _0x3e84db[_0x5942('0x31')];if(_0x244058===0x191){_0x244058=0x190;}_0x53ed8b[_0x5942('0x27')](_0x244058)[_0x5942('0x32')](_0x4f7a57[_0x5942('0x3b')][_0x5942('0x1a')]?{'message':'Wrong\x20credentials','statusCode':_0x3e84db[_0x5942('0x81')]}:_0x3e84db);});}else{var _0x19bf57=0x1f4;_0x53ed8b[_0x5942('0x27')](_0x19bf57)[_0x5942('0x32')]({'message':_0x5942('0x83'),'statusCode':0x190});}});};