52cae3aa3f618ab60275d1213e18beac7c0178de
[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 _0x872f=['SIP/%s','channel','event','EventManager','acceptmessage','reject','whatsapp','agent','[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','rejectMessage','rejectmessage','WhatsappAccountId','WhatsppMessage,\x20%s,\x20%s,\x20%s','received\x20delivery\x20report\x20from','inspect','twilio','MessageSid','messageId','MessageStatus','WhatsappAccount,\x20%s,\x20%s,\x20%s','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','bluebird','util','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/utils','../../config/environment','../../mysqldb','redis','localhost','./whatsappMessage.socket','register','jayson/promise','client','http','test','request','then','info','WhatsappMessage,\x20%s,\x20%s','request\x20sent','debug','WhatsappMessage,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','update','stack','name','send','index','WhatsappMessage','rawAttributes','fieldName','type','map','keys','query','filters','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','filter','merge','where','VIRTUAL','options','includeAll','findAll','rows','show','params','include','create','body','find','destroy','describe','../../config/logger','whatsapp-interactions','accept','read','readAt','format','YYYY-MM-DD\x20HH:mm:ss','UserId','CmContact','Contact','get','WhatsappInteraction','WhatsappInteractionId','isNil','read1stAt','interaction','user','role','null','acceptMessage','manual','interface'];(function(_0x2e6dee,_0x1a61b0){var _0x47706=function(_0x365546){while(--_0x365546){_0x2e6dee['push'](_0x2e6dee['shift']());}};_0x47706(++_0x1a61b0);}(_0x872f,0x99));var _0xf872=function(_0x20b504,_0x330c27){_0x20b504=_0x20b504-0x0;var _0x237692=_0x872f[_0x20b504];return _0x237692;};'use strict';var pdf=require(_0xf872('0x0'));var emlformat=require(_0xf872('0x1'));var rimraf=require(_0xf872('0x2'));var zipdir=require(_0xf872('0x3'));var jsonpatch=require(_0xf872('0x4'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0xf872('0x5'));var Mustache=require('mustache');var util=require(_0xf872('0x6'));var path=require(_0xf872('0x7'));var sox=require(_0xf872('0x8'));var csv=require(_0xf872('0x9'));var ejs=require(_0xf872('0xa'));var fs=require('fs');var _=require(_0xf872('0xb'));var squel=require(_0xf872('0xc'));var crypto=require(_0xf872('0xd'));var jsforce=require('jsforce');var deskjs=require(_0xf872('0xe'));var toCsv=require('to-csv');var querystring=require(_0xf872('0xf'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0xf872('0x10'));var qs=require(_0xf872('0x11'));var as=require(_0xf872('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0xf872('0x13'));var utils=require(_0xf872('0x14'));var config=require(_0xf872('0x15'));var db=require(_0xf872('0x16'))['db'];config[_0xf872('0x17')]=_['defaults'](config[_0xf872('0x17')],{'host':_0xf872('0x18'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xf872('0x17')]));require(_0xf872('0x19'))[_0xf872('0x1a')](socket);var jayson=require(_0xf872('0x1b'));var client=jayson[_0xf872('0x1c')]['http']({'port':0x232c});var client9002=jayson[_0xf872('0x1c')][_0xf872('0x1d')]({'port':0x232a});function checkPasswordPattern(_0x410653,_0x2fc4dd,_0x43eb75){if(_0x43eb75){var _0x3f3452=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x3f3452[_0xf872('0x1e')](_0x2fc4dd)){return _0x410653;}else{throw new db['Sequelize']['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 _0x410653;}}function respondWithRpcPromise(_0x1d3bd2,_0x3ee5e9,_0x34225f,_0x2f4020){return new BPromise(function(_0x4c3216,_0x241c67){var _0x3408fa=_0x2f4020||client;return _0x3408fa[_0xf872('0x1f')](_0x1d3bd2,_0x34225f)[_0xf872('0x20')](function(_0x458e5c){logger[_0xf872('0x21')](_0xf872('0x22'),_0x3ee5e9,_0xf872('0x23'));logger[_0xf872('0x24')](_0xf872('0x25'),_0x3ee5e9,_0xf872('0x23'),JSON[_0xf872('0x26')](_0x458e5c));if(_0x458e5c['error']){if(_0x458e5c['error']['code']===0x1f4){logger[_0xf872('0x27')](_0xf872('0x22'),_0x3ee5e9,_0x458e5c[_0xf872('0x27')][_0xf872('0x28')]);return _0x241c67(_0x458e5c[_0xf872('0x27')][_0xf872('0x28')]);}logger[_0xf872('0x27')](_0xf872('0x22'),_0x3ee5e9,_0x458e5c['error']['message']);return _0x4c3216(_0x458e5c['error']['message']);}else{logger[_0xf872('0x21')](_0xf872('0x22'),_0x3ee5e9,_0xf872('0x23'));_0x4c3216(_0x458e5c[_0xf872('0x29')][_0xf872('0x28')]);}})[_0xf872('0x2a')](function(_0x4dd420){logger[_0xf872('0x27')](_0xf872('0x22'),_0x3ee5e9,_0x4dd420);_0x241c67(_0x4dd420);});});}function respondWithStatusCode(_0x24a2d1,_0x59dd16){_0x59dd16=_0x59dd16||0xcc;return function(_0x2c4fb3){if(_0x2c4fb3){return _0x24a2d1[_0xf872('0x2b')](_0x59dd16);}return _0x24a2d1[_0xf872('0x2c')](_0x59dd16)[_0xf872('0x2d')]();};}function respondWithResult(_0x1dfcc6,_0x45e9ec){_0x45e9ec=_0x45e9ec||0xc8;return function(_0x439e9f){if(_0x439e9f){return _0x1dfcc6[_0xf872('0x2c')](_0x45e9ec)[_0xf872('0x2e')](_0x439e9f);}};}function respondWithFilteredResult(_0x51ff4e,_0x56b50b){return function(_0x1b70a7){if(_0x1b70a7){var _0x1eb554=_0x1b70a7[_0xf872('0x2f')],_0xbc901e=_0x56b50b[_0xf872('0x30')],_0x1c286f=_0x56b50b[_0xf872('0x30')]+_0x56b50b[_0xf872('0x31')],_0x5941ad;if(_0x1c286f>=_0x1eb554){_0x1c286f=_0x1eb554;_0x5941ad=0xc8;}else{_0x5941ad=0xce;}_0x51ff4e['status'](_0x5941ad);return _0x51ff4e[_0xf872('0x32')](_0xf872('0x33'),_0xbc901e+'-'+_0x1c286f+'/'+_0x1eb554)[_0xf872('0x2e')](_0x1b70a7);}return null;};}function patchUpdates(_0x1ad3bf){return function(_0x5c5d8c){try{jsonpatch[_0xf872('0x34')](_0x5c5d8c,_0x1ad3bf,!![]);}catch(_0x513875){return BPromise['reject'](_0x513875);}return _0x5c5d8c['save']();};}function saveUpdates(_0x11d6ed,_0x3a41c7){return function(_0x3d3e14){if(_0x3d3e14){return _0x3d3e14[_0xf872('0x35')](_0x11d6ed)['then'](function(_0xc6c06c){return _0xc6c06c;});}return null;};}function removeEntity(_0x39cae9,_0xaf0137){return function(_0x49c38d){if(_0x49c38d){return _0x49c38d['destroy']()[_0xf872('0x20')](function(){_0x39cae9['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x752345,_0xe89d38){return function(_0x174e80){if(!_0x174e80){_0x752345['sendStatus'](0x194);}return _0x174e80;};}function handleError(_0x4653af,_0x207b89){_0x207b89=_0x207b89||0x1f4;return function(_0x2f07c6){logger[_0xf872('0x27')](_0x2f07c6[_0xf872('0x36')]);if(_0x2f07c6['name']){delete _0x2f07c6[_0xf872('0x37')];}_0x4653af['status'](_0x207b89)[_0xf872('0x38')](_0x2f07c6);};}exports[_0xf872('0x39')]=function(_0x3981dd,_0x505af2){var _0x1afb20={},_0x5068ef={},_0x7694d6={'count':0x0,'rows':[]};var _0x3d50ea=_['map'](db[_0xf872('0x3a')][_0xf872('0x3b')],function(_0x4d65e2){return{'name':_0x4d65e2[_0xf872('0x3c')],'type':_0x4d65e2[_0xf872('0x3d')]['key']};});_0x5068ef['model']=_[_0xf872('0x3e')](_0x3d50ea,_0xf872('0x37'));_0x5068ef['query']=_[_0xf872('0x3f')](_0x3981dd[_0xf872('0x40')]);_0x5068ef[_0xf872('0x41')]=_[_0xf872('0x42')](_0x5068ef[_0xf872('0x43')],_0x5068ef[_0xf872('0x40')]);_0x1afb20[_0xf872('0x44')]=_[_0xf872('0x42')](_0x5068ef[_0xf872('0x43')],qs['fields'](_0x3981dd['query'][_0xf872('0x45')]));_0x1afb20[_0xf872('0x44')]=_0x1afb20['attributes'][_0xf872('0x46')]?_0x1afb20[_0xf872('0x44')]:_0x5068ef[_0xf872('0x43')];if(!_0x3981dd[_0xf872('0x40')][_0xf872('0x47')](_0xf872('0x48'))){_0x1afb20['limit']=qs[_0xf872('0x31')](_0x3981dd[_0xf872('0x40')][_0xf872('0x31')]);_0x1afb20[_0xf872('0x30')]=qs[_0xf872('0x30')](_0x3981dd[_0xf872('0x40')][_0xf872('0x30')]);}_0x1afb20[_0xf872('0x49')]=qs['sort'](_0x3981dd[_0xf872('0x40')][_0xf872('0x4a')]);_0x1afb20['where']=qs[_0xf872('0x41')](_['pick'](_0x3981dd[_0xf872('0x40')],_0x5068ef[_0xf872('0x41')]),_0x3d50ea);if(_0x3981dd[_0xf872('0x40')][_0xf872('0x4b')]){_0x1afb20['where']=_[_0xf872('0x4c')](_0x1afb20[_0xf872('0x4d')],{'$or':_[_0xf872('0x3e')](_0x3d50ea,function(_0x4a0162){if(_0x4a0162['type']!==_0xf872('0x4e')){var _0x40e214={};_0x40e214[_0x4a0162[_0xf872('0x37')]]={'$like':'%'+_0x3981dd[_0xf872('0x40')][_0xf872('0x4b')]+'%'};return _0x40e214;}})});}_0x1afb20=_['merge']({},_0x1afb20,_0x3981dd[_0xf872('0x4f')]);var _0x414de9={'where':_0x1afb20[_0xf872('0x4d')]};return db['WhatsappMessage']['count'](_0x414de9)[_0xf872('0x20')](function(_0x3c5aff){_0x7694d6[_0xf872('0x2f')]=_0x3c5aff;if(_0x3981dd[_0xf872('0x40')][_0xf872('0x50')]){_0x1afb20['include']=[{'all':!![]}];}return db[_0xf872('0x3a')][_0xf872('0x51')](_0x1afb20);})[_0xf872('0x20')](function(_0x6c7618){_0x7694d6[_0xf872('0x52')]=_0x6c7618;return _0x7694d6;})[_0xf872('0x20')](respondWithFilteredResult(_0x505af2,_0x1afb20))[_0xf872('0x2a')](handleError(_0x505af2,null));};exports[_0xf872('0x53')]=function(_0x116b1e,_0x357bc5){var _0x421f0d={'raw':!![],'where':{'id':_0x116b1e[_0xf872('0x54')]['id']}},_0x2ab420={};_0x2ab420[_0xf872('0x43')]=_[_0xf872('0x3f')](db[_0xf872('0x3a')]['rawAttributes']);_0x2ab420[_0xf872('0x40')]=_['keys'](_0x116b1e['query']);_0x2ab420[_0xf872('0x41')]=_['intersection'](_0x2ab420[_0xf872('0x43')],_0x2ab420[_0xf872('0x40')]);_0x421f0d[_0xf872('0x44')]=_[_0xf872('0x42')](_0x2ab420['model'],qs[_0xf872('0x45')](_0x116b1e[_0xf872('0x40')][_0xf872('0x45')]));_0x421f0d['attributes']=_0x421f0d[_0xf872('0x44')]['length']?_0x421f0d[_0xf872('0x44')]:_0x2ab420[_0xf872('0x43')];if(_0x116b1e[_0xf872('0x40')][_0xf872('0x50')]){_0x421f0d[_0xf872('0x55')]=[{'all':!![]}];}_0x421f0d=_[_0xf872('0x4c')]({},_0x421f0d,_0x116b1e[_0xf872('0x4f')]);return db[_0xf872('0x3a')]['find'](_0x421f0d)[_0xf872('0x20')](handleEntityNotFound(_0x357bc5,null))[_0xf872('0x20')](respondWithResult(_0x357bc5,null))[_0xf872('0x2a')](handleError(_0x357bc5,null));};exports['create']=function(_0x5727fd,_0x513e11){return db['WhatsappMessage'][_0xf872('0x56')](_0x5727fd[_0xf872('0x57')],{})[_0xf872('0x20')](respondWithResult(_0x513e11,0xc9))[_0xf872('0x2a')](handleError(_0x513e11,null));};exports['update']=function(_0x52f696,_0x3fd043){if(_0x52f696[_0xf872('0x57')]['id']){delete _0x52f696[_0xf872('0x57')]['id'];}return db['WhatsappMessage'][_0xf872('0x58')]({'where':{'id':_0x52f696[_0xf872('0x54')]['id']}})[_0xf872('0x20')](handleEntityNotFound(_0x3fd043,null))[_0xf872('0x20')](saveUpdates(_0x52f696[_0xf872('0x57')],null))[_0xf872('0x20')](respondWithResult(_0x3fd043,null))['catch'](handleError(_0x3fd043,null));};exports[_0xf872('0x59')]=function(_0x19c378,_0x15b9dc){return db[_0xf872('0x3a')][_0xf872('0x58')]({'where':{'id':_0x19c378[_0xf872('0x54')]['id']}})[_0xf872('0x20')](handleEntityNotFound(_0x15b9dc,null))['then'](removeEntity(_0x15b9dc,null))[_0xf872('0x2a')](handleError(_0x15b9dc,null));};exports[_0xf872('0x5a')]=function(_0x1a5ffe,_0x2728e5){return db['WhatsappMessage'][_0xf872('0x5a')]()['then'](respondWithResult(_0x2728e5,null))[_0xf872('0x2a')](handleError(_0x2728e5,null));};var interaction_log=require(_0xf872('0x5b'))(_0xf872('0x5c'));exports[_0xf872('0x5d')]=function(_0x4e2601,_0x339202,_0x589c03){var _0x30da60={'channel':'whatsapp'};if(_0x4e2601[_0xf872('0x57')]['id']){delete _0x4e2601['body']['id'];}_0x4e2601[_0xf872('0x57')][_0xf872('0x5e')]=!![];_0x4e2601['body'][_0xf872('0x5f')]=moment()[_0xf872('0x60')](_0xf872('0x61'));_0x4e2601[_0xf872('0x57')][_0xf872('0x62')]=_0x4e2601['body'][_0xf872('0x62')]||_0x4e2601['user']['id'];return db[_0xf872('0x3a')][_0xf872('0x58')]({'where':{'id':_0x4e2601[_0xf872('0x54')]['id'],'UserId':null},'include':[{'model':db[_0xf872('0x63')],'as':_0xf872('0x64')}]})[_0xf872('0x20')](handleEntityNotFound(_0x339202,null))['then'](saveUpdates(_0x4e2601[_0xf872('0x57')],null))[_0xf872('0x20')](function(_0x1e2113){if(_0x1e2113){_0x30da60[_0xf872('0x28')]=_0x1e2113[_0xf872('0x65')]({'plain':!![]});return db[_0xf872('0x66')][_0xf872('0x58')]({'where':{'id':_0x1e2113[_0xf872('0x67')]}});}return null;})[_0xf872('0x20')](handleEntityNotFound(_0x339202,null))['then'](function(_0x98fdb5){if(_0x98fdb5){return _0x98fdb5['update']({'UserId':_0x4e2601[_0xf872('0x57')][_0xf872('0x62')],'read1stAt':_[_0xf872('0x68')](_0x98fdb5[_0xf872('0x69')])?moment()['format'](_0xf872('0x61')):undefined});}return null;})[_0xf872('0x20')](function(_0x5b1a6a){if(_0x5b1a6a){_0x30da60[_0xf872('0x6a')]=_0x5b1a6a['get']({'plain':!![]});interaction_log[_0xf872('0x21')]('[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x4e2601[_0xf872('0x6b')]['id'],_0x4e2601['user'][_0xf872('0x37')],_0x4e2601[_0xf872('0x6b')][_0xf872('0x6c')],_0x30da60['interaction']['id'],_0x4e2601[_0xf872('0x57')]?JSON[_0xf872('0x26')](_0x4e2601[_0xf872('0x57')]):_0xf872('0x6d'));return respondWithRpcPromise('AcceptMessage',_0xf872('0x6e'),_0x30da60);}return null;})[_0xf872('0x20')](function(_0x54b750){if(_0x54b750){if(_0x4e2601[_0xf872('0x57')][_0xf872('0x6f')]){_0x30da60[_0xf872('0x28')][_0xf872('0x70')]=util['format'](_0xf872('0x71'),_0x4e2601['user'][_0xf872('0x37')]);_0x30da60['message'][_0xf872('0x72')]=_0x30da60[_0xf872('0x72')];_0x30da60[_0xf872('0x28')][_0xf872('0x73')]=_0xf872('0x5d');return respondWithRpcPromise(_0xf872('0x74'),_0xf872('0x74'),{'event':_0xf872('0x75'),'message':_0x30da60[_0xf872('0x28')]},client9002)[_0xf872('0x20')](function(){return _0x30da60;});}return _0x30da60;}return null;})[_0xf872('0x20')](respondWithResult(_0x339202,null))['catch'](handleError(_0x339202,null));};var interaction_log=require(_0xf872('0x5b'))('whatsapp-interactions');exports[_0xf872('0x76')]=function(_0x52a639,_0x5be67d,_0x513232){var _0x3f87bb={'agent':{},'channel':_0xf872('0x77')};if(_0x52a639[_0xf872('0x57')]['id']){delete _0x52a639['body']['id'];}_0x52a639[_0xf872('0x57')][_0xf872('0x62')]=_0x52a639[_0xf872('0x57')][_0xf872('0x62')]||_0x52a639[_0xf872('0x6b')]['id'];_0x3f87bb[_0xf872('0x78')]['id']=_0x52a639[_0xf872('0x57')][_0xf872('0x62')];return db['WhatsappMessage'][_0xf872('0x58')]({'where':{'id':_0x52a639['params']['id'],'UserId':null}})[_0xf872('0x20')](handleEntityNotFound(_0x5be67d,null))[_0xf872('0x20')](function(_0x215c92){if(_0x215c92){_0x3f87bb[_0xf872('0x28')]=_0x215c92['get']({'plain':!![]});return db[_0xf872('0x66')][_0xf872('0x58')]({'where':{'id':_0x215c92[_0xf872('0x67')]}});}return null;})[_0xf872('0x20')](handleEntityNotFound(_0x5be67d,null))[_0xf872('0x20')](function(_0x40aa4d){if(_0x40aa4d){_0x3f87bb[_0xf872('0x6a')]=_0x40aa4d[_0xf872('0x65')]({'plain':!![]});interaction_log[_0xf872('0x21')](_0xf872('0x79'),_0x52a639['user']['id'],_0x52a639['user'][_0xf872('0x37')],_0x52a639[_0xf872('0x6b')]['role'],_0x3f87bb[_0xf872('0x6a')]['id'],_0x52a639['body']?JSON['stringify'](_0x52a639[_0xf872('0x57')]):_0xf872('0x6d'));return respondWithRpcPromise('RejectMessage',_0xf872('0x7a'),_0x3f87bb);}return null;})['then'](function(_0x4734cb){if(_0x4734cb){_0x4734cb[_0xf872('0x28')][_0xf872('0x70')]=util['format'](_0xf872('0x71'),_0x52a639['user'][_0xf872('0x37')]);_0x4734cb['message'][_0xf872('0x72')]=_0x3f87bb[_0xf872('0x72')];_0x4734cb[_0xf872('0x28')][_0xf872('0x73')]=_0xf872('0x76');respondWithRpcPromise('EventManager',_0xf872('0x74'),{'event':_0xf872('0x7b'),'message':_0x4734cb[_0xf872('0x28')]},client9002);return _0x3f87bb;}return null;})[_0xf872('0x20')](respondWithResult(_0x5be67d,null))[_0xf872('0x2a')](handleError(_0x5be67d,null));};exports[_0xf872('0x2c')]=function(_0x44845f,_0x51ba77,_0x5184d9){if(_0x44845f[_0xf872('0x57')]['id']){delete _0x44845f[_0xf872('0x57')]['id'];}var _0x1e23c7;return db[_0xf872('0x3a')][_0xf872('0x58')]({'where':{'id':_0x44845f[_0xf872('0x54')]['id']}})[_0xf872('0x20')](handleEntityNotFound(_0x51ba77,null))['then'](function(_0x368c04){if(_0x368c04){_0x1e23c7=_0x368c04;return db['WhatsappAccount'][_0xf872('0x58')]({'where':{'id':_0x368c04[_0xf872('0x7c')]}});}})[_0xf872('0x20')](handleEntityNotFound(_0x51ba77,null))['then'](function(_0x1d2a70){if(_0x1d2a70){logger[_0xf872('0x24')](_0xf872('0x7d'),'status',_0xf872('0x7e'),_0x1d2a70[_0xf872('0x3d')],util[_0xf872('0x7f')](_0x44845f[_0xf872('0x57')],{'showHidden':![],'depth':null}));switch(_0x1d2a70[_0xf872('0x3d')]){case _0xf872('0x80'):if(_0x44845f[_0xf872('0x57')]['MessageSid']&&_0x44845f[_0xf872('0x57')][_0xf872('0x81')]===_0x1e23c7[_0xf872('0x82')]&&_0x44845f['body'][_0xf872('0x83')]&&_0x44845f[_0xf872('0x57')][_0xf872('0x83')]===_0xf872('0x5e')){return _0x1e23c7[_0xf872('0x35')]({'read':!![]});}else{logger[_0xf872('0x27')](_0xf872('0x84'),_0xf872('0x2c'),'twilio',util['inspect'](_0x44845f['body'],{'showHidden':![],'depth':null}));}break;}return _0x1e23c7;}})[_0xf872('0x20')](respondWithResult(_0x51ba77,null))[_0xf872('0x2a')](handleError(_0x51ba77,null));};