Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.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 _0x057f=['end','stack','name','index','map','SalesforceConfiguration','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge','count','includeAll','include','findAll','rows','show','params','length','options','create','body','find','getFields','SalesforceField','getSubjects','getDescriptions','findOne','eml-format','rimraf','fast-json-patch','moment','bluebird','path','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','jayson/promise','client','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','info','request\x20sent','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','error','code','SalesforceConfiguration,\x20%s,\x20%s','message','catch','status','json','offset','limit','set','apply','reject','save','update','then','destroy'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0x057f,0x85));var _0xf057=function(_0x48f9d4,_0x39d744){_0x48f9d4=_0x48f9d4-0x0;var _0x14e71d=_0x057f[_0x48f9d4];return _0x14e71d;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xf057('0x0'));var rimraf=require(_0xf057('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xf057('0x2'));var rp=require('request-promise');var moment=require(_0xf057('0x3'));var BPromise=require(_0xf057('0x4'));var Mustache=require('mustache');var util=require('util');var path=require(_0xf057('0x5'));var sox=require('sox');var csv=require(_0xf057('0x6'));var ejs=require(_0xf057('0x7'));var fs=require('fs');var _=require(_0xf057('0x8'));var squel=require(_0xf057('0x9'));var crypto=require(_0xf057('0xa'));var jsforce=require(_0xf057('0xb'));var deskjs=require(_0xf057('0xc'));var toCsv=require(_0xf057('0x6'));var querystring=require(_0xf057('0xd'));var Papa=require(_0xf057('0xe'));var Redis=require(_0xf057('0xf'));var authService=require('../../components/auth/service');var qs=require(_0xf057('0x10'));var as=require(_0xf057('0x11'));var hardwareService=require(_0xf057('0x12'));var logger=require(_0xf057('0x13'))(_0xf057('0x14'));var utils=require(_0xf057('0x15'));var config=require(_0xf057('0x16'));var db=require(_0xf057('0x17'))['db'];var jayson=require(_0xf057('0x18'));var client=jayson[_0xf057('0x19')]['http']({'port':0x232a});function checkPasswordPattern(_0x3b8011,_0xad15b4,_0xbf4101){if(_0xbf4101){var _0x409bb8=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x409bb8[_0xf057('0x1a')](_0xad15b4)){return _0x3b8011;}else{throw new db['Sequelize'][(_0xf057('0x1b'))](_0xf057('0x1c'));}}else{return _0x3b8011;}}function respondWithRpcPromise(_0x5af6c4,_0x3847ed,_0xa183de,_0x20fcfa){return new BPromise(function(_0x359e2b,_0x5d3b38){var _0xedcd43=_0x20fcfa||client;return _0xedcd43[_0xf057('0x1d')](_0x5af6c4,_0xa183de)['then'](function(_0x3cf590){logger[_0xf057('0x1e')]('SalesforceConfiguration,\x20%s,\x20%s',_0x3847ed,_0xf057('0x1f'));logger['debug'](_0xf057('0x20'),_0x3847ed,_0xf057('0x1f'),JSON['stringify'](_0x3cf590));if(_0x3cf590[_0xf057('0x21')]){if(_0x3cf590[_0xf057('0x21')][_0xf057('0x22')]===0x1f4){logger[_0xf057('0x21')](_0xf057('0x23'),_0x3847ed,_0x3cf590['error']['message']);return _0x5d3b38(_0x3cf590['error'][_0xf057('0x24')]);}logger[_0xf057('0x21')](_0xf057('0x23'),_0x3847ed,_0x3cf590[_0xf057('0x21')][_0xf057('0x24')]);return _0x359e2b(_0x3cf590[_0xf057('0x21')][_0xf057('0x24')]);}else{logger[_0xf057('0x1e')]('SalesforceConfiguration,\x20%s,\x20%s',_0x3847ed,_0xf057('0x1f'));_0x359e2b(_0x3cf590['result'][_0xf057('0x24')]);}})[_0xf057('0x25')](function(_0x210fd2){logger[_0xf057('0x21')]('SalesforceConfiguration,\x20%s,\x20%s',_0x3847ed,_0x210fd2);_0x5d3b38(_0x210fd2);});});}function respondWithStatusCode(_0x173ca8,_0x2eff89){_0x2eff89=_0x2eff89||0xcc;return function(_0x5786c2){if(_0x5786c2){return _0x173ca8['sendStatus'](_0x2eff89);}return _0x173ca8['status'](_0x2eff89)['end']();};}function respondWithResult(_0x438e7e,_0x5666eb){_0x5666eb=_0x5666eb||0xc8;return function(_0x457d22){if(_0x457d22){return _0x438e7e[_0xf057('0x26')](_0x5666eb)[_0xf057('0x27')](_0x457d22);}};}function respondWithFilteredResult(_0x3f700e,_0x40ab42){return function(_0x40062d){if(_0x40062d){var _0x3b5bc6=_0x40062d['count'],_0x37a49c=_0x40ab42[_0xf057('0x28')],_0x35ac14=_0x40ab42['offset']+_0x40ab42[_0xf057('0x29')],_0x42b977;if(_0x35ac14>=_0x3b5bc6){_0x35ac14=_0x3b5bc6;_0x42b977=0xc8;}else{_0x42b977=0xce;}_0x3f700e[_0xf057('0x26')](_0x42b977);return _0x3f700e[_0xf057('0x2a')]('Content-Range',_0x37a49c+'-'+_0x35ac14+'/'+_0x3b5bc6)['json'](_0x40062d);}return null;};}function patchUpdates(_0x383aa3){return function(_0x54d309){try{jsonpatch[_0xf057('0x2b')](_0x54d309,_0x383aa3,!![]);}catch(_0x116480){return BPromise[_0xf057('0x2c')](_0x116480);}return _0x54d309[_0xf057('0x2d')]();};}function saveUpdates(_0x1883b2,_0x53bcf6){return function(_0xc9af1c){if(_0xc9af1c){return _0xc9af1c[_0xf057('0x2e')](_0x1883b2)[_0xf057('0x2f')](function(_0x464f3e){return _0x464f3e;});}return null;};}function removeEntity(_0x46eaa6,_0x3d78d5){return function(_0x56d6e0){if(_0x56d6e0){return _0x56d6e0[_0xf057('0x30')]()['then'](function(){_0x46eaa6[_0xf057('0x26')](0xcc)[_0xf057('0x31')]();});}};}function handleEntityNotFound(_0x1d38c7,_0x50079d){return function(_0x2ee824){if(!_0x2ee824){_0x1d38c7['sendStatus'](0x194);}return _0x2ee824;};}function handleError(_0x66cd42,_0x379d56){_0x379d56=_0x379d56||0x1f4;return function(_0x521e7b){logger[_0xf057('0x21')](_0x521e7b[_0xf057('0x32')]);if(_0x521e7b[_0xf057('0x33')]){delete _0x521e7b[_0xf057('0x33')];}_0x66cd42[_0xf057('0x26')](_0x379d56)['send'](_0x521e7b);};}exports[_0xf057('0x34')]=function(_0x530e52,_0x41554c){var _0x14c884={},_0x58255f={},_0x235dac={'count':0x0,'rows':[]};var _0x2bc625=_[_0xf057('0x35')](db[_0xf057('0x36')][_0xf057('0x37')],function(_0x1b0b48){return{'name':_0x1b0b48[_0xf057('0x38')],'type':_0x1b0b48[_0xf057('0x39')][_0xf057('0x3a')]};});_0x58255f[_0xf057('0x3b')]=_[_0xf057('0x35')](_0x2bc625,_0xf057('0x33'));_0x58255f[_0xf057('0x3c')]=_[_0xf057('0x3d')](_0x530e52[_0xf057('0x3c')]);_0x58255f[_0xf057('0x3e')]=_[_0xf057('0x3f')](_0x58255f[_0xf057('0x3b')],_0x58255f['query']);_0x14c884[_0xf057('0x40')]=_['intersection'](_0x58255f[_0xf057('0x3b')],qs[_0xf057('0x41')](_0x530e52[_0xf057('0x3c')][_0xf057('0x41')]));_0x14c884['attributes']=_0x14c884[_0xf057('0x40')]['length']?_0x14c884[_0xf057('0x40')]:_0x58255f[_0xf057('0x3b')];if(!_0x530e52[_0xf057('0x3c')][_0xf057('0x42')](_0xf057('0x43'))){_0x14c884[_0xf057('0x29')]=qs[_0xf057('0x29')](_0x530e52['query'][_0xf057('0x29')]);_0x14c884[_0xf057('0x28')]=qs[_0xf057('0x28')](_0x530e52[_0xf057('0x3c')][_0xf057('0x28')]);}_0x14c884[_0xf057('0x44')]=qs[_0xf057('0x45')](_0x530e52[_0xf057('0x3c')][_0xf057('0x45')]);_0x14c884['where']=qs[_0xf057('0x3e')](_[_0xf057('0x46')](_0x530e52[_0xf057('0x3c')],_0x58255f['filters']),_0x2bc625);if(_0x530e52['query'][_0xf057('0x47')]){_0x14c884[_0xf057('0x48')]=_[_0xf057('0x49')](_0x14c884[_0xf057('0x48')],{'$or':_[_0xf057('0x35')](_0x2bc625,function(_0x443c52){if(_0x443c52[_0xf057('0x39')]!=='VIRTUAL'){var _0x42769a={};_0x42769a[_0x443c52[_0xf057('0x33')]]={'$like':'%'+_0x530e52[_0xf057('0x3c')][_0xf057('0x47')]+'%'};return _0x42769a;}})});}_0x14c884=_[_0xf057('0x49')]({},_0x14c884,_0x530e52['options']);var _0x49c66f={'where':_0x14c884[_0xf057('0x48')]};return db[_0xf057('0x36')][_0xf057('0x4a')](_0x49c66f)[_0xf057('0x2f')](function(_0x4ed7c4){_0x235dac[_0xf057('0x4a')]=_0x4ed7c4;if(_0x530e52[_0xf057('0x3c')][_0xf057('0x4b')]){_0x14c884[_0xf057('0x4c')]=[{'all':!![]}];}return db['SalesforceConfiguration'][_0xf057('0x4d')](_0x14c884);})[_0xf057('0x2f')](function(_0x4c2a99){_0x235dac[_0xf057('0x4e')]=_0x4c2a99;return _0x235dac;})[_0xf057('0x2f')](respondWithFilteredResult(_0x41554c,_0x14c884))[_0xf057('0x25')](handleError(_0x41554c,null));};exports[_0xf057('0x4f')]=function(_0x12e25c,_0x1c8ee9){var _0xa58e8e={'raw':![],'where':{'id':_0x12e25c[_0xf057('0x50')]['id']}},_0x3d7a8c={};_0x3d7a8c[_0xf057('0x3b')]=_[_0xf057('0x3d')](db[_0xf057('0x36')][_0xf057('0x37')]);_0x3d7a8c[_0xf057('0x3c')]=_['keys'](_0x12e25c['query']);_0x3d7a8c[_0xf057('0x3e')]=_[_0xf057('0x3f')](_0x3d7a8c[_0xf057('0x3b')],_0x3d7a8c[_0xf057('0x3c')]);_0xa58e8e[_0xf057('0x40')]=_[_0xf057('0x3f')](_0x3d7a8c[_0xf057('0x3b')],qs[_0xf057('0x41')](_0x12e25c[_0xf057('0x3c')][_0xf057('0x41')]));_0xa58e8e[_0xf057('0x40')]=_0xa58e8e[_0xf057('0x40')][_0xf057('0x51')]?_0xa58e8e[_0xf057('0x40')]:_0x3d7a8c['model'];if(_0x12e25c[_0xf057('0x3c')]['includeAll']){_0xa58e8e[_0xf057('0x4c')]=[{'all':!![]}];}_0xa58e8e=_[_0xf057('0x49')]({},_0xa58e8e,_0x12e25c[_0xf057('0x52')]);return db['SalesforceConfiguration']['find'](_0xa58e8e)[_0xf057('0x2f')](handleEntityNotFound(_0x1c8ee9,null))[_0xf057('0x2f')](respondWithResult(_0x1c8ee9,null))[_0xf057('0x25')](handleError(_0x1c8ee9,null));};exports[_0xf057('0x53')]=function(_0x2c9941,_0x3ee842){return db['SalesforceConfiguration'][_0xf057('0x53')](_0x2c9941[_0xf057('0x54')],{})['then'](respondWithResult(_0x3ee842,0xc9))[_0xf057('0x25')](handleError(_0x3ee842,null));};exports[_0xf057('0x2e')]=function(_0x3acfc8,_0x405feb){if(_0x3acfc8[_0xf057('0x54')]['id']){delete _0x3acfc8['body']['id'];}return db[_0xf057('0x36')][_0xf057('0x55')]({'where':{'id':_0x3acfc8[_0xf057('0x50')]['id']}})[_0xf057('0x2f')](handleEntityNotFound(_0x405feb,null))[_0xf057('0x2f')](saveUpdates(_0x3acfc8[_0xf057('0x54')],null))[_0xf057('0x2f')](respondWithResult(_0x405feb,null))['catch'](handleError(_0x405feb,null));};exports[_0xf057('0x30')]=function(_0x40ef13,_0x5bd8dd){return db['SalesforceConfiguration']['find']({'where':{'id':_0x40ef13['params']['id']}})['then'](handleEntityNotFound(_0x5bd8dd,null))[_0xf057('0x2f')](removeEntity(_0x5bd8dd,null))[_0xf057('0x25')](handleError(_0x5bd8dd,null));};exports[_0xf057('0x56')]=function(_0x293dce,_0x49444a,_0x3f24d0){var _0x16c3aa={};var _0x81f880={};var _0x1cb179;var _0x21c818;return db[_0xf057('0x36')]['findOne']({'where':{'id':_0x293dce[_0xf057('0x50')]['id']}})[_0xf057('0x2f')](handleEntityNotFound(_0x49444a,null))[_0xf057('0x2f')](function(_0x2dfa60){if(_0x2dfa60){_0x1cb179=_0x2dfa60;_0x81f880[_0xf057('0x3b')]=_[_0xf057('0x3d')](db[_0xf057('0x57')][_0xf057('0x37')]);_0x81f880[_0xf057('0x3c')]=_[_0xf057('0x3d')](_0x293dce[_0xf057('0x3c')]);_0x81f880[_0xf057('0x3e')]=_[_0xf057('0x3f')](_0x81f880[_0xf057('0x3b')],_0x81f880[_0xf057('0x3c')]);_0x16c3aa[_0xf057('0x40')]=_[_0xf057('0x3f')](_0x81f880[_0xf057('0x3b')],qs[_0xf057('0x41')](_0x293dce[_0xf057('0x3c')]['fields']));_0x16c3aa[_0xf057('0x40')]=_0x16c3aa[_0xf057('0x40')][_0xf057('0x51')]?_0x16c3aa['attributes']:_0x81f880[_0xf057('0x3b')];_0x16c3aa[_0xf057('0x44')]=qs[_0xf057('0x45')](_0x293dce['query'][_0xf057('0x45')]);_0x16c3aa[_0xf057('0x48')]=qs[_0xf057('0x3e')](_['pick'](_0x293dce[_0xf057('0x3c')],_0x81f880[_0xf057('0x3e')]));if(_0x293dce[_0xf057('0x3c')][_0xf057('0x47')]){_0x16c3aa['where']=_[_0xf057('0x49')](_0x16c3aa[_0xf057('0x48')],{'$or':_[_0xf057('0x35')](_0x16c3aa[_0xf057('0x40')],function(_0x72744b){var _0x485692={};_0x485692[_0x72744b]={'$like':'%'+_0x293dce[_0xf057('0x3c')]['filter']+'%'};return _0x485692;})});}_0x16c3aa=_[_0xf057('0x49')]({},_0x16c3aa,_0x293dce[_0xf057('0x52')]);return _0x1cb179[_0xf057('0x56')](_0x16c3aa);}})['then'](function(_0x29872b){if(_0x29872b){_0x21c818=_0x29872b['length'];if(!_0x293dce[_0xf057('0x3c')][_0xf057('0x42')]('nolimit')){_0x16c3aa[_0xf057('0x29')]=qs[_0xf057('0x29')](_0x293dce['query'][_0xf057('0x29')]);_0x16c3aa['offset']=qs[_0xf057('0x28')](_0x293dce['query']['offset']);}return _0x1cb179['getFields'](_0x16c3aa);}})[_0xf057('0x2f')](function(_0x1b7b71){if(_0x1b7b71){return _0x1b7b71?{'count':_0x21c818,'rows':_0x1b7b71}:null;}})[_0xf057('0x2f')](respondWithResult(_0x49444a,null))[_0xf057('0x25')](handleError(_0x49444a,null));};exports[_0xf057('0x58')]=function(_0x3ded5d,_0x5a17fd,_0x138f57){var _0x308178={};var _0x4c87aa={};var _0x580cce;var _0x522140;return db['SalesforceConfiguration']['findOne']({'where':{'id':_0x3ded5d[_0xf057('0x50')]['id']}})[_0xf057('0x2f')](handleEntityNotFound(_0x5a17fd,null))[_0xf057('0x2f')](function(_0x8cc522){if(_0x8cc522){_0x580cce=_0x8cc522;_0x4c87aa['model']=_[_0xf057('0x3d')](db[_0xf057('0x57')]['rawAttributes']);_0x4c87aa[_0xf057('0x3c')]=_[_0xf057('0x3d')](_0x3ded5d['query']);_0x4c87aa['filters']=_[_0xf057('0x3f')](_0x4c87aa[_0xf057('0x3b')],_0x4c87aa[_0xf057('0x3c')]);_0x308178[_0xf057('0x40')]=_[_0xf057('0x3f')](_0x4c87aa[_0xf057('0x3b')],qs['fields'](_0x3ded5d[_0xf057('0x3c')]['fields']));_0x308178[_0xf057('0x40')]=_0x308178[_0xf057('0x40')][_0xf057('0x51')]?_0x308178[_0xf057('0x40')]:_0x4c87aa['model'];_0x308178[_0xf057('0x44')]=qs[_0xf057('0x45')](_0x3ded5d[_0xf057('0x3c')][_0xf057('0x45')]);_0x308178[_0xf057('0x48')]=qs[_0xf057('0x3e')](_[_0xf057('0x46')](_0x3ded5d[_0xf057('0x3c')],_0x4c87aa[_0xf057('0x3e')]));if(_0x3ded5d[_0xf057('0x3c')][_0xf057('0x47')]){_0x308178[_0xf057('0x48')]=_['merge'](_0x308178['where'],{'$or':_[_0xf057('0x35')](_0x308178[_0xf057('0x40')],function(_0x29c912){var _0x3c3e53={};_0x3c3e53[_0x29c912]={'$like':'%'+_0x3ded5d[_0xf057('0x3c')][_0xf057('0x47')]+'%'};return _0x3c3e53;})});}_0x308178=_[_0xf057('0x49')]({},_0x308178,_0x3ded5d[_0xf057('0x52')]);return _0x580cce[_0xf057('0x58')](_0x308178);}})[_0xf057('0x2f')](function(_0x490fe8){if(_0x490fe8){_0x522140=_0x490fe8['length'];if(!_0x3ded5d[_0xf057('0x3c')][_0xf057('0x42')](_0xf057('0x43'))){_0x308178[_0xf057('0x29')]=qs['limit'](_0x3ded5d[_0xf057('0x3c')]['limit']);_0x308178['offset']=qs[_0xf057('0x28')](_0x3ded5d[_0xf057('0x3c')][_0xf057('0x28')]);}return _0x580cce['getSubjects'](_0x308178);}})[_0xf057('0x2f')](function(_0x1d48dc){if(_0x1d48dc){return _0x1d48dc?{'count':_0x522140,'rows':_0x1d48dc}:null;}})[_0xf057('0x2f')](respondWithResult(_0x5a17fd,null))[_0xf057('0x25')](handleError(_0x5a17fd,null));};exports[_0xf057('0x59')]=function(_0x57f694,_0x7826de,_0x217fc9){var _0x3702fe={};var _0x2236e3={};var _0xdf7693;var _0x5cf74f;return db['SalesforceConfiguration'][_0xf057('0x5a')]({'where':{'id':_0x57f694['params']['id']}})[_0xf057('0x2f')](handleEntityNotFound(_0x7826de,null))['then'](function(_0x5a81ae){if(_0x5a81ae){_0xdf7693=_0x5a81ae;_0x2236e3[_0xf057('0x3b')]=_[_0xf057('0x3d')](db[_0xf057('0x57')][_0xf057('0x37')]);_0x2236e3[_0xf057('0x3c')]=_[_0xf057('0x3d')](_0x57f694[_0xf057('0x3c')]);_0x2236e3[_0xf057('0x3e')]=_['intersection'](_0x2236e3[_0xf057('0x3b')],_0x2236e3[_0xf057('0x3c')]);_0x3702fe[_0xf057('0x40')]=_[_0xf057('0x3f')](_0x2236e3['model'],qs[_0xf057('0x41')](_0x57f694[_0xf057('0x3c')][_0xf057('0x41')]));_0x3702fe['attributes']=_0x3702fe[_0xf057('0x40')][_0xf057('0x51')]?_0x3702fe[_0xf057('0x40')]:_0x2236e3[_0xf057('0x3b')];_0x3702fe[_0xf057('0x44')]=qs['sort'](_0x57f694['query'][_0xf057('0x45')]);_0x3702fe['where']=qs[_0xf057('0x3e')](_[_0xf057('0x46')](_0x57f694[_0xf057('0x3c')],_0x2236e3['filters']));if(_0x57f694[_0xf057('0x3c')][_0xf057('0x47')]){_0x3702fe['where']=_['merge'](_0x3702fe[_0xf057('0x48')],{'$or':_[_0xf057('0x35')](_0x3702fe[_0xf057('0x40')],function(_0x5bdb94){var _0x2a09f0={};_0x2a09f0[_0x5bdb94]={'$like':'%'+_0x57f694[_0xf057('0x3c')][_0xf057('0x47')]+'%'};return _0x2a09f0;})});}_0x3702fe=_[_0xf057('0x49')]({},_0x3702fe,_0x57f694[_0xf057('0x52')]);return _0xdf7693[_0xf057('0x59')](_0x3702fe);}})[_0xf057('0x2f')](function(_0x5cd14d){if(_0x5cd14d){_0x5cf74f=_0x5cd14d['length'];if(!_0x57f694[_0xf057('0x3c')][_0xf057('0x42')](_0xf057('0x43'))){_0x3702fe['limit']=qs['limit'](_0x57f694['query']['limit']);_0x3702fe['offset']=qs[_0xf057('0x28')](_0x57f694[_0xf057('0x3c')][_0xf057('0x28')]);}return _0xdf7693[_0xf057('0x59')](_0x3702fe);}})[_0xf057('0x2f')](function(_0xb53821){if(_0xb53821){return _0xb53821?{'count':_0x5cf74f,'rows':_0xb53821}:null;}})[_0xf057('0x2f')](respondWithResult(_0x7826de,null))[_0xf057('0x25')](handleError(_0x7826de,null));};