Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / integrationReport / integrationReport.controller.js
index 79e8264..7dd0067 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x13f6=['name','send','index','map','IntegrationReport','rawAttributes','fieldName','type','model','query','keys','filters','intersection','fields','attributes','nolimit','sort','where','pick','merge','VIRTUAL','filter','options','includeAll','findAll','rows','show','params','include','find','catch','create','body','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','count','offset','limit','set','Content-Range','json','apply','save','update','then','destroy','error','stack'];(function(_0xff9eeb,_0x39308f){var _0x9d2183=function(_0x13869e){while(--_0x13869e){_0xff9eeb['push'](_0xff9eeb['shift']());}};_0x9d2183(++_0x39308f);}(_0x13f6,0x162));var _0x613f=function(_0x542a4e,_0x23f7ef){_0x542a4e=_0x542a4e-0x0;var _0x11d75d=_0x13f6[_0x542a4e];return _0x11d75d;};'use strict';var pdf=require(_0x613f('0x0'));var emlformat=require(_0x613f('0x1'));var rimraf=require(_0x613f('0x2'));var zipdir=require(_0x613f('0x3'));var jsonpatch=require(_0x613f('0x4'));var rp=require('request-promise');var moment=require(_0x613f('0x5'));var BPromise=require(_0x613f('0x6'));var Mustache=require(_0x613f('0x7'));var util=require(_0x613f('0x8'));var path=require(_0x613f('0x9'));var sox=require(_0x613f('0xa'));var csv=require(_0x613f('0xb'));var ejs=require(_0x613f('0xc'));var fs=require('fs');var _=require(_0x613f('0xd'));var squel=require(_0x613f('0xe'));var crypto=require(_0x613f('0xf'));var jsforce=require(_0x613f('0x10'));var deskjs=require(_0x613f('0x11'));var toCsv=require('to-csv');var querystring=require(_0x613f('0x12'));var Papa=require(_0x613f('0x13'));var Redis=require(_0x613f('0x14'));var authService=require(_0x613f('0x15'));var qs=require(_0x613f('0x16'));var as=require(_0x613f('0x17'));var hardwareService=require(_0x613f('0x18'));var logger=require(_0x613f('0x19'))('api');var utils=require(_0x613f('0x1a'));var config=require(_0x613f('0x1b'));var licenseUtil=require(_0x613f('0x1c'));var db=require(_0x613f('0x1d'))['db'];function respondWithStatusCode(_0x4e87d7,_0x4236e5){_0x4236e5=_0x4236e5||0xcc;return function(_0x396b95){if(_0x396b95){return _0x4e87d7[_0x613f('0x1e')](_0x4236e5);}return _0x4e87d7[_0x613f('0x1f')](_0x4236e5)[_0x613f('0x20')]();};}function respondWithResult(_0x4a6cf5,_0x558f38){_0x558f38=_0x558f38||0xc8;return function(_0x52d61f){if(_0x52d61f){return _0x4a6cf5[_0x613f('0x1f')](_0x558f38)['json'](_0x52d61f);}};}function respondWithFilteredResult(_0x3989dd,_0x584a79){return function(_0x360cb9){if(_0x360cb9){var _0x301067=_0x360cb9[_0x613f('0x21')],_0x1ddae0=_0x584a79[_0x613f('0x22')],_0x2a28ba=_0x584a79[_0x613f('0x22')]+_0x584a79[_0x613f('0x23')],_0x341303;if(_0x2a28ba>=_0x301067){_0x2a28ba=_0x301067;_0x341303=0xc8;}else{_0x341303=0xce;}_0x3989dd[_0x613f('0x1f')](_0x341303);return _0x3989dd[_0x613f('0x24')](_0x613f('0x25'),_0x1ddae0+'-'+_0x2a28ba+'/'+_0x301067)[_0x613f('0x26')](_0x360cb9);}return null;};}function patchUpdates(_0x460e4c){return function(_0x55729b){try{jsonpatch[_0x613f('0x27')](_0x55729b,_0x460e4c,!![]);}catch(_0x2bde69){return BPromise['reject'](_0x2bde69);}return _0x55729b[_0x613f('0x28')]();};}function saveUpdates(_0x1e16e0,_0x167dc7){return function(_0x1eb91c){if(_0x1eb91c){return _0x1eb91c[_0x613f('0x29')](_0x1e16e0)[_0x613f('0x2a')](function(_0x24280c){return _0x24280c;});}return null;};}function removeEntity(_0xf1a7cc,_0x5ded65){return function(_0x4bb2d9){if(_0x4bb2d9){return _0x4bb2d9[_0x613f('0x2b')]()[_0x613f('0x2a')](function(){_0xf1a7cc[_0x613f('0x1f')](0xcc)[_0x613f('0x20')]();});}};}function handleEntityNotFound(_0x551f1e,_0x4dee33){return function(_0x4c519d){if(!_0x4c519d){_0x551f1e[_0x613f('0x1e')](0x194);}return _0x4c519d;};}function handleError(_0x3bd820,_0x50f634){_0x50f634=_0x50f634||0x1f4;return function(_0x345a2a){logger[_0x613f('0x2c')](_0x345a2a[_0x613f('0x2d')]);if(_0x345a2a[_0x613f('0x2e')]){delete _0x345a2a['name'];}_0x3bd820[_0x613f('0x1f')](_0x50f634)[_0x613f('0x2f')](_0x345a2a);};}exports[_0x613f('0x30')]=function(_0xeab78a,_0x25a32c){var _0x14d728={},_0x55d2b5={},_0x37708a={'count':0x0,'rows':[]};var _0x1e2881=_[_0x613f('0x31')](db[_0x613f('0x32')][_0x613f('0x33')],function(_0x51bc27){return{'name':_0x51bc27[_0x613f('0x34')],'type':_0x51bc27[_0x613f('0x35')]['key']};});_0x55d2b5[_0x613f('0x36')]=_[_0x613f('0x31')](_0x1e2881,_0x613f('0x2e'));_0x55d2b5[_0x613f('0x37')]=_[_0x613f('0x38')](_0xeab78a[_0x613f('0x37')]);_0x55d2b5[_0x613f('0x39')]=_['intersection'](_0x55d2b5['model'],_0x55d2b5[_0x613f('0x37')]);_0x14d728['attributes']=_[_0x613f('0x3a')](_0x55d2b5[_0x613f('0x36')],qs[_0x613f('0x3b')](_0xeab78a[_0x613f('0x37')][_0x613f('0x3b')]));_0x14d728[_0x613f('0x3c')]=_0x14d728[_0x613f('0x3c')]['length']?_0x14d728['attributes']:_0x55d2b5[_0x613f('0x36')];if(!_0xeab78a['query']['hasOwnProperty'](_0x613f('0x3d'))){_0x14d728[_0x613f('0x23')]=qs[_0x613f('0x23')](_0xeab78a[_0x613f('0x37')][_0x613f('0x23')]);_0x14d728['offset']=qs[_0x613f('0x22')](_0xeab78a[_0x613f('0x37')][_0x613f('0x22')]);}_0x14d728['order']=qs[_0x613f('0x3e')](_0xeab78a[_0x613f('0x37')][_0x613f('0x3e')]);_0x14d728[_0x613f('0x3f')]=qs[_0x613f('0x39')](_[_0x613f('0x40')](_0xeab78a[_0x613f('0x37')],_0x55d2b5[_0x613f('0x39')]),_0x1e2881);if(_0xeab78a['query']['filter']){_0x14d728['where']=_[_0x613f('0x41')](_0x14d728['where'],{'$or':_['map'](_0x1e2881,function(_0x4dd354){if(_0x4dd354[_0x613f('0x35')]!==_0x613f('0x42')){var _0x50990b={};_0x50990b[_0x4dd354[_0x613f('0x2e')]]={'$like':'%'+_0xeab78a[_0x613f('0x37')][_0x613f('0x43')]+'%'};return _0x50990b;}})});}_0x14d728=_[_0x613f('0x41')]({},_0x14d728,_0xeab78a[_0x613f('0x44')]);var _0x3759f6={'where':_0x14d728[_0x613f('0x3f')]};return db['IntegrationReport'][_0x613f('0x21')](_0x3759f6)[_0x613f('0x2a')](function(_0xd93d6c){_0x37708a[_0x613f('0x21')]=_0xd93d6c;if(_0xeab78a['query'][_0x613f('0x45')]){_0x14d728['include']=[{'all':!![]}];}return db[_0x613f('0x32')][_0x613f('0x46')](_0x14d728);})[_0x613f('0x2a')](function(_0x3337d0){_0x37708a[_0x613f('0x47')]=_0x3337d0;return _0x37708a;})[_0x613f('0x2a')](respondWithFilteredResult(_0x25a32c,_0x14d728))['catch'](handleError(_0x25a32c,null));};exports[_0x613f('0x48')]=function(_0x3411bc,_0x513700){var _0x294919={'raw':![],'where':{'id':_0x3411bc[_0x613f('0x49')]['id']}},_0x50816a={};_0x50816a[_0x613f('0x36')]=_[_0x613f('0x38')](db[_0x613f('0x32')][_0x613f('0x33')]);_0x50816a[_0x613f('0x37')]=_[_0x613f('0x38')](_0x3411bc[_0x613f('0x37')]);_0x50816a[_0x613f('0x39')]=_[_0x613f('0x3a')](_0x50816a[_0x613f('0x36')],_0x50816a[_0x613f('0x37')]);_0x294919[_0x613f('0x3c')]=_['intersection'](_0x50816a[_0x613f('0x36')],qs[_0x613f('0x3b')](_0x3411bc[_0x613f('0x37')][_0x613f('0x3b')]));_0x294919[_0x613f('0x3c')]=_0x294919[_0x613f('0x3c')]['length']?_0x294919['attributes']:_0x50816a['model'];if(_0x3411bc[_0x613f('0x37')][_0x613f('0x45')]){_0x294919[_0x613f('0x4a')]=[{'all':!![]}];}_0x294919=_[_0x613f('0x41')]({},_0x294919,_0x3411bc[_0x613f('0x44')]);return db[_0x613f('0x32')][_0x613f('0x4b')](_0x294919)['then'](handleEntityNotFound(_0x513700,null))[_0x613f('0x2a')](respondWithResult(_0x513700,null))[_0x613f('0x4c')](handleError(_0x513700,null));};exports[_0x613f('0x4d')]=function(_0x34f0db,_0x397133){return db[_0x613f('0x32')][_0x613f('0x4d')](_0x34f0db[_0x613f('0x4e')],{})['then'](respondWithResult(_0x397133,0xc9))[_0x613f('0x4c')](handleError(_0x397133,null));};exports['update']=function(_0x1e77bf,_0x5c5f63){if(_0x1e77bf[_0x613f('0x4e')]['id']){delete _0x1e77bf['body']['id'];}return db[_0x613f('0x32')][_0x613f('0x4b')]({'where':{'id':_0x1e77bf[_0x613f('0x49')]['id']}})[_0x613f('0x2a')](handleEntityNotFound(_0x5c5f63,null))['then'](saveUpdates(_0x1e77bf[_0x613f('0x4e')],null))[_0x613f('0x2a')](respondWithResult(_0x5c5f63,null))[_0x613f('0x4c')](handleError(_0x5c5f63,null));};exports[_0x613f('0x2b')]=function(_0x18fb41,_0x539d07){return db['IntegrationReport'][_0x613f('0x4b')]({'where':{'id':_0x18fb41[_0x613f('0x49')]['id']}})[_0x613f('0x2a')](handleEntityNotFound(_0x539d07,null))[_0x613f('0x2a')](removeEntity(_0x539d07,null))[_0x613f('0x4c')](handleError(_0x539d07,null));};exports[_0x613f('0x4f')]=function(_0x351e1c,_0x5b7652){return db['IntegrationReport'][_0x613f('0x4f')]()['then'](respondWithResult(_0x5b7652,null))[_0x613f('0x4c')](handleError(_0x5b7652,null));};
\ No newline at end of file
+var _0xe7c1=['../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','end','offset','undefined','limit','count','status','set','Content-Range','json','apply','reject','save','update','then','destroy','error','stack','name','send','index','IntegrationReport','rawAttributes','fieldName','type','key','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','options','includeAll','include','findAll','rows','catch','show','params','keys','find','create','body','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','ejs','fs-extra','squel','crypto','to-csv','querystring','papaparse','../../components/auth/service'];(function(_0x2879af,_0xde22c8){var _0x3fe016=function(_0x587ef4){while(--_0x587ef4){_0x2879af['push'](_0x2879af['shift']());}};_0x3fe016(++_0xde22c8);}(_0xe7c1,0x1cf));var _0x1e7c=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xe7c1[_0x17d9e3];return _0x14192d;};'use strict';var emlformat=require(_0x1e7c('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x1e7c('0x1'));var jsonpatch=require(_0x1e7c('0x2'));var rp=require(_0x1e7c('0x3'));var moment=require(_0x1e7c('0x4'));var BPromise=require(_0x1e7c('0x5'));var Mustache=require(_0x1e7c('0x6'));var util=require(_0x1e7c('0x7'));var path=require(_0x1e7c('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x1e7c('0x9'));var fs=require('fs');var fs_extra=require(_0x1e7c('0xa'));var _=require('lodash');var squel=require(_0x1e7c('0xb'));var crypto=require(_0x1e7c('0xc'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x1e7c('0xd'));var querystring=require(_0x1e7c('0xe'));var Papa=require(_0x1e7c('0xf'));var Redis=require('ioredis');var authService=require(_0x1e7c('0x10'));var qs=require(_0x1e7c('0x11'));var as=require(_0x1e7c('0x12'));var hardwareService=require(_0x1e7c('0x13'));var logger=require(_0x1e7c('0x14'))(_0x1e7c('0x15'));var utils=require(_0x1e7c('0x16'));var config=require('../../config/environment');var licenseUtil=require(_0x1e7c('0x17'));var db=require(_0x1e7c('0x18'))['db'];function respondWithStatusCode(_0x2c2b9a,_0xfcca82){_0xfcca82=_0xfcca82||0xcc;return function(_0x1b7b8c){if(_0x1b7b8c){return _0x2c2b9a[_0x1e7c('0x19')](_0xfcca82);}return _0x2c2b9a['status'](_0xfcca82)[_0x1e7c('0x1a')]();};}function respondWithResult(_0x21cc3c,_0x4ab3e8){_0x4ab3e8=_0x4ab3e8||0xc8;return function(_0x1998d7){if(_0x1998d7){return _0x21cc3c['status'](_0x4ab3e8)['json'](_0x1998d7);}};}function respondWithFilteredResult(_0xa95a94,_0x5aa2a5){return function(_0x14d591){if(_0x14d591){var _0x692e6c=typeof _0x5aa2a5[_0x1e7c('0x1b')]===_0x1e7c('0x1c')&&typeof _0x5aa2a5[_0x1e7c('0x1d')]===_0x1e7c('0x1c');var _0x44c4e9=_0x14d591[_0x1e7c('0x1e')];var _0x8fb7e4=_0x692e6c?0x0:_0x5aa2a5[_0x1e7c('0x1b')];var _0x1ce082=_0x692e6c?_0x14d591[_0x1e7c('0x1e')]:_0x5aa2a5['offset']+_0x5aa2a5[_0x1e7c('0x1d')];var _0x2a2e8d;if(_0x1ce082>=_0x44c4e9){_0x1ce082=_0x44c4e9;_0x2a2e8d=0xc8;}else{_0x2a2e8d=0xce;}_0xa95a94[_0x1e7c('0x1f')](_0x2a2e8d);return _0xa95a94[_0x1e7c('0x20')](_0x1e7c('0x21'),_0x8fb7e4+'-'+_0x1ce082+'/'+_0x44c4e9)[_0x1e7c('0x22')](_0x14d591);}return null;};}function patchUpdates(_0x256464){return function(_0x566d8e){try{jsonpatch[_0x1e7c('0x23')](_0x566d8e,_0x256464,!![]);}catch(_0x106454){return BPromise[_0x1e7c('0x24')](_0x106454);}return _0x566d8e[_0x1e7c('0x25')]();};}function saveUpdates(_0x5868a8,_0xda9e1a){return function(_0x2edec5){if(_0x2edec5){return _0x2edec5[_0x1e7c('0x26')](_0x5868a8)[_0x1e7c('0x27')](function(_0x211777){return _0x211777;});}return null;};}function removeEntity(_0x23da1a,_0x277ee4){return function(_0x4ed338){if(_0x4ed338){return _0x4ed338[_0x1e7c('0x28')]()[_0x1e7c('0x27')](function(){_0x23da1a[_0x1e7c('0x1f')](0xcc)['end']();});}};}function handleEntityNotFound(_0x2ef789,_0x4b2cf5){return function(_0x1e4eb2){if(!_0x1e4eb2){_0x2ef789[_0x1e7c('0x19')](0x194);}return _0x1e4eb2;};}function handleError(_0x228d0b,_0x54a001){_0x54a001=_0x54a001||0x1f4;return function(_0x596a9d){logger[_0x1e7c('0x29')](_0x596a9d[_0x1e7c('0x2a')]);if(_0x596a9d[_0x1e7c('0x2b')]){delete _0x596a9d[_0x1e7c('0x2b')];}_0x228d0b[_0x1e7c('0x1f')](_0x54a001)[_0x1e7c('0x2c')](_0x596a9d);};}exports[_0x1e7c('0x2d')]=function(_0x5b9c08,_0x312e07){var _0x388816={},_0x371521={},_0x267991={'count':0x0,'rows':[]};var _0x78b414=_['map'](db[_0x1e7c('0x2e')][_0x1e7c('0x2f')],function(_0x27054c){return{'name':_0x27054c[_0x1e7c('0x30')],'type':_0x27054c[_0x1e7c('0x31')][_0x1e7c('0x32')]};});_0x371521[_0x1e7c('0x33')]=_[_0x1e7c('0x34')](_0x78b414,_0x1e7c('0x2b'));_0x371521[_0x1e7c('0x35')]=_['keys'](_0x5b9c08['query']);_0x371521[_0x1e7c('0x36')]=_[_0x1e7c('0x37')](_0x371521['model'],_0x371521[_0x1e7c('0x35')]);_0x388816[_0x1e7c('0x38')]=_[_0x1e7c('0x37')](_0x371521[_0x1e7c('0x33')],qs[_0x1e7c('0x39')](_0x5b9c08[_0x1e7c('0x35')]['fields']));_0x388816[_0x1e7c('0x38')]=_0x388816[_0x1e7c('0x38')][_0x1e7c('0x3a')]?_0x388816['attributes']:_0x371521[_0x1e7c('0x33')];if(!_0x5b9c08[_0x1e7c('0x35')][_0x1e7c('0x3b')](_0x1e7c('0x3c'))){_0x388816[_0x1e7c('0x1d')]=qs[_0x1e7c('0x1d')](_0x5b9c08[_0x1e7c('0x35')]['limit']);_0x388816[_0x1e7c('0x1b')]=qs[_0x1e7c('0x1b')](_0x5b9c08[_0x1e7c('0x35')][_0x1e7c('0x1b')]);}_0x388816[_0x1e7c('0x3d')]=qs[_0x1e7c('0x3e')](_0x5b9c08[_0x1e7c('0x35')][_0x1e7c('0x3e')]);_0x388816[_0x1e7c('0x3f')]=qs[_0x1e7c('0x36')](_[_0x1e7c('0x40')](_0x5b9c08['query'],_0x371521[_0x1e7c('0x36')]),_0x78b414);if(_0x5b9c08[_0x1e7c('0x35')][_0x1e7c('0x41')]){_0x388816[_0x1e7c('0x3f')]=_['merge'](_0x388816['where'],{'$or':_['map'](_0x78b414,function(_0x58bb1a){if(_0x58bb1a[_0x1e7c('0x31')]!=='VIRTUAL'){var _0x1e45e4={};_0x1e45e4[_0x58bb1a[_0x1e7c('0x2b')]]={'$like':'%'+_0x5b9c08[_0x1e7c('0x35')][_0x1e7c('0x41')]+'%'};return _0x1e45e4;}})});}_0x388816=_[_0x1e7c('0x42')]({},_0x388816,_0x5b9c08[_0x1e7c('0x43')]);var _0x594d49={'where':_0x388816['where']};return db[_0x1e7c('0x2e')][_0x1e7c('0x1e')](_0x594d49)[_0x1e7c('0x27')](function(_0x52e264){_0x267991[_0x1e7c('0x1e')]=_0x52e264;if(_0x5b9c08['query'][_0x1e7c('0x44')]){_0x388816[_0x1e7c('0x45')]=[{'all':!![]}];}return db[_0x1e7c('0x2e')][_0x1e7c('0x46')](_0x388816);})[_0x1e7c('0x27')](function(_0x4bb588){_0x267991[_0x1e7c('0x47')]=_0x4bb588;return _0x267991;})['then'](respondWithFilteredResult(_0x312e07,_0x388816))[_0x1e7c('0x48')](handleError(_0x312e07,null));};exports[_0x1e7c('0x49')]=function(_0x1b6785,_0x29bb59){var _0x4461e0={'raw':![],'where':{'id':_0x1b6785[_0x1e7c('0x4a')]['id']}},_0x3adb3b={};_0x3adb3b[_0x1e7c('0x33')]=_[_0x1e7c('0x4b')](db[_0x1e7c('0x2e')][_0x1e7c('0x2f')]);_0x3adb3b['query']=_[_0x1e7c('0x4b')](_0x1b6785[_0x1e7c('0x35')]);_0x3adb3b[_0x1e7c('0x36')]=_[_0x1e7c('0x37')](_0x3adb3b[_0x1e7c('0x33')],_0x3adb3b['query']);_0x4461e0[_0x1e7c('0x38')]=_[_0x1e7c('0x37')](_0x3adb3b[_0x1e7c('0x33')],qs[_0x1e7c('0x39')](_0x1b6785[_0x1e7c('0x35')]['fields']));_0x4461e0[_0x1e7c('0x38')]=_0x4461e0[_0x1e7c('0x38')][_0x1e7c('0x3a')]?_0x4461e0[_0x1e7c('0x38')]:_0x3adb3b[_0x1e7c('0x33')];if(_0x1b6785[_0x1e7c('0x35')]['includeAll']){_0x4461e0[_0x1e7c('0x45')]=[{'all':!![]}];}_0x4461e0=_[_0x1e7c('0x42')]({},_0x4461e0,_0x1b6785[_0x1e7c('0x43')]);return db[_0x1e7c('0x2e')][_0x1e7c('0x4c')](_0x4461e0)[_0x1e7c('0x27')](handleEntityNotFound(_0x29bb59,null))['then'](respondWithResult(_0x29bb59,null))[_0x1e7c('0x48')](handleError(_0x29bb59,null));};exports['create']=function(_0xc6cc1d,_0x3495ee){return db[_0x1e7c('0x2e')][_0x1e7c('0x4d')](_0xc6cc1d[_0x1e7c('0x4e')],{})['then'](respondWithResult(_0x3495ee,0xc9))['catch'](handleError(_0x3495ee,null));};exports[_0x1e7c('0x26')]=function(_0x4e89f0,_0xed9f2e){if(_0x4e89f0['body']['id']){delete _0x4e89f0[_0x1e7c('0x4e')]['id'];}return db[_0x1e7c('0x2e')][_0x1e7c('0x4c')]({'where':{'id':_0x4e89f0[_0x1e7c('0x4a')]['id']}})[_0x1e7c('0x27')](handleEntityNotFound(_0xed9f2e,null))['then'](saveUpdates(_0x4e89f0[_0x1e7c('0x4e')],null))[_0x1e7c('0x27')](respondWithResult(_0xed9f2e,null))['catch'](handleError(_0xed9f2e,null));};exports[_0x1e7c('0x28')]=function(_0x374fbb,_0x4c045d){return db['IntegrationReport'][_0x1e7c('0x4c')]({'where':{'id':_0x374fbb['params']['id']}})[_0x1e7c('0x27')](handleEntityNotFound(_0x4c045d,null))[_0x1e7c('0x27')](removeEntity(_0x4c045d,null))[_0x1e7c('0x48')](handleError(_0x4c045d,null));};exports['describe']=function(_0x4aeb81,_0x539b59){return db['IntegrationReport'][_0x1e7c('0x4f')]()[_0x1e7c('0x27')](respondWithResult(_0x539b59,null))[_0x1e7c('0x48')](handleError(_0x539b59,null));};
\ No newline at end of file