Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / whatsappMessage / whatsappMessage.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 _0x561f=['query','keys','filters','intersection','attributes','length','hasOwnProperty','sort','where','filter','merge','VIRTUAL','options','includeAll','findAll','show','params','fields','include','find','create','body','destroy','describe','whatsapp-interactions','accept','whatsapp','read','YYYY-MM-DD\x20HH:mm:ss','UserId','user','CmContact','Contact','get','WhatsappInteraction','read1stAt','format','interaction','info','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','role','null','acceptMessage','interface','channel','event','EventManager','acceptmessage','WhatsappInteractionId','RejectMessage','SIP/%s','rejectmessage','WhatsappAccountId','WhatsppMessage,\x20%s,\x20%s,\x20%s','received\x20delivery\x20report\x20from','inspect','twilio','messageId','MessageStatus','WhatsappAccount,\x20%s,\x20%s,\x20%s','html-pdf','rimraf','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','redis','defaults','localhost','./whatsappMessage.socket','jayson/promise','client','http','test','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~!@#$%^&-_=+[{]}.','request','then','debug','WhatsappMessage,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','WhatsappMessage,\x20%s,\x20%s','result','catch','sendStatus','status','count','offset','limit','json','apply','reject','update','end','stack','name','index','map','WhatsappMessage','rawAttributes','fieldName','type','model'];(function(_0x173441,_0x26b0d9){var _0x2423a8=function(_0x4d96c2){while(--_0x4d96c2){_0x173441['push'](_0x173441['shift']());}};_0x2423a8(++_0x26b0d9);}(_0x561f,0x1b3));var _0xf561=function(_0x127415,_0x5d93ae){_0x127415=_0x127415-0x0;var _0xe7d513=_0x561f[_0x127415];return _0xe7d513;};'use strict';var pdf=require(_0xf561('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xf561('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0xf561('0x2'));var moment=require('moment');var BPromise=require(_0xf561('0x3'));var Mustache=require(_0xf561('0x4'));var util=require(_0xf561('0x5'));var path=require(_0xf561('0x6'));var sox=require(_0xf561('0x7'));var csv=require(_0xf561('0x8'));var ejs=require(_0xf561('0x9'));var fs=require('fs');var _=require('lodash');var squel=require(_0xf561('0xa'));var crypto=require(_0xf561('0xb'));var jsforce=require('jsforce');var deskjs=require(_0xf561('0xc'));var toCsv=require(_0xf561('0x8'));var querystring=require(_0xf561('0xd'));var Papa=require(_0xf561('0xe'));var Redis=require(_0xf561('0xf'));var authService=require(_0xf561('0x10'));var qs=require(_0xf561('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xf561('0x12'));var logger=require(_0xf561('0x13'))(_0xf561('0x14'));var utils=require(_0xf561('0x15'));var config=require(_0xf561('0x16'));var db=require(_0xf561('0x17'))['db'];config[_0xf561('0x18')]=_[_0xf561('0x19')](config[_0xf561('0x18')],{'host':_0xf561('0x1a'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xf561('0x18')]));require(_0xf561('0x1b'))['register'](socket);var jayson=require(_0xf561('0x1c'));var client=jayson[_0xf561('0x1d')]['http']({'port':0x232c});var client9002=jayson[_0xf561('0x1d')][_0xf561('0x1e')]({'port':0x232a});function checkPasswordPattern(_0x490855,_0x5f2875,_0x1ca069){if(_0x1ca069){var _0x15aa17=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x15aa17[_0xf561('0x1f')](_0x5f2875)){return _0x490855;}else{throw new db['Sequelize'][(_0xf561('0x20'))](_0xf561('0x21'));}}else{return _0x490855;}}function respondWithRpcPromise(_0x5aeb53,_0x5dd18f,_0x30a92f,_0x4afaa4){return new BPromise(function(_0xf0ca41,_0x359955){var _0x2204ee=_0x4afaa4||client;return _0x2204ee[_0xf561('0x22')](_0x5aeb53,_0x30a92f)[_0xf561('0x23')](function(_0x315446){logger['info']('WhatsappMessage,\x20%s,\x20%s',_0x5dd18f,'request\x20sent');logger[_0xf561('0x24')](_0xf561('0x25'),_0x5dd18f,_0xf561('0x26'),JSON[_0xf561('0x27')](_0x315446));if(_0x315446[_0xf561('0x28')]){if(_0x315446[_0xf561('0x28')][_0xf561('0x29')]===0x1f4){logger[_0xf561('0x28')]('WhatsappMessage,\x20%s,\x20%s',_0x5dd18f,_0x315446[_0xf561('0x28')][_0xf561('0x2a')]);return _0x359955(_0x315446['error'][_0xf561('0x2a')]);}logger[_0xf561('0x28')](_0xf561('0x2b'),_0x5dd18f,_0x315446[_0xf561('0x28')]['message']);return _0xf0ca41(_0x315446['error'][_0xf561('0x2a')]);}else{logger['info']('WhatsappMessage,\x20%s,\x20%s',_0x5dd18f,_0xf561('0x26'));_0xf0ca41(_0x315446[_0xf561('0x2c')][_0xf561('0x2a')]);}})[_0xf561('0x2d')](function(_0x28eefb){logger[_0xf561('0x28')](_0xf561('0x2b'),_0x5dd18f,_0x28eefb);_0x359955(_0x28eefb);});});}function respondWithStatusCode(_0x5c752c,_0x4044c3){_0x4044c3=_0x4044c3||0xcc;return function(_0x3c5358){if(_0x3c5358){return _0x5c752c[_0xf561('0x2e')](_0x4044c3);}return _0x5c752c[_0xf561('0x2f')](_0x4044c3)['end']();};}function respondWithResult(_0x5e29fd,_0x2e9c07){_0x2e9c07=_0x2e9c07||0xc8;return function(_0x35ab97){if(_0x35ab97){return _0x5e29fd[_0xf561('0x2f')](_0x2e9c07)['json'](_0x35ab97);}};}function respondWithFilteredResult(_0x259454,_0x22c29e){return function(_0x19ea77){if(_0x19ea77){var _0x46048c=_0x19ea77[_0xf561('0x30')],_0x2fa6a9=_0x22c29e[_0xf561('0x31')],_0x349ebf=_0x22c29e[_0xf561('0x31')]+_0x22c29e[_0xf561('0x32')],_0x1fd1e4;if(_0x349ebf>=_0x46048c){_0x349ebf=_0x46048c;_0x1fd1e4=0xc8;}else{_0x1fd1e4=0xce;}_0x259454[_0xf561('0x2f')](_0x1fd1e4);return _0x259454['set']('Content-Range',_0x2fa6a9+'-'+_0x349ebf+'/'+_0x46048c)[_0xf561('0x33')](_0x19ea77);}return null;};}function patchUpdates(_0x2f0989){return function(_0x421f1e){try{jsonpatch[_0xf561('0x34')](_0x421f1e,_0x2f0989,!![]);}catch(_0x23361c){return BPromise[_0xf561('0x35')](_0x23361c);}return _0x421f1e['save']();};}function saveUpdates(_0xd31701,_0x2ab009){return function(_0x2077c1){if(_0x2077c1){return _0x2077c1[_0xf561('0x36')](_0xd31701)[_0xf561('0x23')](function(_0x5522f4){return _0x5522f4;});}return null;};}function removeEntity(_0x3ce628,_0x38ba16){return function(_0xeabdb){if(_0xeabdb){return _0xeabdb['destroy']()[_0xf561('0x23')](function(){_0x3ce628[_0xf561('0x2f')](0xcc)[_0xf561('0x37')]();});}};}function handleEntityNotFound(_0x225c9b,_0x4f8202){return function(_0xca3f84){if(!_0xca3f84){_0x225c9b[_0xf561('0x2e')](0x194);}return _0xca3f84;};}function handleError(_0x10d915,_0x29d46b){_0x29d46b=_0x29d46b||0x1f4;return function(_0x5acf24){logger['error'](_0x5acf24[_0xf561('0x38')]);if(_0x5acf24[_0xf561('0x39')]){delete _0x5acf24[_0xf561('0x39')];}_0x10d915['status'](_0x29d46b)['send'](_0x5acf24);};}exports[_0xf561('0x3a')]=function(_0x1f0c0d,_0x54b1a4){var _0x3c8815={},_0x1cddcd={},_0x4a27ce={'count':0x0,'rows':[]};var _0x705f41=_[_0xf561('0x3b')](db[_0xf561('0x3c')][_0xf561('0x3d')],function(_0x5dbd09){return{'name':_0x5dbd09[_0xf561('0x3e')],'type':_0x5dbd09[_0xf561('0x3f')]['key']};});_0x1cddcd[_0xf561('0x40')]=_[_0xf561('0x3b')](_0x705f41,_0xf561('0x39'));_0x1cddcd[_0xf561('0x41')]=_[_0xf561('0x42')](_0x1f0c0d[_0xf561('0x41')]);_0x1cddcd[_0xf561('0x43')]=_[_0xf561('0x44')](_0x1cddcd['model'],_0x1cddcd[_0xf561('0x41')]);_0x3c8815['attributes']=_[_0xf561('0x44')](_0x1cddcd['model'],qs['fields'](_0x1f0c0d[_0xf561('0x41')]['fields']));_0x3c8815[_0xf561('0x45')]=_0x3c8815[_0xf561('0x45')][_0xf561('0x46')]?_0x3c8815['attributes']:_0x1cddcd['model'];if(!_0x1f0c0d['query'][_0xf561('0x47')]('nolimit')){_0x3c8815[_0xf561('0x32')]=qs[_0xf561('0x32')](_0x1f0c0d[_0xf561('0x41')][_0xf561('0x32')]);_0x3c8815[_0xf561('0x31')]=qs[_0xf561('0x31')](_0x1f0c0d['query'][_0xf561('0x31')]);}_0x3c8815['order']=qs['sort'](_0x1f0c0d[_0xf561('0x41')][_0xf561('0x48')]);_0x3c8815[_0xf561('0x49')]=qs[_0xf561('0x43')](_['pick'](_0x1f0c0d[_0xf561('0x41')],_0x1cddcd[_0xf561('0x43')]),_0x705f41);if(_0x1f0c0d[_0xf561('0x41')][_0xf561('0x4a')]){_0x3c8815[_0xf561('0x49')]=_[_0xf561('0x4b')](_0x3c8815[_0xf561('0x49')],{'$or':_[_0xf561('0x3b')](_0x705f41,function(_0x444060){if(_0x444060[_0xf561('0x3f')]!==_0xf561('0x4c')){var _0xe923d3={};_0xe923d3[_0x444060[_0xf561('0x39')]]={'$like':'%'+_0x1f0c0d[_0xf561('0x41')][_0xf561('0x4a')]+'%'};return _0xe923d3;}})});}_0x3c8815=_['merge']({},_0x3c8815,_0x1f0c0d[_0xf561('0x4d')]);var _0x4bbe81={'where':_0x3c8815[_0xf561('0x49')]};return db[_0xf561('0x3c')][_0xf561('0x30')](_0x4bbe81)[_0xf561('0x23')](function(_0x3e3e25){_0x4a27ce[_0xf561('0x30')]=_0x3e3e25;if(_0x1f0c0d['query'][_0xf561('0x4e')]){_0x3c8815['include']=[{'all':!![]}];}return db[_0xf561('0x3c')][_0xf561('0x4f')](_0x3c8815);})[_0xf561('0x23')](function(_0x541b59){_0x4a27ce['rows']=_0x541b59;return _0x4a27ce;})['then'](respondWithFilteredResult(_0x54b1a4,_0x3c8815))[_0xf561('0x2d')](handleError(_0x54b1a4,null));};exports[_0xf561('0x50')]=function(_0x55c4fd,_0x3337df){var _0x185470={'raw':!![],'where':{'id':_0x55c4fd[_0xf561('0x51')]['id']}},_0x265e1b={};_0x265e1b['model']=_[_0xf561('0x42')](db[_0xf561('0x3c')][_0xf561('0x3d')]);_0x265e1b['query']=_[_0xf561('0x42')](_0x55c4fd['query']);_0x265e1b[_0xf561('0x43')]=_[_0xf561('0x44')](_0x265e1b[_0xf561('0x40')],_0x265e1b['query']);_0x185470[_0xf561('0x45')]=_[_0xf561('0x44')](_0x265e1b['model'],qs[_0xf561('0x52')](_0x55c4fd[_0xf561('0x41')][_0xf561('0x52')]));_0x185470[_0xf561('0x45')]=_0x185470[_0xf561('0x45')][_0xf561('0x46')]?_0x185470[_0xf561('0x45')]:_0x265e1b[_0xf561('0x40')];if(_0x55c4fd[_0xf561('0x41')][_0xf561('0x4e')]){_0x185470[_0xf561('0x53')]=[{'all':!![]}];}_0x185470=_['merge']({},_0x185470,_0x55c4fd['options']);return db['WhatsappMessage'][_0xf561('0x54')](_0x185470)[_0xf561('0x23')](handleEntityNotFound(_0x3337df,null))[_0xf561('0x23')](respondWithResult(_0x3337df,null))['catch'](handleError(_0x3337df,null));};exports['create']=function(_0x2b254b,_0x5ca52c){return db['WhatsappMessage'][_0xf561('0x55')](_0x2b254b[_0xf561('0x56')],{})[_0xf561('0x23')](respondWithResult(_0x5ca52c,0xc9))[_0xf561('0x2d')](handleError(_0x5ca52c,null));};exports[_0xf561('0x36')]=function(_0x3e00ff,_0x1438a0){if(_0x3e00ff['body']['id']){delete _0x3e00ff[_0xf561('0x56')]['id'];}return db['WhatsappMessage'][_0xf561('0x54')]({'where':{'id':_0x3e00ff[_0xf561('0x51')]['id']}})[_0xf561('0x23')](handleEntityNotFound(_0x1438a0,null))[_0xf561('0x23')](saveUpdates(_0x3e00ff[_0xf561('0x56')],null))[_0xf561('0x23')](respondWithResult(_0x1438a0,null))[_0xf561('0x2d')](handleError(_0x1438a0,null));};exports[_0xf561('0x57')]=function(_0x1f7ece,_0x9af544){return db[_0xf561('0x3c')]['find']({'where':{'id':_0x1f7ece[_0xf561('0x51')]['id']}})['then'](handleEntityNotFound(_0x9af544,null))[_0xf561('0x23')](removeEntity(_0x9af544,null))[_0xf561('0x2d')](handleError(_0x9af544,null));};exports[_0xf561('0x58')]=function(_0x1c4520,_0xac130e){return db[_0xf561('0x3c')][_0xf561('0x58')]()[_0xf561('0x23')](respondWithResult(_0xac130e,null))[_0xf561('0x2d')](handleError(_0xac130e,null));};var interaction_log=require(_0xf561('0x13'))(_0xf561('0x59'));exports[_0xf561('0x5a')]=function(_0x5c4e52,_0x2ca2d5,_0x23a16){var _0x43e375={'channel':_0xf561('0x5b')};if(_0x5c4e52['body']['id']){delete _0x5c4e52[_0xf561('0x56')]['id'];}_0x5c4e52[_0xf561('0x56')][_0xf561('0x5c')]=!![];_0x5c4e52[_0xf561('0x56')]['readAt']=moment()['format'](_0xf561('0x5d'));_0x5c4e52[_0xf561('0x56')][_0xf561('0x5e')]=_0x5c4e52[_0xf561('0x56')][_0xf561('0x5e')]||_0x5c4e52[_0xf561('0x5f')]['id'];return db[_0xf561('0x3c')][_0xf561('0x54')]({'where':{'id':_0x5c4e52[_0xf561('0x51')]['id'],'UserId':null},'include':[{'model':db[_0xf561('0x60')],'as':_0xf561('0x61')}]})[_0xf561('0x23')](handleEntityNotFound(_0x2ca2d5,null))[_0xf561('0x23')](saveUpdates(_0x5c4e52['body'],null))[_0xf561('0x23')](function(_0x310541){if(_0x310541){_0x43e375[_0xf561('0x2a')]=_0x310541[_0xf561('0x62')]({'plain':!![]});return db[_0xf561('0x63')][_0xf561('0x54')]({'where':{'id':_0x310541['WhatsappInteractionId']}});}return null;})['then'](handleEntityNotFound(_0x2ca2d5,null))[_0xf561('0x23')](function(_0x413c55){if(_0x413c55){return _0x413c55['update']({'UserId':_0x5c4e52['body']['UserId'],'read1stAt':_['isNil'](_0x413c55[_0xf561('0x64')])?moment()[_0xf561('0x65')](_0xf561('0x5d')):undefined});}return null;})[_0xf561('0x23')](function(_0x3fe91b){if(_0x3fe91b){_0x43e375[_0xf561('0x66')]=_0x3fe91b[_0xf561('0x62')]({'plain':!![]});interaction_log[_0xf561('0x67')](_0xf561('0x68'),_0x5c4e52[_0xf561('0x5f')]['id'],_0x5c4e52['user'][_0xf561('0x39')],_0x5c4e52[_0xf561('0x5f')][_0xf561('0x69')],_0x43e375['interaction']['id'],_0x5c4e52[_0xf561('0x56')]?JSON[_0xf561('0x27')](_0x5c4e52[_0xf561('0x56')]):_0xf561('0x6a'));return respondWithRpcPromise('AcceptMessage',_0xf561('0x6b'),_0x43e375);}return null;})[_0xf561('0x23')](function(_0x6ee15f){if(_0x6ee15f){if(_0x5c4e52['body']['manual']){_0x43e375[_0xf561('0x2a')][_0xf561('0x6c')]=util['format']('SIP/%s',_0x5c4e52['user'][_0xf561('0x39')]);_0x43e375[_0xf561('0x2a')][_0xf561('0x6d')]=_0x43e375[_0xf561('0x6d')];_0x43e375[_0xf561('0x2a')][_0xf561('0x6e')]=_0xf561('0x5a');return respondWithRpcPromise(_0xf561('0x6f'),'EventManager',{'event':_0xf561('0x70'),'message':_0x43e375[_0xf561('0x2a')]},client9002)[_0xf561('0x23')](function(){return _0x43e375;});}return _0x43e375;}return null;})['then'](respondWithResult(_0x2ca2d5,null))[_0xf561('0x2d')](handleError(_0x2ca2d5,null));};var interaction_log=require(_0xf561('0x13'))(_0xf561('0x59'));exports['reject']=function(_0x592b73,_0x137ebf,_0x1a9208){var _0x2a5d2d={'agent':{},'channel':'whatsapp'};if(_0x592b73[_0xf561('0x56')]['id']){delete _0x592b73['body']['id'];}_0x592b73[_0xf561('0x56')][_0xf561('0x5e')]=_0x592b73[_0xf561('0x56')][_0xf561('0x5e')]||_0x592b73['user']['id'];_0x2a5d2d['agent']['id']=_0x592b73[_0xf561('0x56')][_0xf561('0x5e')];return db['WhatsappMessage'][_0xf561('0x54')]({'where':{'id':_0x592b73[_0xf561('0x51')]['id'],'UserId':null}})[_0xf561('0x23')](handleEntityNotFound(_0x137ebf,null))['then'](function(_0x2929a8){if(_0x2929a8){_0x2a5d2d['message']=_0x2929a8[_0xf561('0x62')]({'plain':!![]});return db[_0xf561('0x63')][_0xf561('0x54')]({'where':{'id':_0x2929a8[_0xf561('0x71')]}});}return null;})[_0xf561('0x23')](handleEntityNotFound(_0x137ebf,null))[_0xf561('0x23')](function(_0x7327b3){if(_0x7327b3){_0x2a5d2d['interaction']=_0x7327b3['get']({'plain':!![]});interaction_log[_0xf561('0x67')]('[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x592b73['user']['id'],_0x592b73[_0xf561('0x5f')]['name'],_0x592b73[_0xf561('0x5f')]['role'],_0x2a5d2d[_0xf561('0x66')]['id'],_0x592b73[_0xf561('0x56')]?JSON[_0xf561('0x27')](_0x592b73[_0xf561('0x56')]):'null');return respondWithRpcPromise(_0xf561('0x72'),'rejectMessage',_0x2a5d2d);}return null;})[_0xf561('0x23')](function(_0x5d14b8){if(_0x5d14b8){_0x5d14b8[_0xf561('0x2a')][_0xf561('0x6c')]=util['format'](_0xf561('0x73'),_0x592b73[_0xf561('0x5f')]['name']);_0x5d14b8[_0xf561('0x2a')][_0xf561('0x6d')]=_0x2a5d2d['channel'];_0x5d14b8[_0xf561('0x2a')][_0xf561('0x6e')]='reject';respondWithRpcPromise(_0xf561('0x6f'),_0xf561('0x6f'),{'event':_0xf561('0x74'),'message':_0x5d14b8[_0xf561('0x2a')]},client9002);return _0x2a5d2d;}return null;})['then'](respondWithResult(_0x137ebf,null))[_0xf561('0x2d')](handleError(_0x137ebf,null));};exports['status']=function(_0x5a9365,_0x1d0cc6,_0x465ffc){if(_0x5a9365['body']['id']){delete _0x5a9365[_0xf561('0x56')]['id'];}var _0x32c8af;return db['WhatsappMessage'][_0xf561('0x54')]({'where':{'id':_0x5a9365['params']['id']}})[_0xf561('0x23')](handleEntityNotFound(_0x1d0cc6,null))['then'](function(_0xf487ca){if(_0xf487ca){_0x32c8af=_0xf487ca;return db['WhatsappAccount'][_0xf561('0x54')]({'where':{'id':_0xf487ca[_0xf561('0x75')]}});}})['then'](handleEntityNotFound(_0x1d0cc6,null))[_0xf561('0x23')](function(_0xaf223b){if(_0xaf223b){logger['debug'](_0xf561('0x76'),_0xf561('0x2f'),_0xf561('0x77'),_0xaf223b[_0xf561('0x3f')],util[_0xf561('0x78')](_0x5a9365[_0xf561('0x56')],{'showHidden':![],'depth':null}));switch(_0xaf223b[_0xf561('0x3f')]){case _0xf561('0x79'):if(_0x5a9365[_0xf561('0x56')]['MessageSid']&&_0x5a9365['body']['MessageSid']===_0x32c8af[_0xf561('0x7a')]&&_0x5a9365[_0xf561('0x56')]['MessageStatus']&&_0x5a9365[_0xf561('0x56')][_0xf561('0x7b')]===_0xf561('0x5c')){return _0x32c8af[_0xf561('0x36')]({'read':!![]});}else{logger[_0xf561('0x28')](_0xf561('0x7c'),_0xf561('0x2f'),_0xf561('0x79'),util[_0xf561('0x78')](_0x5a9365[_0xf561('0x56')],{'showHidden':![],'depth':null}));}break;}return _0x32c8af;}})[_0xf561('0x23')](respondWithResult(_0x1d0cc6,null))['catch'](handleError(_0x1d0cc6,null));};