Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / integrationReport / integrationReport.controller.js
index b0e6451..74941de 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7f47=['rows','catch','rawAttributes','includeAll','include','find','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','fs-extra','squel','crypto','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','count','offset','limit','status','Content-Range','json','apply','reject','save','update','then','destroy','error','name','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','pick','where','merge','VIRTUAL','filter','options','IntegrationReport'];(function(_0x321248,_0x1bf881){var _0x32db83=function(_0x2321fc){while(--_0x2321fc){_0x321248['push'](_0x321248['shift']());}};_0x32db83(++_0x1bf881);}(_0x7f47,0x12e));var _0x77f4=function(_0x1d3791,_0x51c613){_0x1d3791=_0x1d3791-0x0;var _0x40fbf5=_0x7f47[_0x1d3791];return _0x40fbf5;};'use strict';var emlformat=require(_0x77f4('0x0'));var rimraf=require(_0x77f4('0x1'));var zipdir=require(_0x77f4('0x2'));var jsonpatch=require(_0x77f4('0x3'));var rp=require(_0x77f4('0x4'));var moment=require(_0x77f4('0x5'));var BPromise=require(_0x77f4('0x6'));var Mustache=require(_0x77f4('0x7'));var util=require('util');var path=require(_0x77f4('0x8'));var sox=require(_0x77f4('0x9'));var csv=require(_0x77f4('0xa'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x77f4('0xb'));var _=require('lodash');var squel=require(_0x77f4('0xc'));var crypto=require(_0x77f4('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x77f4('0xe'));var toCsv=require('to-csv');var querystring=require(_0x77f4('0xf'));var Papa=require(_0x77f4('0x10'));var Redis=require('ioredis');var authService=require(_0x77f4('0x11'));var qs=require(_0x77f4('0x12'));var as=require(_0x77f4('0x13'));var hardwareService=require(_0x77f4('0x14'));var logger=require('../../config/logger')(_0x77f4('0x15'));var utils=require(_0x77f4('0x16'));var config=require(_0x77f4('0x17'));var licenseUtil=require(_0x77f4('0x18'));var db=require(_0x77f4('0x19'))['db'];function respondWithStatusCode(_0x2a0243,_0x47428a){_0x47428a=_0x47428a||0xcc;return function(_0x15cce6){if(_0x15cce6){return _0x2a0243[_0x77f4('0x1a')](_0x47428a);}return _0x2a0243['status'](_0x47428a)[_0x77f4('0x1b')]();};}function respondWithResult(_0xd23097,_0x15a137){_0x15a137=_0x15a137||0xc8;return function(_0x2fadaf){if(_0x2fadaf){return _0xd23097['status'](_0x15a137)['json'](_0x2fadaf);}};}function respondWithFilteredResult(_0x2d2dbb,_0x18848d){return function(_0x249237){if(_0x249237){var _0x395bb1=_0x249237[_0x77f4('0x1c')],_0x5a8a43=_0x18848d[_0x77f4('0x1d')],_0x310435=_0x18848d[_0x77f4('0x1d')]+_0x18848d[_0x77f4('0x1e')],_0x9ed030;if(_0x310435>=_0x395bb1){_0x310435=_0x395bb1;_0x9ed030=0xc8;}else{_0x9ed030=0xce;}_0x2d2dbb[_0x77f4('0x1f')](_0x9ed030);return _0x2d2dbb['set'](_0x77f4('0x20'),_0x5a8a43+'-'+_0x310435+'/'+_0x395bb1)[_0x77f4('0x21')](_0x249237);}return null;};}function patchUpdates(_0xdf6582){return function(_0x3773a5){try{jsonpatch[_0x77f4('0x22')](_0x3773a5,_0xdf6582,!![]);}catch(_0x39e15c){return BPromise[_0x77f4('0x23')](_0x39e15c);}return _0x3773a5[_0x77f4('0x24')]();};}function saveUpdates(_0x49a688,_0x46ac19){return function(_0x2c7faa){if(_0x2c7faa){return _0x2c7faa[_0x77f4('0x25')](_0x49a688)[_0x77f4('0x26')](function(_0x4067a4){return _0x4067a4;});}return null;};}function removeEntity(_0x20cd71,_0x4ad47b){return function(_0x5ea739){if(_0x5ea739){return _0x5ea739[_0x77f4('0x27')]()[_0x77f4('0x26')](function(){_0x20cd71[_0x77f4('0x1f')](0xcc)['end']();});}};}function handleEntityNotFound(_0x12c3d5,_0x4a3e98){return function(_0x508076){if(!_0x508076){_0x12c3d5[_0x77f4('0x1a')](0x194);}return _0x508076;};}function handleError(_0x20519d,_0x560213){_0x560213=_0x560213||0x1f4;return function(_0x16c4a6){logger[_0x77f4('0x28')](_0x16c4a6['stack']);if(_0x16c4a6['name']){delete _0x16c4a6[_0x77f4('0x29')];}_0x20519d[_0x77f4('0x1f')](_0x560213)['send'](_0x16c4a6);};}exports['index']=function(_0x98b961,_0x3d487c){var _0x22a69d={},_0x4bef97={},_0x3f45a1={'count':0x0,'rows':[]};var _0x1542c8=_['map'](db['IntegrationReport']['rawAttributes'],function(_0x5c6c27){return{'name':_0x5c6c27['fieldName'],'type':_0x5c6c27[_0x77f4('0x2a')][_0x77f4('0x2b')]};});_0x4bef97[_0x77f4('0x2c')]=_[_0x77f4('0x2d')](_0x1542c8,_0x77f4('0x29'));_0x4bef97[_0x77f4('0x2e')]=_[_0x77f4('0x2f')](_0x98b961[_0x77f4('0x2e')]);_0x4bef97[_0x77f4('0x30')]=_[_0x77f4('0x31')](_0x4bef97[_0x77f4('0x2c')],_0x4bef97['query']);_0x22a69d[_0x77f4('0x32')]=_['intersection'](_0x4bef97[_0x77f4('0x2c')],qs[_0x77f4('0x33')](_0x98b961[_0x77f4('0x2e')][_0x77f4('0x33')]));_0x22a69d[_0x77f4('0x32')]=_0x22a69d[_0x77f4('0x32')][_0x77f4('0x34')]?_0x22a69d[_0x77f4('0x32')]:_0x4bef97['model'];if(!_0x98b961[_0x77f4('0x2e')][_0x77f4('0x35')](_0x77f4('0x36'))){_0x22a69d[_0x77f4('0x1e')]=qs['limit'](_0x98b961[_0x77f4('0x2e')][_0x77f4('0x1e')]);_0x22a69d[_0x77f4('0x1d')]=qs['offset'](_0x98b961[_0x77f4('0x2e')][_0x77f4('0x1d')]);}_0x22a69d['order']=qs[_0x77f4('0x37')](_0x98b961[_0x77f4('0x2e')][_0x77f4('0x37')]);_0x22a69d['where']=qs['filters'](_[_0x77f4('0x38')](_0x98b961[_0x77f4('0x2e')],_0x4bef97['filters']),_0x1542c8);if(_0x98b961[_0x77f4('0x2e')]['filter']){_0x22a69d[_0x77f4('0x39')]=_[_0x77f4('0x3a')](_0x22a69d[_0x77f4('0x39')],{'$or':_[_0x77f4('0x2d')](_0x1542c8,function(_0x4390e3){if(_0x4390e3['type']!==_0x77f4('0x3b')){var _0x398369={};_0x398369[_0x4390e3[_0x77f4('0x29')]]={'$like':'%'+_0x98b961['query'][_0x77f4('0x3c')]+'%'};return _0x398369;}})});}_0x22a69d=_[_0x77f4('0x3a')]({},_0x22a69d,_0x98b961[_0x77f4('0x3d')]);var _0x4be843={'where':_0x22a69d['where']};return db['IntegrationReport'][_0x77f4('0x1c')](_0x4be843)[_0x77f4('0x26')](function(_0x1ab721){_0x3f45a1[_0x77f4('0x1c')]=_0x1ab721;if(_0x98b961['query']['includeAll']){_0x22a69d['include']=[{'all':!![]}];}return db[_0x77f4('0x3e')]['findAll'](_0x22a69d);})['then'](function(_0x4b098a){_0x3f45a1[_0x77f4('0x3f')]=_0x4b098a;return _0x3f45a1;})[_0x77f4('0x26')](respondWithFilteredResult(_0x3d487c,_0x22a69d))[_0x77f4('0x40')](handleError(_0x3d487c,null));};exports['show']=function(_0x26fed3,_0x372618){var _0x4ed9c9={'raw':![],'where':{'id':_0x26fed3['params']['id']}},_0x56d0d8={};_0x56d0d8[_0x77f4('0x2c')]=_['keys'](db[_0x77f4('0x3e')][_0x77f4('0x41')]);_0x56d0d8['query']=_[_0x77f4('0x2f')](_0x26fed3[_0x77f4('0x2e')]);_0x56d0d8[_0x77f4('0x30')]=_[_0x77f4('0x31')](_0x56d0d8[_0x77f4('0x2c')],_0x56d0d8['query']);_0x4ed9c9['attributes']=_[_0x77f4('0x31')](_0x56d0d8[_0x77f4('0x2c')],qs[_0x77f4('0x33')](_0x26fed3[_0x77f4('0x2e')][_0x77f4('0x33')]));_0x4ed9c9[_0x77f4('0x32')]=_0x4ed9c9[_0x77f4('0x32')][_0x77f4('0x34')]?_0x4ed9c9[_0x77f4('0x32')]:_0x56d0d8[_0x77f4('0x2c')];if(_0x26fed3[_0x77f4('0x2e')][_0x77f4('0x42')]){_0x4ed9c9[_0x77f4('0x43')]=[{'all':!![]}];}_0x4ed9c9=_[_0x77f4('0x3a')]({},_0x4ed9c9,_0x26fed3[_0x77f4('0x3d')]);return db[_0x77f4('0x3e')][_0x77f4('0x44')](_0x4ed9c9)['then'](handleEntityNotFound(_0x372618,null))[_0x77f4('0x26')](respondWithResult(_0x372618,null))[_0x77f4('0x40')](handleError(_0x372618,null));};exports[_0x77f4('0x45')]=function(_0x5d4d06,_0x251dfe){return db[_0x77f4('0x3e')][_0x77f4('0x45')](_0x5d4d06['body'],{})[_0x77f4('0x26')](respondWithResult(_0x251dfe,0xc9))[_0x77f4('0x40')](handleError(_0x251dfe,null));};exports['update']=function(_0x39d7bb,_0x186bb8){if(_0x39d7bb[_0x77f4('0x46')]['id']){delete _0x39d7bb['body']['id'];}return db[_0x77f4('0x3e')][_0x77f4('0x44')]({'where':{'id':_0x39d7bb[_0x77f4('0x47')]['id']}})['then'](handleEntityNotFound(_0x186bb8,null))[_0x77f4('0x26')](saveUpdates(_0x39d7bb[_0x77f4('0x46')],null))[_0x77f4('0x26')](respondWithResult(_0x186bb8,null))[_0x77f4('0x40')](handleError(_0x186bb8,null));};exports['destroy']=function(_0x456f19,_0x92f207){return db[_0x77f4('0x3e')]['find']({'where':{'id':_0x456f19['params']['id']}})[_0x77f4('0x26')](handleEntityNotFound(_0x92f207,null))[_0x77f4('0x26')](removeEntity(_0x92f207,null))[_0x77f4('0x40')](handleError(_0x92f207,null));};exports[_0x77f4('0x48')]=function(_0xbb2a3a,_0x158e1c){return db[_0x77f4('0x3e')][_0x77f4('0x48')]()[_0x77f4('0x26')](respondWithResult(_0x158e1c,null))[_0x77f4('0x40')](handleError(_0x158e1c,null));};
\ No newline at end of file
+var _0x15aa=['send','index','map','rawAttributes','fieldName','key','query','keys','intersection','model','attributes','hasOwnProperty','nolimit','order','sort','where','filters','pick','filter','merge','type','VIRTUAL','options','IntegrationReport','include','findAll','rows','catch','show','params','fields','length','includeAll','find','create','body','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','api','../../config/utils','sendStatus','status','end','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name'];(function(_0x4a5ad0,_0x8cc91e){var _0x3756d6=function(_0x27f0d3){while(--_0x27f0d3){_0x4a5ad0['push'](_0x4a5ad0['shift']());}};_0x3756d6(++_0x8cc91e);}(_0x15aa,0xbd));var _0xa15a=function(_0x522dda,_0x4e95e4){_0x522dda=_0x522dda-0x0;var _0x2964e9=_0x15aa[_0x522dda];return _0x2964e9;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xa15a('0x0'));var zipdir=require(_0xa15a('0x1'));var jsonpatch=require(_0xa15a('0x2'));var rp=require(_0xa15a('0x3'));var moment=require(_0xa15a('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xa15a('0x5'));var util=require('util');var path=require('path');var sox=require(_0xa15a('0x6'));var csv=require(_0xa15a('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xa15a('0x8'));var _=require(_0xa15a('0x9'));var squel=require(_0xa15a('0xa'));var crypto=require(_0xa15a('0xb'));var jsforce=require(_0xa15a('0xc'));var deskjs=require(_0xa15a('0xd'));var toCsv=require(_0xa15a('0x7'));var querystring=require(_0xa15a('0xe'));var Papa=require(_0xa15a('0xf'));var Redis=require(_0xa15a('0x10'));var authService=require(_0xa15a('0x11'));var qs=require(_0xa15a('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0xa15a('0x13'));var utils=require(_0xa15a('0x14'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x97a06b,_0x5332a7){_0x5332a7=_0x5332a7||0xcc;return function(_0x26d84d){if(_0x26d84d){return _0x97a06b[_0xa15a('0x15')](_0x5332a7);}return _0x97a06b[_0xa15a('0x16')](_0x5332a7)[_0xa15a('0x17')]();};}function respondWithResult(_0x5d2478,_0x2ffb9d){_0x2ffb9d=_0x2ffb9d||0xc8;return function(_0x1663ac){if(_0x1663ac){return _0x5d2478['status'](_0x2ffb9d)['json'](_0x1663ac);}};}function respondWithFilteredResult(_0x226859,_0x489c4c){return function(_0x112315){if(_0x112315){var _0xee3b18=typeof _0x489c4c[_0xa15a('0x18')]===_0xa15a('0x19')&&typeof _0x489c4c[_0xa15a('0x1a')]===_0xa15a('0x19');var _0x51efc8=_0x112315[_0xa15a('0x1b')];var _0x39ff24=_0xee3b18?0x0:_0x489c4c[_0xa15a('0x18')];var _0x3096a3=_0xee3b18?_0x112315[_0xa15a('0x1b')]:_0x489c4c[_0xa15a('0x18')]+_0x489c4c[_0xa15a('0x1a')];var _0x40c5ba;if(_0x3096a3>=_0x51efc8){_0x3096a3=_0x51efc8;_0x40c5ba=0xc8;}else{_0x40c5ba=0xce;}_0x226859[_0xa15a('0x16')](_0x40c5ba);return _0x226859[_0xa15a('0x1c')](_0xa15a('0x1d'),_0x39ff24+'-'+_0x3096a3+'/'+_0x51efc8)['json'](_0x112315);}return null;};}function patchUpdates(_0x46187a){return function(_0x2d5cc1){try{jsonpatch[_0xa15a('0x1e')](_0x2d5cc1,_0x46187a,!![]);}catch(_0x28572e){return BPromise[_0xa15a('0x1f')](_0x28572e);}return _0x2d5cc1[_0xa15a('0x20')]();};}function saveUpdates(_0x26f168,_0x204487){return function(_0x1b1ef2){if(_0x1b1ef2){return _0x1b1ef2[_0xa15a('0x21')](_0x26f168)[_0xa15a('0x22')](function(_0x2b565b){return _0x2b565b;});}return null;};}function removeEntity(_0x1e915b,_0x17107a){return function(_0x382b8b){if(_0x382b8b){return _0x382b8b[_0xa15a('0x23')]()['then'](function(){_0x1e915b[_0xa15a('0x16')](0xcc)['end']();});}};}function handleEntityNotFound(_0x18d29a,_0x54792e){return function(_0x4e4151){if(!_0x4e4151){_0x18d29a[_0xa15a('0x15')](0x194);}return _0x4e4151;};}function handleError(_0x155657,_0x28df1e){_0x28df1e=_0x28df1e||0x1f4;return function(_0x584e4e){logger[_0xa15a('0x24')](_0x584e4e[_0xa15a('0x25')]);if(_0x584e4e[_0xa15a('0x26')]){delete _0x584e4e[_0xa15a('0x26')];}_0x155657['status'](_0x28df1e)[_0xa15a('0x27')](_0x584e4e);};}exports[_0xa15a('0x28')]=function(_0x5c1250,_0x36f718){var _0x4b6464={},_0x4a18f4={},_0x2a0f78={'count':0x0,'rows':[]};var _0x2e1284=_[_0xa15a('0x29')](db['IntegrationReport'][_0xa15a('0x2a')],function(_0x345fb9){return{'name':_0x345fb9[_0xa15a('0x2b')],'type':_0x345fb9['type'][_0xa15a('0x2c')]};});_0x4a18f4['model']=_[_0xa15a('0x29')](_0x2e1284,_0xa15a('0x26'));_0x4a18f4[_0xa15a('0x2d')]=_[_0xa15a('0x2e')](_0x5c1250['query']);_0x4a18f4['filters']=_['intersection'](_0x4a18f4['model'],_0x4a18f4[_0xa15a('0x2d')]);_0x4b6464['attributes']=_[_0xa15a('0x2f')](_0x4a18f4[_0xa15a('0x30')],qs['fields'](_0x5c1250[_0xa15a('0x2d')]['fields']));_0x4b6464['attributes']=_0x4b6464['attributes']['length']?_0x4b6464[_0xa15a('0x31')]:_0x4a18f4['model'];if(!_0x5c1250['query'][_0xa15a('0x32')](_0xa15a('0x33'))){_0x4b6464[_0xa15a('0x1a')]=qs[_0xa15a('0x1a')](_0x5c1250['query']['limit']);_0x4b6464['offset']=qs[_0xa15a('0x18')](_0x5c1250[_0xa15a('0x2d')]['offset']);}_0x4b6464[_0xa15a('0x34')]=qs[_0xa15a('0x35')](_0x5c1250['query'][_0xa15a('0x35')]);_0x4b6464[_0xa15a('0x36')]=qs[_0xa15a('0x37')](_[_0xa15a('0x38')](_0x5c1250[_0xa15a('0x2d')],_0x4a18f4['filters']),_0x2e1284);if(_0x5c1250['query'][_0xa15a('0x39')]){_0x4b6464[_0xa15a('0x36')]=_[_0xa15a('0x3a')](_0x4b6464[_0xa15a('0x36')],{'$or':_['map'](_0x2e1284,function(_0x9d1e9e){if(_0x9d1e9e[_0xa15a('0x3b')]!==_0xa15a('0x3c')){var _0x2d2401={};_0x2d2401[_0x9d1e9e[_0xa15a('0x26')]]={'$like':'%'+_0x5c1250[_0xa15a('0x2d')][_0xa15a('0x39')]+'%'};return _0x2d2401;}})});}_0x4b6464=_[_0xa15a('0x3a')]({},_0x4b6464,_0x5c1250[_0xa15a('0x3d')]);var _0x5a8310={'where':_0x4b6464[_0xa15a('0x36')]};return db[_0xa15a('0x3e')]['count'](_0x5a8310)[_0xa15a('0x22')](function(_0x569bba){_0x2a0f78[_0xa15a('0x1b')]=_0x569bba;if(_0x5c1250['query']['includeAll']){_0x4b6464[_0xa15a('0x3f')]=[{'all':!![]}];}return db[_0xa15a('0x3e')][_0xa15a('0x40')](_0x4b6464);})[_0xa15a('0x22')](function(_0x31a6c7){_0x2a0f78[_0xa15a('0x41')]=_0x31a6c7;return _0x2a0f78;})[_0xa15a('0x22')](respondWithFilteredResult(_0x36f718,_0x4b6464))[_0xa15a('0x42')](handleError(_0x36f718,null));};exports[_0xa15a('0x43')]=function(_0x5398a6,_0x561972){var _0x59376f={'raw':![],'where':{'id':_0x5398a6[_0xa15a('0x44')]['id']}},_0x1dc8ad={};_0x1dc8ad[_0xa15a('0x30')]=_['keys'](db[_0xa15a('0x3e')][_0xa15a('0x2a')]);_0x1dc8ad['query']=_['keys'](_0x5398a6[_0xa15a('0x2d')]);_0x1dc8ad[_0xa15a('0x37')]=_['intersection'](_0x1dc8ad[_0xa15a('0x30')],_0x1dc8ad[_0xa15a('0x2d')]);_0x59376f[_0xa15a('0x31')]=_[_0xa15a('0x2f')](_0x1dc8ad[_0xa15a('0x30')],qs['fields'](_0x5398a6[_0xa15a('0x2d')][_0xa15a('0x45')]));_0x59376f[_0xa15a('0x31')]=_0x59376f[_0xa15a('0x31')][_0xa15a('0x46')]?_0x59376f[_0xa15a('0x31')]:_0x1dc8ad[_0xa15a('0x30')];if(_0x5398a6[_0xa15a('0x2d')][_0xa15a('0x47')]){_0x59376f[_0xa15a('0x3f')]=[{'all':!![]}];}_0x59376f=_[_0xa15a('0x3a')]({},_0x59376f,_0x5398a6[_0xa15a('0x3d')]);return db[_0xa15a('0x3e')][_0xa15a('0x48')](_0x59376f)['then'](handleEntityNotFound(_0x561972,null))[_0xa15a('0x22')](respondWithResult(_0x561972,null))[_0xa15a('0x42')](handleError(_0x561972,null));};exports[_0xa15a('0x49')]=function(_0x6c7813,_0x1136f7){return db[_0xa15a('0x3e')][_0xa15a('0x49')](_0x6c7813[_0xa15a('0x4a')],{})[_0xa15a('0x22')](respondWithResult(_0x1136f7,0xc9))[_0xa15a('0x42')](handleError(_0x1136f7,null));};exports['update']=function(_0x32cdf5,_0x2b8c3a){if(_0x32cdf5[_0xa15a('0x4a')]['id']){delete _0x32cdf5['body']['id'];}return db['IntegrationReport'][_0xa15a('0x48')]({'where':{'id':_0x32cdf5[_0xa15a('0x44')]['id']}})[_0xa15a('0x22')](handleEntityNotFound(_0x2b8c3a,null))['then'](saveUpdates(_0x32cdf5[_0xa15a('0x4a')],null))[_0xa15a('0x22')](respondWithResult(_0x2b8c3a,null))[_0xa15a('0x42')](handleError(_0x2b8c3a,null));};exports[_0xa15a('0x23')]=function(_0x14de54,_0x511842){return db['IntegrationReport']['find']({'where':{'id':_0x14de54[_0xa15a('0x44')]['id']}})[_0xa15a('0x22')](handleEntityNotFound(_0x511842,null))[_0xa15a('0x22')](removeEntity(_0x511842,null))[_0xa15a('0x42')](handleError(_0x511842,null));};exports[_0xa15a('0x4b')]=function(_0x31baf5,_0x302ec4){return db['IntegrationReport'][_0xa15a('0x4b')]()['then'](respondWithResult(_0x302ec4,null))[_0xa15a('0x42')](handleError(_0x302ec4,null));};
\ No newline at end of file