47a280c3a9f40554486304fec6d45da3802ba68b
[motion2.git] / server / api / intFreshdeskAccount / intFreshdeskAccount.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 _0xfb77=['jayson/promise','client','request','info','FreshdeskAccount,\x20%s,\x20%s','request\x20sent','debug','FreshdeskAccount,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','sendStatus','status','json','offset','limit','set','Content-Range','apply','reject','save','update','then','end','stack','name','index','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','pick','filter','map','merge','options','FreshdeskAccount','count','includeAll','findAll','rows','show','params','include','find','create','body','getConfigurations','findOne','FreshdeskConfiguration','nolimit','addConfiguration','AccountId','Subjects','getSubjects','channel','Descriptions','getDescriptions','FreshdeskField','getFields','remoteUri','apiKey','slice','substring','lastIndexOf','format','%s/%s','api/v2/ticket_fields','Basic\x20%s','%s:X','toString','base64','subject','agent','description','group','source','ticket_type','company','default','custom_text','custom_dropdown','label','choices','capitalize','statusCode','send','test','Wrong\x20credentials','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb'];(function(_0x371841,_0x30d8db){var _0xc41d83=function(_0x2ca64d){while(--_0x2ca64d){_0x371841['push'](_0x371841['shift']());}};_0xc41d83(++_0x30d8db);}(_0xfb77,0x16d));var _0x7fb7=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0xfb77[_0x2b4411];return _0x8e41ef;};'use strict';var emlformat=require(_0x7fb7('0x0'));var rimraf=require(_0x7fb7('0x1'));var zipdir=require(_0x7fb7('0x2'));var jsonpatch=require(_0x7fb7('0x3'));var rp=require(_0x7fb7('0x4'));var moment=require(_0x7fb7('0x5'));var BPromise=require(_0x7fb7('0x6'));var Mustache=require(_0x7fb7('0x7'));var util=require(_0x7fb7('0x8'));var path=require(_0x7fb7('0x9'));var sox=require(_0x7fb7('0xa'));var csv=require(_0x7fb7('0xb'));var ejs=require(_0x7fb7('0xc'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x7fb7('0xd'));var crypto=require(_0x7fb7('0xe'));var jsforce=require(_0x7fb7('0xf'));var deskjs=require(_0x7fb7('0x10'));var toCsv=require('to-csv');var querystring=require(_0x7fb7('0x11'));var Papa=require('papaparse');var Redis=require(_0x7fb7('0x12'));var authService=require(_0x7fb7('0x13'));var qs=require(_0x7fb7('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x7fb7('0x15'));var logger=require(_0x7fb7('0x16'))(_0x7fb7('0x17'));var utils=require(_0x7fb7('0x18'));var config=require(_0x7fb7('0x19'));var licenseUtil=require(_0x7fb7('0x1a'));var db=require(_0x7fb7('0x1b'))['db'];var integrations=require('../../components/integrations/configuration');var jayson=require(_0x7fb7('0x1c'));var client=jayson[_0x7fb7('0x1d')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5bee1a,_0x1549d8,_0x508d15,_0xec896b){return new BPromise(function(_0x26221d,_0x269ac9){var _0x519e03=_0xec896b||client;return _0x519e03[_0x7fb7('0x1e')](_0x5bee1a,_0x508d15)['then'](function(_0x19d1be){logger[_0x7fb7('0x1f')](_0x7fb7('0x20'),_0x1549d8,_0x7fb7('0x21'));logger[_0x7fb7('0x22')](_0x7fb7('0x23'),_0x1549d8,_0x7fb7('0x21'),JSON[_0x7fb7('0x24')](_0x19d1be));if(_0x19d1be[_0x7fb7('0x25')]){if(_0x19d1be[_0x7fb7('0x25')][_0x7fb7('0x26')]===0x1f4){logger[_0x7fb7('0x25')](_0x7fb7('0x20'),_0x1549d8,_0x19d1be[_0x7fb7('0x25')]['message']);return _0x269ac9(_0x19d1be['error']['message']);}logger[_0x7fb7('0x25')]('FreshdeskAccount,\x20%s,\x20%s',_0x1549d8,_0x19d1be[_0x7fb7('0x25')][_0x7fb7('0x27')]);return _0x26221d(_0x19d1be[_0x7fb7('0x25')][_0x7fb7('0x27')]);}else{logger['info'](_0x7fb7('0x20'),_0x1549d8,_0x7fb7('0x21'));_0x26221d(_0x19d1be['result'][_0x7fb7('0x27')]);}})[_0x7fb7('0x28')](function(_0x373a15){logger['error']('FreshdeskAccount,\x20%s,\x20%s',_0x1549d8,_0x373a15);_0x269ac9(_0x373a15);});});}function respondWithStatusCode(_0x30856e,_0x1a7507){_0x1a7507=_0x1a7507||0xcc;return function(_0x2a11a7){if(_0x2a11a7){return _0x30856e[_0x7fb7('0x29')](_0x1a7507);}return _0x30856e['status'](_0x1a7507)['end']();};}function respondWithResult(_0x2ab5f4,_0x166a97){_0x166a97=_0x166a97||0xc8;return function(_0x327e78){if(_0x327e78){return _0x2ab5f4[_0x7fb7('0x2a')](_0x166a97)[_0x7fb7('0x2b')](_0x327e78);}};}function respondWithFilteredResult(_0x1fdcc2,_0xce9f81){return function(_0x591fc4){if(_0x591fc4){var _0x45b59c=typeof _0xce9f81[_0x7fb7('0x2c')]==='undefined'&&typeof _0xce9f81[_0x7fb7('0x2d')]==='undefined';var _0x1aa789=_0x591fc4['count'];var _0x515c98=_0x45b59c?0x0:_0xce9f81[_0x7fb7('0x2c')];var _0x535eb4=_0x45b59c?_0x591fc4['count']:_0xce9f81[_0x7fb7('0x2c')]+_0xce9f81[_0x7fb7('0x2d')];var _0x33fbb9;if(_0x535eb4>=_0x1aa789){_0x535eb4=_0x1aa789;_0x33fbb9=0xc8;}else{_0x33fbb9=0xce;}_0x1fdcc2['status'](_0x33fbb9);return _0x1fdcc2[_0x7fb7('0x2e')](_0x7fb7('0x2f'),_0x515c98+'-'+_0x535eb4+'/'+_0x1aa789)[_0x7fb7('0x2b')](_0x591fc4);}return null;};}function patchUpdates(_0x5cce0e){return function(_0x304acd){try{jsonpatch[_0x7fb7('0x30')](_0x304acd,_0x5cce0e,!![]);}catch(_0x161f78){return BPromise[_0x7fb7('0x31')](_0x161f78);}return _0x304acd[_0x7fb7('0x32')]();};}function saveUpdates(_0x390f7c,_0x452ab3){return function(_0x41378e){if(_0x41378e){return _0x41378e[_0x7fb7('0x33')](_0x390f7c)[_0x7fb7('0x34')](function(_0xee72c8){return _0xee72c8;});}return null;};}function removeEntity(_0x51c8b9,_0x4bc761){return function(_0xb11d0c){if(_0xb11d0c){return _0xb11d0c['destroy']()[_0x7fb7('0x34')](function(){_0x51c8b9[_0x7fb7('0x2a')](0xcc)[_0x7fb7('0x35')]();});}};}function handleEntityNotFound(_0x1e8f09,_0x1604e0){return function(_0x5b384e){if(!_0x5b384e){_0x1e8f09['sendStatus'](0x194);}return _0x5b384e;};}function handleError(_0x110e86,_0x1175af){_0x1175af=_0x1175af||0x1f4;return function(_0x37d1b4){logger[_0x7fb7('0x25')](_0x37d1b4[_0x7fb7('0x36')]);if(_0x37d1b4[_0x7fb7('0x37')]){delete _0x37d1b4['name'];}_0x110e86['status'](_0x1175af)['send'](_0x37d1b4);};}exports[_0x7fb7('0x38')]=function(_0x579157,_0x21b5b6){var _0x37a0e1={},_0x26c64c={},_0x5637c9={'count':0x0,'rows':[]};var _0x490c25=_['map'](db['FreshdeskAccount'][_0x7fb7('0x39')],function(_0xbecd3b){return{'name':_0xbecd3b[_0x7fb7('0x3a')],'type':_0xbecd3b[_0x7fb7('0x3b')][_0x7fb7('0x3c')]};});_0x26c64c[_0x7fb7('0x3d')]=_['map'](_0x490c25,_0x7fb7('0x37'));_0x26c64c[_0x7fb7('0x3e')]=_[_0x7fb7('0x3f')](_0x579157['query']);_0x26c64c[_0x7fb7('0x40')]=_[_0x7fb7('0x41')](_0x26c64c[_0x7fb7('0x3d')],_0x26c64c[_0x7fb7('0x3e')]);_0x37a0e1[_0x7fb7('0x42')]=_[_0x7fb7('0x41')](_0x26c64c[_0x7fb7('0x3d')],qs[_0x7fb7('0x43')](_0x579157[_0x7fb7('0x3e')][_0x7fb7('0x43')]));_0x37a0e1[_0x7fb7('0x42')]=_0x37a0e1[_0x7fb7('0x42')][_0x7fb7('0x44')]?_0x37a0e1[_0x7fb7('0x42')]:_0x26c64c[_0x7fb7('0x3d')];if(!_0x579157[_0x7fb7('0x3e')][_0x7fb7('0x45')]('nolimit')){_0x37a0e1[_0x7fb7('0x2d')]=qs['limit'](_0x579157[_0x7fb7('0x3e')]['limit']);_0x37a0e1[_0x7fb7('0x2c')]=qs[_0x7fb7('0x2c')](_0x579157[_0x7fb7('0x3e')][_0x7fb7('0x2c')]);}_0x37a0e1[_0x7fb7('0x46')]=qs[_0x7fb7('0x47')](_0x579157[_0x7fb7('0x3e')][_0x7fb7('0x47')]);_0x37a0e1[_0x7fb7('0x48')]=qs['filters'](_[_0x7fb7('0x49')](_0x579157['query'],_0x26c64c[_0x7fb7('0x40')]),_0x490c25);if(_0x579157[_0x7fb7('0x3e')][_0x7fb7('0x4a')]){_0x37a0e1[_0x7fb7('0x48')]=_['merge'](_0x37a0e1[_0x7fb7('0x48')],{'$or':_[_0x7fb7('0x4b')](_0x490c25,function(_0x25093c){if(_0x25093c[_0x7fb7('0x3b')]!=='VIRTUAL'){var _0x1cf986={};_0x1cf986[_0x25093c[_0x7fb7('0x37')]]={'$like':'%'+_0x579157[_0x7fb7('0x3e')]['filter']+'%'};return _0x1cf986;}})});}_0x37a0e1=_[_0x7fb7('0x4c')]({},_0x37a0e1,_0x579157[_0x7fb7('0x4d')]);var _0x2dfb8c={'where':_0x37a0e1[_0x7fb7('0x48')]};return db[_0x7fb7('0x4e')]['count'](_0x2dfb8c)['then'](function(_0x372e04){_0x5637c9[_0x7fb7('0x4f')]=_0x372e04;if(_0x579157[_0x7fb7('0x3e')][_0x7fb7('0x50')]){_0x37a0e1['include']=[{'all':!![]}];}return db[_0x7fb7('0x4e')][_0x7fb7('0x51')](_0x37a0e1);})[_0x7fb7('0x34')](function(_0x6c14ad){_0x5637c9[_0x7fb7('0x52')]=_0x6c14ad;return _0x5637c9;})[_0x7fb7('0x34')](respondWithFilteredResult(_0x21b5b6,_0x37a0e1))[_0x7fb7('0x28')](handleError(_0x21b5b6,null));};exports[_0x7fb7('0x53')]=function(_0x3a5f9c,_0x342c13){var _0x52ded7={'raw':![],'where':{'id':_0x3a5f9c[_0x7fb7('0x54')]['id']}},_0x5a05fa={};_0x5a05fa['model']=_[_0x7fb7('0x3f')](db[_0x7fb7('0x4e')][_0x7fb7('0x39')]);_0x5a05fa['query']=_['keys'](_0x3a5f9c[_0x7fb7('0x3e')]);_0x5a05fa[_0x7fb7('0x40')]=_[_0x7fb7('0x41')](_0x5a05fa[_0x7fb7('0x3d')],_0x5a05fa[_0x7fb7('0x3e')]);_0x52ded7[_0x7fb7('0x42')]=_[_0x7fb7('0x41')](_0x5a05fa['model'],qs[_0x7fb7('0x43')](_0x3a5f9c['query'][_0x7fb7('0x43')]));_0x52ded7[_0x7fb7('0x42')]=_0x52ded7[_0x7fb7('0x42')][_0x7fb7('0x44')]?_0x52ded7[_0x7fb7('0x42')]:_0x5a05fa[_0x7fb7('0x3d')];if(_0x3a5f9c[_0x7fb7('0x3e')][_0x7fb7('0x50')]){_0x52ded7[_0x7fb7('0x55')]=[{'all':!![]}];}_0x52ded7=_['merge']({},_0x52ded7,_0x3a5f9c['options']);return db[_0x7fb7('0x4e')][_0x7fb7('0x56')](_0x52ded7)['then'](handleEntityNotFound(_0x342c13,null))[_0x7fb7('0x34')](respondWithResult(_0x342c13,null))['catch'](handleError(_0x342c13,null));};exports[_0x7fb7('0x57')]=function(_0x295d7d,_0x45ec67){return db[_0x7fb7('0x4e')][_0x7fb7('0x57')](_0x295d7d[_0x7fb7('0x58')],{})[_0x7fb7('0x34')](respondWithResult(_0x45ec67,0xc9))[_0x7fb7('0x28')](handleError(_0x45ec67,null));};exports[_0x7fb7('0x33')]=function(_0x501994,_0x5eb9f5){if(_0x501994['body']['id']){delete _0x501994[_0x7fb7('0x58')]['id'];}return db['FreshdeskAccount'][_0x7fb7('0x56')]({'where':{'id':_0x501994['params']['id']}})['then'](handleEntityNotFound(_0x5eb9f5,null))[_0x7fb7('0x34')](saveUpdates(_0x501994[_0x7fb7('0x58')],null))['then'](respondWithResult(_0x5eb9f5,null))['catch'](handleError(_0x5eb9f5,null));};exports['destroy']=function(_0x54914e,_0x8f5e80){return db['FreshdeskAccount'][_0x7fb7('0x56')]({'where':{'id':_0x54914e[_0x7fb7('0x54')]['id']}})[_0x7fb7('0x34')](handleEntityNotFound(_0x8f5e80,null))[_0x7fb7('0x34')](removeEntity(_0x8f5e80,null))[_0x7fb7('0x28')](handleError(_0x8f5e80,null));};exports[_0x7fb7('0x59')]=function(_0x2323ab,_0x118f2f,_0x8e3f3){var _0x15fb71={};var _0x476db5={};var _0x30e4a7;var _0x26a5c4;return db[_0x7fb7('0x4e')][_0x7fb7('0x5a')]({'where':{'id':_0x2323ab[_0x7fb7('0x54')]['id']}})['then'](handleEntityNotFound(_0x118f2f,null))[_0x7fb7('0x34')](function(_0x475f25){if(_0x475f25){_0x30e4a7=_0x475f25;_0x476db5[_0x7fb7('0x3d')]=_[_0x7fb7('0x3f')](db[_0x7fb7('0x5b')][_0x7fb7('0x39')]);_0x476db5['query']=_[_0x7fb7('0x3f')](_0x2323ab[_0x7fb7('0x3e')]);_0x476db5[_0x7fb7('0x40')]=_['intersection'](_0x476db5[_0x7fb7('0x3d')],_0x476db5[_0x7fb7('0x3e')]);_0x15fb71[_0x7fb7('0x42')]=_[_0x7fb7('0x41')](_0x476db5[_0x7fb7('0x3d')],qs[_0x7fb7('0x43')](_0x2323ab[_0x7fb7('0x3e')]['fields']));_0x15fb71[_0x7fb7('0x42')]=_0x15fb71[_0x7fb7('0x42')][_0x7fb7('0x44')]?_0x15fb71[_0x7fb7('0x42')]:_0x476db5[_0x7fb7('0x3d')];_0x15fb71[_0x7fb7('0x46')]=qs[_0x7fb7('0x47')](_0x2323ab[_0x7fb7('0x3e')][_0x7fb7('0x47')]);_0x15fb71[_0x7fb7('0x48')]=qs['filters'](_[_0x7fb7('0x49')](_0x2323ab[_0x7fb7('0x3e')],_0x476db5[_0x7fb7('0x40')]));if(_0x2323ab[_0x7fb7('0x3e')][_0x7fb7('0x4a')]){_0x15fb71[_0x7fb7('0x48')]=_['merge'](_0x15fb71[_0x7fb7('0x48')],{'$or':_[_0x7fb7('0x4b')](_0x15fb71['attributes'],function(_0xe63574){var _0x2d9a59={};_0x2d9a59[_0xe63574]={'$like':'%'+_0x2323ab[_0x7fb7('0x3e')][_0x7fb7('0x4a')]+'%'};return _0x2d9a59;})});}_0x15fb71=_[_0x7fb7('0x4c')]({},_0x15fb71,_0x2323ab[_0x7fb7('0x4d')]);return _0x30e4a7['getConfigurations'](_0x15fb71);}})['then'](function(_0x46d69b){if(_0x46d69b){_0x26a5c4=_0x46d69b[_0x7fb7('0x44')];if(!_0x2323ab[_0x7fb7('0x3e')][_0x7fb7('0x45')](_0x7fb7('0x5c'))){_0x15fb71[_0x7fb7('0x2d')]=qs[_0x7fb7('0x2d')](_0x2323ab[_0x7fb7('0x3e')][_0x7fb7('0x2d')]);_0x15fb71[_0x7fb7('0x2c')]=qs[_0x7fb7('0x2c')](_0x2323ab[_0x7fb7('0x3e')][_0x7fb7('0x2c')]);}return _0x30e4a7[_0x7fb7('0x59')](_0x15fb71);}})[_0x7fb7('0x34')](function(_0x337981){if(_0x337981){return _0x337981?{'count':_0x26a5c4,'rows':_0x337981}:null;}})['then'](respondWithResult(_0x118f2f,null))[_0x7fb7('0x28')](handleError(_0x118f2f,null));};exports[_0x7fb7('0x5d')]=function(_0x100176,_0x39706a,_0x30d416){if(_0x100176[_0x7fb7('0x58')]['id']){delete _0x100176[_0x7fb7('0x58')]['id'];}return db[_0x7fb7('0x4e')][_0x7fb7('0x5a')]({'where':{'id':_0x100176[_0x7fb7('0x54')]['id']}})[_0x7fb7('0x34')](handleEntityNotFound(_0x39706a,null))[_0x7fb7('0x34')](function(_0x3a8215){if(_0x3a8215){_0x100176[_0x7fb7('0x58')][_0x7fb7('0x5e')]=_0x3a8215['id'];_0x100176['body'][_0x7fb7('0x5f')]=integrations[_0x7fb7('0x60')](_0x100176[_0x7fb7('0x58')][_0x7fb7('0x61')],_0x100176[_0x7fb7('0x58')][_0x7fb7('0x3b')]);_0x100176[_0x7fb7('0x58')][_0x7fb7('0x62')]=integrations[_0x7fb7('0x63')](_0x100176[_0x7fb7('0x58')][_0x7fb7('0x61')],_0x100176[_0x7fb7('0x58')]['type']);return db[_0x7fb7('0x5b')]['create'](_0x100176['body'],{'include':[{'model':db['FreshdeskField'],'as':'Subjects'},{'model':db[_0x7fb7('0x64')],'as':_0x7fb7('0x62')}]});}return null;})[_0x7fb7('0x34')](respondWithResult(_0x39706a,null))[_0x7fb7('0x28')](handleError(_0x39706a,null));};exports[_0x7fb7('0x65')]=function(_0x2eb63f,_0x48ff65,_0x1cad0b){var _0x385e52='';return db[_0x7fb7('0x4e')][_0x7fb7('0x5a')]({'where':{'id':_0x2eb63f[_0x7fb7('0x54')]['id']},'attributes':['id',_0x7fb7('0x66'),_0x7fb7('0x67')]})['then'](handleEntityNotFound(_0x48ff65,null))[_0x7fb7('0x34')](function(_0x52c2cb){if(_0x52c2cb){_0x385e52=_0x52c2cb[_0x7fb7('0x66')];var _0x28bfcd=_0x385e52[_0x7fb7('0x68')](-0x1);if(_0x28bfcd==='/'){_0x385e52=_0x385e52[_0x7fb7('0x69')](0x0,_0x385e52[_0x7fb7('0x6a')](_0x28bfcd));}return rp({'method':'GET','uri':util[_0x7fb7('0x6b')](_0x7fb7('0x6c'),_0x385e52,_0x7fb7('0x6d')),'headers':{'Authorization':util[_0x7fb7('0x6b')](_0x7fb7('0x6e'),new Buffer(util[_0x7fb7('0x6b')](_0x7fb7('0x6f'),_0x52c2cb[_0x7fb7('0x67')]))[_0x7fb7('0x70')](_0x7fb7('0x71')))},'json':!![]});}})[_0x7fb7('0x34')](function(_0x4e7f07){if(_0x4e7f07){var _0x2b0d2c=['requester',_0x7fb7('0x72'),_0x7fb7('0x73'),_0x7fb7('0x74'),_0x7fb7('0x2a'),'priority',_0x7fb7('0x75'),_0x7fb7('0x76'),_0x7fb7('0x77'),'group',_0x7fb7('0x78')];_['remove'](_0x4e7f07,function(_0x291211){return _0x2b0d2c['includes'](_0x291211[_0x7fb7('0x37')])||!_0x291211[_0x7fb7('0x79')]&&_0x291211[_0x7fb7('0x3b')]!==_0x7fb7('0x7a')&&_0x291211[_0x7fb7('0x3b')]!==_0x7fb7('0x7b');});return{'count':_0x4e7f07[_0x7fb7('0x44')],'rows':_[_0x7fb7('0x4b')](_0x4e7f07,function(_0x25fe34){return{'id':_0x25fe34[_0x7fb7('0x37')],'name':_0x25fe34[_0x7fb7('0x7c')],'custom':!_0x25fe34[_0x7fb7('0x79')],'options':_0x25fe34[_0x7fb7('0x7d')]?_[_0x7fb7('0x4b')](_0x25fe34[_0x7fb7('0x7d')],function(_0x2608fa){return{'name':_[_0x7fb7('0x7e')](_0x2608fa),'value':_0x2608fa};}):[]};})};}})[_0x7fb7('0x34')](respondWithResult(_0x48ff65,null))[_0x7fb7('0x28')](function(_0x28f7e9){var _0x240b94=_0x2eb63f['query']['test']?0x1f4:_0x28f7e9[_0x7fb7('0x7f')]||0x1f4;logger['error']('getFields,\x20%s,\x20%s,\x20%s','getFields',_0x240b94,JSON[_0x7fb7('0x24')](_0x28f7e9));delete _0x28f7e9['name'];if(_0x240b94===0x191){_0x240b94=0x190;}_0x48ff65[_0x7fb7('0x2a')](_0x240b94)[_0x7fb7('0x80')](_0x2eb63f[_0x7fb7('0x3e')][_0x7fb7('0x81')]?{'message':_0x7fb7('0x82'),'statusCode':_0x28f7e9[_0x7fb7('0x7f')]}:_0x28f7e9);});};