Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / intZohoConfiguration / intZohoConfiguration.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 _0x780b=['index','map','ZohoConfiguration','type','key','model','keys','query','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','pick','filters','VIRTUAL','filter','merge','where','includeAll','include','findAll','show','rawAttributes','options','find','create','body','params','getFields','getSubjects','findOne','getDescriptions','ZohoField','html-pdf','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','sox','to-csv','ejs','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','client','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~!@#$%^&-_=+[{]}.','then','ZohoConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','info','result','catch','sendStatus','status','end','json','count','offset','limit','set','Content-Range','reject','update','destroy','name'];(function(_0x5b47d9,_0x1327ce){var _0x4151f0=function(_0x24bda2){while(--_0x24bda2){_0x5b47d9['push'](_0x5b47d9['shift']());}};_0x4151f0(++_0x1327ce);}(_0x780b,0x185));var _0xb780=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x780b[_0x19e35c];return _0x3e1fe8;};'use strict';var pdf=require(_0xb780('0x0'));var emlformat=require(_0xb780('0x1'));var rimraf=require('rimraf');var zipdir=require(_0xb780('0x2'));var jsonpatch=require(_0xb780('0x3'));var rp=require(_0xb780('0x4'));var moment=require('moment');var BPromise=require(_0xb780('0x5'));var Mustache=require(_0xb780('0x6'));var util=require('util');var path=require('path');var sox=require(_0xb780('0x7'));var csv=require(_0xb780('0x8'));var ejs=require(_0xb780('0x9'));var fs=require('fs');var _=require(_0xb780('0xa'));var squel=require(_0xb780('0xb'));var crypto=require('crypto');var jsforce=require(_0xb780('0xc'));var deskjs=require(_0xb780('0xd'));var toCsv=require(_0xb780('0x8'));var querystring=require(_0xb780('0xe'));var Papa=require(_0xb780('0xf'));var Redis=require(_0xb780('0x10'));var authService=require(_0xb780('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0xb780('0x12'));var hardwareService=require(_0xb780('0x13'));var logger=require(_0xb780('0x14'))(_0xb780('0x15'));var utils=require(_0xb780('0x16'));var config=require(_0xb780('0x17'));var db=require('../../mysqldb')['db'];var jayson=require('jayson/promise');var client=jayson[_0xb780('0x18')]['http']({'port':0x232a});function checkPasswordPattern(_0x48917b,_0x1c66bc,_0x74c7cd){if(_0x74c7cd){var _0x28f201=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x28f201['test'](_0x1c66bc)){return _0x48917b;}else{throw new db['Sequelize'][(_0xb780('0x19'))](_0xb780('0x1a'));}}else{return _0x48917b;}}function respondWithRpcPromise(_0x71e134,_0x1fcbee,_0x404ab6,_0x538769){return new BPromise(function(_0x4b1d3c,_0x5899c7){var _0x4e3a76=_0x538769||client;return _0x4e3a76['request'](_0x71e134,_0x404ab6)[_0xb780('0x1b')](function(_0x28d6ce){logger['info'](_0xb780('0x1c'),_0x1fcbee,_0xb780('0x1d'));logger[_0xb780('0x1e')]('ZohoConfiguration,\x20%s,\x20%s,\x20%s',_0x1fcbee,'request\x20sent',JSON[_0xb780('0x1f')](_0x28d6ce));if(_0x28d6ce[_0xb780('0x20')]){if(_0x28d6ce[_0xb780('0x20')][_0xb780('0x21')]===0x1f4){logger[_0xb780('0x20')](_0xb780('0x1c'),_0x1fcbee,_0x28d6ce[_0xb780('0x20')]['message']);return _0x5899c7(_0x28d6ce[_0xb780('0x20')][_0xb780('0x22')]);}logger[_0xb780('0x20')](_0xb780('0x1c'),_0x1fcbee,_0x28d6ce['error'][_0xb780('0x22')]);return _0x4b1d3c(_0x28d6ce['error'][_0xb780('0x22')]);}else{logger[_0xb780('0x23')](_0xb780('0x1c'),_0x1fcbee,_0xb780('0x1d'));_0x4b1d3c(_0x28d6ce[_0xb780('0x24')][_0xb780('0x22')]);}})[_0xb780('0x25')](function(_0x25821e){logger[_0xb780('0x20')](_0xb780('0x1c'),_0x1fcbee,_0x25821e);_0x5899c7(_0x25821e);});});}function respondWithStatusCode(_0x494dbc,_0x320bf4){_0x320bf4=_0x320bf4||0xcc;return function(_0x358de4){if(_0x358de4){return _0x494dbc[_0xb780('0x26')](_0x320bf4);}return _0x494dbc[_0xb780('0x27')](_0x320bf4)[_0xb780('0x28')]();};}function respondWithResult(_0x5e1417,_0x8d1523){_0x8d1523=_0x8d1523||0xc8;return function(_0x523c28){if(_0x523c28){return _0x5e1417[_0xb780('0x27')](_0x8d1523)[_0xb780('0x29')](_0x523c28);}};}function respondWithFilteredResult(_0x3fe12a,_0x3145af){return function(_0x4e7c24){if(_0x4e7c24){var _0x487dbf=_0x4e7c24[_0xb780('0x2a')],_0x216205=_0x3145af[_0xb780('0x2b')],_0x26979d=_0x3145af[_0xb780('0x2b')]+_0x3145af[_0xb780('0x2c')],_0x36b294;if(_0x26979d>=_0x487dbf){_0x26979d=_0x487dbf;_0x36b294=0xc8;}else{_0x36b294=0xce;}_0x3fe12a[_0xb780('0x27')](_0x36b294);return _0x3fe12a[_0xb780('0x2d')](_0xb780('0x2e'),_0x216205+'-'+_0x26979d+'/'+_0x487dbf)[_0xb780('0x29')](_0x4e7c24);}return null;};}function patchUpdates(_0x59481b){return function(_0x40aebd){try{jsonpatch['apply'](_0x40aebd,_0x59481b,!![]);}catch(_0x13160a){return BPromise[_0xb780('0x2f')](_0x13160a);}return _0x40aebd['save']();};}function saveUpdates(_0x1e6280,_0x2d3567){return function(_0x18857){if(_0x18857){return _0x18857[_0xb780('0x30')](_0x1e6280)[_0xb780('0x1b')](function(_0x4e90de){return _0x4e90de;});}return null;};}function removeEntity(_0x113b31,_0x4d9109){return function(_0x4643b1){if(_0x4643b1){return _0x4643b1[_0xb780('0x31')]()['then'](function(){_0x113b31[_0xb780('0x27')](0xcc)['end']();});}};}function handleEntityNotFound(_0x4d958a,_0x4f214a){return function(_0x294316){if(!_0x294316){_0x4d958a[_0xb780('0x26')](0x194);}return _0x294316;};}function handleError(_0x464561,_0x4f0c35){_0x4f0c35=_0x4f0c35||0x1f4;return function(_0x18e04e){logger['error'](_0x18e04e['stack']);if(_0x18e04e[_0xb780('0x32')]){delete _0x18e04e[_0xb780('0x32')];}_0x464561['status'](_0x4f0c35)['send'](_0x18e04e);};}exports[_0xb780('0x33')]=function(_0xfed282,_0x18e199){var _0x2ac4a7={},_0x4e2449={},_0x244c1e={'count':0x0,'rows':[]};var _0x18bc50=_[_0xb780('0x34')](db[_0xb780('0x35')]['rawAttributes'],function(_0x3922da){return{'name':_0x3922da['fieldName'],'type':_0x3922da[_0xb780('0x36')][_0xb780('0x37')]};});_0x4e2449[_0xb780('0x38')]=_[_0xb780('0x34')](_0x18bc50,'name');_0x4e2449['query']=_[_0xb780('0x39')](_0xfed282[_0xb780('0x3a')]);_0x4e2449['filters']=_['intersection'](_0x4e2449[_0xb780('0x38')],_0x4e2449[_0xb780('0x3a')]);_0x2ac4a7[_0xb780('0x3b')]=_[_0xb780('0x3c')](_0x4e2449[_0xb780('0x38')],qs[_0xb780('0x3d')](_0xfed282[_0xb780('0x3a')][_0xb780('0x3d')]));_0x2ac4a7[_0xb780('0x3b')]=_0x2ac4a7[_0xb780('0x3b')][_0xb780('0x3e')]?_0x2ac4a7[_0xb780('0x3b')]:_0x4e2449['model'];if(!_0xfed282[_0xb780('0x3a')][_0xb780('0x3f')](_0xb780('0x40'))){_0x2ac4a7['limit']=qs[_0xb780('0x2c')](_0xfed282['query'][_0xb780('0x2c')]);_0x2ac4a7['offset']=qs[_0xb780('0x2b')](_0xfed282[_0xb780('0x3a')][_0xb780('0x2b')]);}_0x2ac4a7[_0xb780('0x41')]=qs[_0xb780('0x42')](_0xfed282[_0xb780('0x3a')][_0xb780('0x42')]);_0x2ac4a7['where']=qs['filters'](_[_0xb780('0x43')](_0xfed282['query'],_0x4e2449[_0xb780('0x44')]),_0x18bc50);if(_0xfed282[_0xb780('0x3a')]['filter']){_0x2ac4a7['where']=_['merge'](_0x2ac4a7['where'],{'$or':_[_0xb780('0x34')](_0x18bc50,function(_0x336f17){if(_0x336f17[_0xb780('0x36')]!==_0xb780('0x45')){var _0x51c188={};_0x51c188[_0x336f17[_0xb780('0x32')]]={'$like':'%'+_0xfed282['query'][_0xb780('0x46')]+'%'};return _0x51c188;}})});}_0x2ac4a7=_[_0xb780('0x47')]({},_0x2ac4a7,_0xfed282['options']);var _0x48009e={'where':_0x2ac4a7[_0xb780('0x48')]};return db[_0xb780('0x35')][_0xb780('0x2a')](_0x48009e)['then'](function(_0x3bc5db){_0x244c1e[_0xb780('0x2a')]=_0x3bc5db;if(_0xfed282[_0xb780('0x3a')][_0xb780('0x49')]){_0x2ac4a7[_0xb780('0x4a')]=[{'all':!![]}];}return db['ZohoConfiguration'][_0xb780('0x4b')](_0x2ac4a7);})[_0xb780('0x1b')](function(_0x56eae0){_0x244c1e['rows']=_0x56eae0;return _0x244c1e;})['then'](respondWithFilteredResult(_0x18e199,_0x2ac4a7))['catch'](handleError(_0x18e199,null));};exports[_0xb780('0x4c')]=function(_0x20b0ce,_0x1a703e){var _0x5816b9={'raw':![],'where':{'id':_0x20b0ce['params']['id']}},_0xdd54de={};_0xdd54de[_0xb780('0x38')]=_[_0xb780('0x39')](db[_0xb780('0x35')][_0xb780('0x4d')]);_0xdd54de[_0xb780('0x3a')]=_[_0xb780('0x39')](_0x20b0ce['query']);_0xdd54de[_0xb780('0x44')]=_[_0xb780('0x3c')](_0xdd54de[_0xb780('0x38')],_0xdd54de[_0xb780('0x3a')]);_0x5816b9[_0xb780('0x3b')]=_[_0xb780('0x3c')](_0xdd54de[_0xb780('0x38')],qs[_0xb780('0x3d')](_0x20b0ce['query'][_0xb780('0x3d')]));_0x5816b9[_0xb780('0x3b')]=_0x5816b9[_0xb780('0x3b')][_0xb780('0x3e')]?_0x5816b9['attributes']:_0xdd54de[_0xb780('0x38')];if(_0x20b0ce[_0xb780('0x3a')][_0xb780('0x49')]){_0x5816b9[_0xb780('0x4a')]=[{'all':!![]}];}_0x5816b9=_[_0xb780('0x47')]({},_0x5816b9,_0x20b0ce[_0xb780('0x4e')]);return db['ZohoConfiguration'][_0xb780('0x4f')](_0x5816b9)[_0xb780('0x1b')](handleEntityNotFound(_0x1a703e,null))[_0xb780('0x1b')](respondWithResult(_0x1a703e,null))['catch'](handleError(_0x1a703e,null));};exports[_0xb780('0x50')]=function(_0x545940,_0x39d622){return db['ZohoConfiguration'][_0xb780('0x50')](_0x545940[_0xb780('0x51')],{})['then'](respondWithResult(_0x39d622,0xc9))[_0xb780('0x25')](handleError(_0x39d622,null));};exports['update']=function(_0x19bbd1,_0x184c4e){if(_0x19bbd1[_0xb780('0x51')]['id']){delete _0x19bbd1['body']['id'];}return db['ZohoConfiguration']['find']({'where':{'id':_0x19bbd1[_0xb780('0x52')]['id']}})[_0xb780('0x1b')](handleEntityNotFound(_0x184c4e,null))['then'](saveUpdates(_0x19bbd1[_0xb780('0x51')],null))[_0xb780('0x1b')](respondWithResult(_0x184c4e,null))[_0xb780('0x25')](handleError(_0x184c4e,null));};exports[_0xb780('0x31')]=function(_0x386823,_0x4ce5e0){return db[_0xb780('0x35')][_0xb780('0x4f')]({'where':{'id':_0x386823[_0xb780('0x52')]['id']}})[_0xb780('0x1b')](handleEntityNotFound(_0x4ce5e0,null))[_0xb780('0x1b')](removeEntity(_0x4ce5e0,null))[_0xb780('0x25')](handleError(_0x4ce5e0,null));};exports['getFields']=function(_0x23060e,_0x53f701,_0x48c0e5){var _0x5b9be0={};var _0x57176e={};var _0x270fb3;var _0x2136a8;return db[_0xb780('0x35')]['findOne']({'where':{'id':_0x23060e[_0xb780('0x52')]['id']}})[_0xb780('0x1b')](handleEntityNotFound(_0x53f701,null))['then'](function(_0xa37039){if(_0xa37039){_0x270fb3=_0xa37039;_0x57176e[_0xb780('0x38')]=_['keys'](db['ZohoField']['rawAttributes']);_0x57176e[_0xb780('0x3a')]=_[_0xb780('0x39')](_0x23060e[_0xb780('0x3a')]);_0x57176e['filters']=_[_0xb780('0x3c')](_0x57176e[_0xb780('0x38')],_0x57176e[_0xb780('0x3a')]);_0x5b9be0[_0xb780('0x3b')]=_['intersection'](_0x57176e[_0xb780('0x38')],qs[_0xb780('0x3d')](_0x23060e[_0xb780('0x3a')][_0xb780('0x3d')]));_0x5b9be0[_0xb780('0x3b')]=_0x5b9be0['attributes'][_0xb780('0x3e')]?_0x5b9be0[_0xb780('0x3b')]:_0x57176e[_0xb780('0x38')];_0x5b9be0[_0xb780('0x41')]=qs[_0xb780('0x42')](_0x23060e[_0xb780('0x3a')][_0xb780('0x42')]);_0x5b9be0[_0xb780('0x48')]=qs[_0xb780('0x44')](_[_0xb780('0x43')](_0x23060e[_0xb780('0x3a')],_0x57176e[_0xb780('0x44')]));if(_0x23060e[_0xb780('0x3a')][_0xb780('0x46')]){_0x5b9be0[_0xb780('0x48')]=_[_0xb780('0x47')](_0x5b9be0[_0xb780('0x48')],{'$or':_[_0xb780('0x34')](_0x5b9be0[_0xb780('0x3b')],function(_0x43d8da){var _0x48a44={};_0x48a44[_0x43d8da]={'$like':'%'+_0x23060e['query']['filter']+'%'};return _0x48a44;})});}_0x5b9be0=_['merge']({},_0x5b9be0,_0x23060e[_0xb780('0x4e')]);return _0x270fb3[_0xb780('0x53')](_0x5b9be0);}})[_0xb780('0x1b')](function(_0xe46254){if(_0xe46254){_0x2136a8=_0xe46254['length'];if(!_0x23060e[_0xb780('0x3a')][_0xb780('0x3f')](_0xb780('0x40'))){_0x5b9be0[_0xb780('0x2c')]=qs[_0xb780('0x2c')](_0x23060e[_0xb780('0x3a')][_0xb780('0x2c')]);_0x5b9be0[_0xb780('0x2b')]=qs[_0xb780('0x2b')](_0x23060e[_0xb780('0x3a')][_0xb780('0x2b')]);}return _0x270fb3[_0xb780('0x53')](_0x5b9be0);}})[_0xb780('0x1b')](function(_0x57e873){if(_0x57e873){return _0x57e873?{'count':_0x2136a8,'rows':_0x57e873}:null;}})[_0xb780('0x1b')](respondWithResult(_0x53f701,null))['catch'](handleError(_0x53f701,null));};exports[_0xb780('0x54')]=function(_0x30d696,_0x5f0d04,_0x3ba1a1){var _0x34f7bc={};var _0x58815c={};var _0x185b12;var _0x570c6b;return db[_0xb780('0x35')][_0xb780('0x55')]({'where':{'id':_0x30d696[_0xb780('0x52')]['id']}})[_0xb780('0x1b')](handleEntityNotFound(_0x5f0d04,null))[_0xb780('0x1b')](function(_0x5dd6fd){if(_0x5dd6fd){_0x185b12=_0x5dd6fd;_0x58815c[_0xb780('0x38')]=_[_0xb780('0x39')](db['ZohoField'][_0xb780('0x4d')]);_0x58815c[_0xb780('0x3a')]=_[_0xb780('0x39')](_0x30d696[_0xb780('0x3a')]);_0x58815c[_0xb780('0x44')]=_[_0xb780('0x3c')](_0x58815c['model'],_0x58815c[_0xb780('0x3a')]);_0x34f7bc['attributes']=_[_0xb780('0x3c')](_0x58815c[_0xb780('0x38')],qs[_0xb780('0x3d')](_0x30d696[_0xb780('0x3a')][_0xb780('0x3d')]));_0x34f7bc[_0xb780('0x3b')]=_0x34f7bc[_0xb780('0x3b')][_0xb780('0x3e')]?_0x34f7bc[_0xb780('0x3b')]:_0x58815c[_0xb780('0x38')];_0x34f7bc[_0xb780('0x41')]=qs[_0xb780('0x42')](_0x30d696[_0xb780('0x3a')][_0xb780('0x42')]);_0x34f7bc[_0xb780('0x48')]=qs[_0xb780('0x44')](_[_0xb780('0x43')](_0x30d696[_0xb780('0x3a')],_0x58815c[_0xb780('0x44')]));if(_0x30d696['query'][_0xb780('0x46')]){_0x34f7bc[_0xb780('0x48')]=_[_0xb780('0x47')](_0x34f7bc[_0xb780('0x48')],{'$or':_['map'](_0x34f7bc[_0xb780('0x3b')],function(_0x426cf4){var _0x195779={};_0x195779[_0x426cf4]={'$like':'%'+_0x30d696[_0xb780('0x3a')][_0xb780('0x46')]+'%'};return _0x195779;})});}_0x34f7bc=_['merge']({},_0x34f7bc,_0x30d696['options']);return _0x185b12['getSubjects'](_0x34f7bc);}})[_0xb780('0x1b')](function(_0xb7a3ee){if(_0xb7a3ee){_0x570c6b=_0xb7a3ee[_0xb780('0x3e')];if(!_0x30d696[_0xb780('0x3a')][_0xb780('0x3f')](_0xb780('0x40'))){_0x34f7bc[_0xb780('0x2c')]=qs['limit'](_0x30d696[_0xb780('0x3a')][_0xb780('0x2c')]);_0x34f7bc[_0xb780('0x2b')]=qs[_0xb780('0x2b')](_0x30d696[_0xb780('0x3a')][_0xb780('0x2b')]);}return _0x185b12[_0xb780('0x54')](_0x34f7bc);}})[_0xb780('0x1b')](function(_0x123778){if(_0x123778){return _0x123778?{'count':_0x570c6b,'rows':_0x123778}:null;}})['then'](respondWithResult(_0x5f0d04,null))[_0xb780('0x25')](handleError(_0x5f0d04,null));};exports[_0xb780('0x56')]=function(_0x4237aa,_0x49c8c8,_0x51eb12){var _0x1b167e={};var _0x394523={};var _0x581f00;var _0x2beab3;return db[_0xb780('0x35')]['findOne']({'where':{'id':_0x4237aa[_0xb780('0x52')]['id']}})[_0xb780('0x1b')](handleEntityNotFound(_0x49c8c8,null))['then'](function(_0x5edaa8){if(_0x5edaa8){_0x581f00=_0x5edaa8;_0x394523[_0xb780('0x38')]=_[_0xb780('0x39')](db[_0xb780('0x57')][_0xb780('0x4d')]);_0x394523[_0xb780('0x3a')]=_[_0xb780('0x39')](_0x4237aa[_0xb780('0x3a')]);_0x394523[_0xb780('0x44')]=_[_0xb780('0x3c')](_0x394523[_0xb780('0x38')],_0x394523[_0xb780('0x3a')]);_0x1b167e['attributes']=_['intersection'](_0x394523[_0xb780('0x38')],qs[_0xb780('0x3d')](_0x4237aa[_0xb780('0x3a')][_0xb780('0x3d')]));_0x1b167e[_0xb780('0x3b')]=_0x1b167e[_0xb780('0x3b')][_0xb780('0x3e')]?_0x1b167e[_0xb780('0x3b')]:_0x394523[_0xb780('0x38')];_0x1b167e[_0xb780('0x41')]=qs[_0xb780('0x42')](_0x4237aa[_0xb780('0x3a')][_0xb780('0x42')]);_0x1b167e[_0xb780('0x48')]=qs['filters'](_[_0xb780('0x43')](_0x4237aa[_0xb780('0x3a')],_0x394523[_0xb780('0x44')]));if(_0x4237aa[_0xb780('0x3a')][_0xb780('0x46')]){_0x1b167e[_0xb780('0x48')]=_['merge'](_0x1b167e[_0xb780('0x48')],{'$or':_['map'](_0x1b167e[_0xb780('0x3b')],function(_0x1047fb){var _0xbeb92a={};_0xbeb92a[_0x1047fb]={'$like':'%'+_0x4237aa[_0xb780('0x3a')][_0xb780('0x46')]+'%'};return _0xbeb92a;})});}_0x1b167e=_[_0xb780('0x47')]({},_0x1b167e,_0x4237aa['options']);return _0x581f00['getDescriptions'](_0x1b167e);}})[_0xb780('0x1b')](function(_0x3a1f75){if(_0x3a1f75){_0x2beab3=_0x3a1f75[_0xb780('0x3e')];if(!_0x4237aa['query'][_0xb780('0x3f')]('nolimit')){_0x1b167e[_0xb780('0x2c')]=qs[_0xb780('0x2c')](_0x4237aa[_0xb780('0x3a')][_0xb780('0x2c')]);_0x1b167e['offset']=qs[_0xb780('0x2b')](_0x4237aa['query']['offset']);}return _0x581f00[_0xb780('0x56')](_0x1b167e);}})['then'](function(_0x5ac7b7){if(_0x5ac7b7){return _0x5ac7b7?{'count':_0x2beab3,'rows':_0x5ac7b7}:null;}})[_0xb780('0x1b')](respondWithResult(_0x49c8c8,null))[_0xb780('0x25')](handleError(_0x49c8c8,null));};