Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / integrationReport / integrationReport.controller.js
index c98e414..74941de 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x61fb=['end','json','offset','undefined','count','limit','set','apply','reject','save','then','error','stack','name','send','index','IntegrationReport','rawAttributes','fieldName','type','key','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filter','map','VIRTUAL','merge','includeAll','show','params','include','options','catch','create','find','body','destroy','describe','rimraf','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','sendStatus','status'];(function(_0x53e999,_0xc7195b){var _0x3fa453=function(_0x5a6b86){while(--_0x5a6b86){_0x53e999['push'](_0x53e999['shift']());}};_0x3fa453(++_0xc7195b);}(_0x61fb,0x1b2));var _0xb61f=function(_0x2b95ae,_0xa0a178){_0x2b95ae=_0x2b95ae-0x0;var _0x36ffbd=_0x61fb[_0x2b95ae];return _0x36ffbd;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xb61f('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xb61f('0x1'));var rp=require(_0xb61f('0x2'));var moment=require(_0xb61f('0x3'));var BPromise=require('bluebird');var Mustache=require(_0xb61f('0x4'));var util=require(_0xb61f('0x5'));var path=require(_0xb61f('0x6'));var sox=require(_0xb61f('0x7'));var csv=require(_0xb61f('0x8'));var ejs=require(_0xb61f('0x9'));var fs=require('fs');var fs_extra=require(_0xb61f('0xa'));var _=require(_0xb61f('0xb'));var squel=require(_0xb61f('0xc'));var crypto=require(_0xb61f('0xd'));var jsforce=require(_0xb61f('0xe'));var deskjs=require(_0xb61f('0xf'));var toCsv=require(_0xb61f('0x8'));var querystring=require('querystring');var Papa=require(_0xb61f('0x10'));var Redis=require(_0xb61f('0x11'));var authService=require(_0xb61f('0x12'));var qs=require(_0xb61f('0x13'));var as=require(_0xb61f('0x14'));var hardwareService=require(_0xb61f('0x15'));var logger=require(_0xb61f('0x16'))(_0xb61f('0x17'));var utils=require('../../config/utils');var config=require(_0xb61f('0x18'));var licenseUtil=require(_0xb61f('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x3e597c,_0x3fc7a4){_0x3fc7a4=_0x3fc7a4||0xcc;return function(_0x3241de){if(_0x3241de){return _0x3e597c[_0xb61f('0x1a')](_0x3fc7a4);}return _0x3e597c[_0xb61f('0x1b')](_0x3fc7a4)[_0xb61f('0x1c')]();};}function respondWithResult(_0x12ef5e,_0x470c5e){_0x470c5e=_0x470c5e||0xc8;return function(_0xab0c3b){if(_0xab0c3b){return _0x12ef5e['status'](_0x470c5e)[_0xb61f('0x1d')](_0xab0c3b);}};}function respondWithFilteredResult(_0x5e93da,_0x4f340c){return function(_0x1cffcd){if(_0x1cffcd){var _0x364b55=typeof _0x4f340c[_0xb61f('0x1e')]===_0xb61f('0x1f')&&typeof _0x4f340c['limit']==='undefined';var _0x394360=_0x1cffcd[_0xb61f('0x20')];var _0x466385=_0x364b55?0x0:_0x4f340c['offset'];var _0x272024=_0x364b55?_0x1cffcd[_0xb61f('0x20')]:_0x4f340c[_0xb61f('0x1e')]+_0x4f340c[_0xb61f('0x21')];var _0x2ba024;if(_0x272024>=_0x394360){_0x272024=_0x394360;_0x2ba024=0xc8;}else{_0x2ba024=0xce;}_0x5e93da[_0xb61f('0x1b')](_0x2ba024);return _0x5e93da[_0xb61f('0x22')]('Content-Range',_0x466385+'-'+_0x272024+'/'+_0x394360)[_0xb61f('0x1d')](_0x1cffcd);}return null;};}function patchUpdates(_0x2798c6){return function(_0x3609cf){try{jsonpatch[_0xb61f('0x23')](_0x3609cf,_0x2798c6,!![]);}catch(_0x37f7bf){return BPromise[_0xb61f('0x24')](_0x37f7bf);}return _0x3609cf[_0xb61f('0x25')]();};}function saveUpdates(_0x303147,_0x465646){return function(_0x2c81eb){if(_0x2c81eb){return _0x2c81eb['update'](_0x303147)[_0xb61f('0x26')](function(_0x4b0546){return _0x4b0546;});}return null;};}function removeEntity(_0x4bd283,_0x39bbea){return function(_0x5a1679){if(_0x5a1679){return _0x5a1679['destroy']()[_0xb61f('0x26')](function(){_0x4bd283[_0xb61f('0x1b')](0xcc)[_0xb61f('0x1c')]();});}};}function handleEntityNotFound(_0x3a1be8,_0xc58937){return function(_0x482789){if(!_0x482789){_0x3a1be8[_0xb61f('0x1a')](0x194);}return _0x482789;};}function handleError(_0x28cee6,_0x2b2449){_0x2b2449=_0x2b2449||0x1f4;return function(_0x4e8da8){logger[_0xb61f('0x27')](_0x4e8da8[_0xb61f('0x28')]);if(_0x4e8da8[_0xb61f('0x29')]){delete _0x4e8da8[_0xb61f('0x29')];}_0x28cee6[_0xb61f('0x1b')](_0x2b2449)[_0xb61f('0x2a')](_0x4e8da8);};}exports[_0xb61f('0x2b')]=function(_0x9aa4e1,_0x306345){var _0x22f8c8={},_0x1ad1b9={},_0x553c17={'count':0x0,'rows':[]};var _0x42f697=_['map'](db[_0xb61f('0x2c')][_0xb61f('0x2d')],function(_0x2098e0){return{'name':_0x2098e0[_0xb61f('0x2e')],'type':_0x2098e0[_0xb61f('0x2f')][_0xb61f('0x30')]};});_0x1ad1b9[_0xb61f('0x31')]=_['map'](_0x42f697,_0xb61f('0x29'));_0x1ad1b9['query']=_[_0xb61f('0x32')](_0x9aa4e1[_0xb61f('0x33')]);_0x1ad1b9[_0xb61f('0x34')]=_[_0xb61f('0x35')](_0x1ad1b9[_0xb61f('0x31')],_0x1ad1b9[_0xb61f('0x33')]);_0x22f8c8[_0xb61f('0x36')]=_[_0xb61f('0x35')](_0x1ad1b9[_0xb61f('0x31')],qs[_0xb61f('0x37')](_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x37')]));_0x22f8c8['attributes']=_0x22f8c8[_0xb61f('0x36')][_0xb61f('0x38')]?_0x22f8c8[_0xb61f('0x36')]:_0x1ad1b9['model'];if(!_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x39')](_0xb61f('0x3a'))){_0x22f8c8[_0xb61f('0x21')]=qs[_0xb61f('0x21')](_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x21')]);_0x22f8c8[_0xb61f('0x1e')]=qs[_0xb61f('0x1e')](_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x1e')]);}_0x22f8c8[_0xb61f('0x3b')]=qs[_0xb61f('0x3c')](_0x9aa4e1[_0xb61f('0x33')]['sort']);_0x22f8c8[_0xb61f('0x3d')]=qs[_0xb61f('0x34')](_['pick'](_0x9aa4e1['query'],_0x1ad1b9['filters']),_0x42f697);if(_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x3e')]){_0x22f8c8[_0xb61f('0x3d')]=_['merge'](_0x22f8c8[_0xb61f('0x3d')],{'$or':_[_0xb61f('0x3f')](_0x42f697,function(_0x3cc096){if(_0x3cc096[_0xb61f('0x2f')]!==_0xb61f('0x40')){var _0x108da2={};_0x108da2[_0x3cc096['name']]={'$like':'%'+_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x3e')]+'%'};return _0x108da2;}})});}_0x22f8c8=_[_0xb61f('0x41')]({},_0x22f8c8,_0x9aa4e1['options']);var _0x3fb4c4={'where':_0x22f8c8[_0xb61f('0x3d')]};return db['IntegrationReport'][_0xb61f('0x20')](_0x3fb4c4)[_0xb61f('0x26')](function(_0xf76553){_0x553c17[_0xb61f('0x20')]=_0xf76553;if(_0x9aa4e1[_0xb61f('0x33')][_0xb61f('0x42')]){_0x22f8c8['include']=[{'all':!![]}];}return db[_0xb61f('0x2c')]['findAll'](_0x22f8c8);})[_0xb61f('0x26')](function(_0x3a194f){_0x553c17['rows']=_0x3a194f;return _0x553c17;})[_0xb61f('0x26')](respondWithFilteredResult(_0x306345,_0x22f8c8))['catch'](handleError(_0x306345,null));};exports[_0xb61f('0x43')]=function(_0x47a96b,_0x37e814){var _0x5c1796={'raw':![],'where':{'id':_0x47a96b[_0xb61f('0x44')]['id']}},_0x437dbe={};_0x437dbe[_0xb61f('0x31')]=_[_0xb61f('0x32')](db[_0xb61f('0x2c')]['rawAttributes']);_0x437dbe[_0xb61f('0x33')]=_[_0xb61f('0x32')](_0x47a96b['query']);_0x437dbe[_0xb61f('0x34')]=_[_0xb61f('0x35')](_0x437dbe[_0xb61f('0x31')],_0x437dbe['query']);_0x5c1796[_0xb61f('0x36')]=_[_0xb61f('0x35')](_0x437dbe[_0xb61f('0x31')],qs[_0xb61f('0x37')](_0x47a96b['query'][_0xb61f('0x37')]));_0x5c1796[_0xb61f('0x36')]=_0x5c1796['attributes']['length']?_0x5c1796[_0xb61f('0x36')]:_0x437dbe['model'];if(_0x47a96b['query'][_0xb61f('0x42')]){_0x5c1796[_0xb61f('0x45')]=[{'all':!![]}];}_0x5c1796=_[_0xb61f('0x41')]({},_0x5c1796,_0x47a96b[_0xb61f('0x46')]);return db['IntegrationReport']['find'](_0x5c1796)[_0xb61f('0x26')](handleEntityNotFound(_0x37e814,null))[_0xb61f('0x26')](respondWithResult(_0x37e814,null))[_0xb61f('0x47')](handleError(_0x37e814,null));};exports[_0xb61f('0x48')]=function(_0x158e8c,_0x49acee){return db['IntegrationReport'][_0xb61f('0x48')](_0x158e8c['body'],{})[_0xb61f('0x26')](respondWithResult(_0x49acee,0xc9))[_0xb61f('0x47')](handleError(_0x49acee,null));};exports['update']=function(_0x51b93b,_0x18e649){if(_0x51b93b['body']['id']){delete _0x51b93b['body']['id'];}return db['IntegrationReport'][_0xb61f('0x49')]({'where':{'id':_0x51b93b[_0xb61f('0x44')]['id']}})[_0xb61f('0x26')](handleEntityNotFound(_0x18e649,null))[_0xb61f('0x26')](saveUpdates(_0x51b93b[_0xb61f('0x4a')],null))[_0xb61f('0x26')](respondWithResult(_0x18e649,null))[_0xb61f('0x47')](handleError(_0x18e649,null));};exports[_0xb61f('0x4b')]=function(_0x168886,_0xb1e475){return db[_0xb61f('0x2c')][_0xb61f('0x49')]({'where':{'id':_0x168886[_0xb61f('0x44')]['id']}})[_0xb61f('0x26')](handleEntityNotFound(_0xb1e475,null))['then'](removeEntity(_0xb1e475,null))[_0xb61f('0x47')](handleError(_0xb1e475,null));};exports[_0xb61f('0x4c')]=function(_0x3369fb,_0x231403){return db[_0xb61f('0x2c')][_0xb61f('0x4c')]()[_0xb61f('0x26')](respondWithResult(_0x231403,null))[_0xb61f('0x47')](handleError(_0x231403,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