Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index 150f362..af44e29 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x824d=['jsforce','querystring','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','status','json','undefined','limit','offset','set','Content-Range','reject','save','then','destroy','stack','name','send','index','map','OpenchannelTransferReport','rawAttributes','fieldName','type','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','where','pick','merge','VIRTUAL','filter','options','count','includeAll','include','catch','show','params','find','create','body','update','describe','eml-format','zip-dir','fast-json-patch','request-promise','mustache','util','path','to-csv','fs-extra','lodash','squel','crypto'];(function(_0x26f1c4,_0x2bbc6a){var _0x393a70=function(_0xb8257d){while(--_0xb8257d){_0x26f1c4['push'](_0x26f1c4['shift']());}};_0x393a70(++_0x2bbc6a);}(_0x824d,0xc3));var _0xd824=function(_0x4c5724,_0x11afa9){_0x4c5724=_0x4c5724-0x0;var _0x4a6b98=_0x824d[_0x4c5724];return _0x4a6b98;};'use strict';var emlformat=require(_0xd824('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xd824('0x1'));var jsonpatch=require(_0xd824('0x2'));var rp=require(_0xd824('0x3'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0xd824('0x4'));var util=require(_0xd824('0x5'));var path=require(_0xd824('0x6'));var sox=require('sox');var csv=require(_0xd824('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xd824('0x8'));var _=require(_0xd824('0x9'));var squel=require(_0xd824('0xa'));var crypto=require(_0xd824('0xb'));var jsforce=require(_0xd824('0xc'));var deskjs=require('desk.js');var toCsv=require(_0xd824('0x7'));var querystring=require(_0xd824('0xd'));var Papa=require(_0xd824('0xe'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xd824('0xf'));var as=require(_0xd824('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xd824('0x11'))(_0xd824('0x12'));var utils=require(_0xd824('0x13'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xd824('0x14'))['db'];function respondWithStatusCode(_0xdb8a27,_0x5a838a){_0x5a838a=_0x5a838a||0xcc;return function(_0x661720){if(_0x661720){return _0xdb8a27[_0xd824('0x15')](_0x5a838a);}return _0xdb8a27[_0xd824('0x16')](_0x5a838a)['end']();};}function respondWithResult(_0x1b618e,_0x490f80){_0x490f80=_0x490f80||0xc8;return function(_0x3e81ab){if(_0x3e81ab){return _0x1b618e['status'](_0x490f80)[_0xd824('0x17')](_0x3e81ab);}};}function respondWithFilteredResult(_0x4196a0,_0x3f0a5e){return function(_0x2d7717){if(_0x2d7717){var _0x4fd8d1=typeof _0x3f0a5e['offset']===_0xd824('0x18')&&typeof _0x3f0a5e[_0xd824('0x19')]==='undefined';var _0x5e27b3=_0x2d7717['count'];var _0x42fcd1=_0x4fd8d1?0x0:_0x3f0a5e[_0xd824('0x1a')];var _0x3ffeb4=_0x4fd8d1?_0x2d7717['count']:_0x3f0a5e[_0xd824('0x1a')]+_0x3f0a5e[_0xd824('0x19')];var _0x1e6c45;if(_0x3ffeb4>=_0x5e27b3){_0x3ffeb4=_0x5e27b3;_0x1e6c45=0xc8;}else{_0x1e6c45=0xce;}_0x4196a0[_0xd824('0x16')](_0x1e6c45);return _0x4196a0[_0xd824('0x1b')](_0xd824('0x1c'),_0x42fcd1+'-'+_0x3ffeb4+'/'+_0x5e27b3)['json'](_0x2d7717);}return null;};}function patchUpdates(_0x2ca474){return function(_0x221b05){try{jsonpatch['apply'](_0x221b05,_0x2ca474,!![]);}catch(_0x39c8cb){return BPromise[_0xd824('0x1d')](_0x39c8cb);}return _0x221b05[_0xd824('0x1e')]();};}function saveUpdates(_0x423dc5,_0x2c343d){return function(_0xf075a0){if(_0xf075a0){return _0xf075a0['update'](_0x423dc5)[_0xd824('0x1f')](function(_0x338ab7){return _0x338ab7;});}return null;};}function removeEntity(_0x4338c0,_0x13963d){return function(_0x1d10e7){if(_0x1d10e7){return _0x1d10e7[_0xd824('0x20')]()[_0xd824('0x1f')](function(){_0x4338c0[_0xd824('0x16')](0xcc)['end']();});}};}function handleEntityNotFound(_0x159bef,_0x58e7cb){return function(_0x5cc06e){if(!_0x5cc06e){_0x159bef['sendStatus'](0x194);}return _0x5cc06e;};}function handleError(_0x3b03f4,_0x1a125){_0x1a125=_0x1a125||0x1f4;return function(_0x1281c3){logger['error'](_0x1281c3[_0xd824('0x21')]);if(_0x1281c3['name']){delete _0x1281c3[_0xd824('0x22')];}_0x3b03f4[_0xd824('0x16')](_0x1a125)[_0xd824('0x23')](_0x1281c3);};}exports[_0xd824('0x24')]=function(_0x23b0f3,_0x5e5c60){var _0x132e6e={},_0x2e7080={},_0x3ab3ab={'count':0x0,'rows':[]};var _0x1b36ea=_[_0xd824('0x25')](db[_0xd824('0x26')][_0xd824('0x27')],function(_0x3638b2){return{'name':_0x3638b2[_0xd824('0x28')],'type':_0x3638b2[_0xd824('0x29')]['key']};});_0x2e7080[_0xd824('0x2a')]=_['map'](_0x1b36ea,_0xd824('0x22'));_0x2e7080[_0xd824('0x2b')]=_[_0xd824('0x2c')](_0x23b0f3[_0xd824('0x2b')]);_0x2e7080[_0xd824('0x2d')]=_[_0xd824('0x2e')](_0x2e7080[_0xd824('0x2a')],_0x2e7080['query']);_0x132e6e[_0xd824('0x2f')]=_['intersection'](_0x2e7080[_0xd824('0x2a')],qs[_0xd824('0x30')](_0x23b0f3[_0xd824('0x2b')][_0xd824('0x30')]));_0x132e6e[_0xd824('0x2f')]=_0x132e6e[_0xd824('0x2f')][_0xd824('0x31')]?_0x132e6e['attributes']:_0x2e7080[_0xd824('0x2a')];if(!_0x23b0f3['query']['hasOwnProperty'](_0xd824('0x32'))){_0x132e6e[_0xd824('0x19')]=qs['limit'](_0x23b0f3[_0xd824('0x2b')]['limit']);_0x132e6e[_0xd824('0x1a')]=qs[_0xd824('0x1a')](_0x23b0f3[_0xd824('0x2b')][_0xd824('0x1a')]);}_0x132e6e[_0xd824('0x33')]=qs['sort'](_0x23b0f3['query']['sort']);_0x132e6e[_0xd824('0x34')]=qs[_0xd824('0x2d')](_[_0xd824('0x35')](_0x23b0f3['query'],_0x2e7080[_0xd824('0x2d')]),_0x1b36ea);if(_0x23b0f3[_0xd824('0x2b')]['filter']){_0x132e6e[_0xd824('0x34')]=_[_0xd824('0x36')](_0x132e6e[_0xd824('0x34')],{'$or':_[_0xd824('0x25')](_0x1b36ea,function(_0x2914aa){if(_0x2914aa['type']!==_0xd824('0x37')){var _0x285ff6={};_0x285ff6[_0x2914aa[_0xd824('0x22')]]={'$like':'%'+_0x23b0f3[_0xd824('0x2b')][_0xd824('0x38')]+'%'};return _0x285ff6;}})});}_0x132e6e=_[_0xd824('0x36')]({},_0x132e6e,_0x23b0f3[_0xd824('0x39')]);var _0x218e37={'where':_0x132e6e[_0xd824('0x34')]};return db[_0xd824('0x26')][_0xd824('0x3a')](_0x218e37)[_0xd824('0x1f')](function(_0x283827){_0x3ab3ab[_0xd824('0x3a')]=_0x283827;if(_0x23b0f3[_0xd824('0x2b')][_0xd824('0x3b')]){_0x132e6e[_0xd824('0x3c')]=[{'all':!![]}];}return db[_0xd824('0x26')]['findAll'](_0x132e6e);})[_0xd824('0x1f')](function(_0x4d441e){_0x3ab3ab['rows']=_0x4d441e;return _0x3ab3ab;})[_0xd824('0x1f')](respondWithFilteredResult(_0x5e5c60,_0x132e6e))[_0xd824('0x3d')](handleError(_0x5e5c60,null));};exports[_0xd824('0x3e')]=function(_0x5705a0,_0x464b96){var _0x40fc03={'raw':!![],'where':{'id':_0x5705a0[_0xd824('0x3f')]['id']}},_0x151f0e={};_0x151f0e[_0xd824('0x2a')]=_['keys'](db[_0xd824('0x26')][_0xd824('0x27')]);_0x151f0e[_0xd824('0x2b')]=_[_0xd824('0x2c')](_0x5705a0['query']);_0x151f0e[_0xd824('0x2d')]=_[_0xd824('0x2e')](_0x151f0e[_0xd824('0x2a')],_0x151f0e[_0xd824('0x2b')]);_0x40fc03['attributes']=_[_0xd824('0x2e')](_0x151f0e[_0xd824('0x2a')],qs[_0xd824('0x30')](_0x5705a0[_0xd824('0x2b')]['fields']));_0x40fc03[_0xd824('0x2f')]=_0x40fc03[_0xd824('0x2f')][_0xd824('0x31')]?_0x40fc03['attributes']:_0x151f0e[_0xd824('0x2a')];if(_0x5705a0['query'][_0xd824('0x3b')]){_0x40fc03[_0xd824('0x3c')]=[{'all':!![]}];}_0x40fc03=_['merge']({},_0x40fc03,_0x5705a0[_0xd824('0x39')]);return db[_0xd824('0x26')][_0xd824('0x40')](_0x40fc03)[_0xd824('0x1f')](handleEntityNotFound(_0x464b96,null))[_0xd824('0x1f')](respondWithResult(_0x464b96,null))[_0xd824('0x3d')](handleError(_0x464b96,null));};exports[_0xd824('0x41')]=function(_0x488ff0,_0x5eefe2){return db[_0xd824('0x26')][_0xd824('0x41')](_0x488ff0[_0xd824('0x42')],{})[_0xd824('0x1f')](respondWithResult(_0x5eefe2,0xc9))[_0xd824('0x3d')](handleError(_0x5eefe2,null));};exports[_0xd824('0x43')]=function(_0x1080de,_0x594676){if(_0x1080de[_0xd824('0x42')]['id']){delete _0x1080de['body']['id'];}return db['OpenchannelTransferReport'][_0xd824('0x40')]({'where':{'id':_0x1080de[_0xd824('0x3f')]['id']}})['then'](handleEntityNotFound(_0x594676,null))['then'](saveUpdates(_0x1080de[_0xd824('0x42')],null))[_0xd824('0x1f')](respondWithResult(_0x594676,null))[_0xd824('0x3d')](handleError(_0x594676,null));};exports[_0xd824('0x20')]=function(_0xb51839,_0x38cb68){return db['OpenchannelTransferReport'][_0xd824('0x40')]({'where':{'id':_0xb51839['params']['id']}})['then'](handleEntityNotFound(_0x38cb68,null))[_0xd824('0x1f')](removeEntity(_0x38cb68,null))[_0xd824('0x3d')](handleError(_0x38cb68,null));};exports[_0xd824('0x44')]=function(_0x175f84,_0x490a4a){return db['OpenchannelTransferReport'][_0xd824('0x44')]()['then'](respondWithResult(_0x490a4a,null))['catch'](handleError(_0x490a4a,null));};
\ No newline at end of file
+var _0xcb45=['fs-extra','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../mysqldb','sendStatus','status','end','json','offset','undefined','count','limit','set','Content-Range','apply','update','then','error','name','send','index','OpenchannelTransferReport','rawAttributes','fieldName','key','model','map','query','keys','intersection','attributes','fields','length','sort','where','filters','filter','type','VIRTUAL','options','include','findAll','catch','show','includeAll','merge','find','create','body','params','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs'];(function(_0x3737a4,_0xe09cfa){var _0x3262b7=function(_0x416673){while(--_0x416673){_0x3737a4['push'](_0x3737a4['shift']());}};_0x3262b7(++_0xe09cfa);}(_0xcb45,0x110));var _0x5cb4=function(_0x16d398,_0x48e064){_0x16d398=_0x16d398-0x0;var _0x41ed1c=_0xcb45[_0x16d398];return _0x41ed1c;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x5cb4('0x0'));var zipdir=require(_0x5cb4('0x1'));var jsonpatch=require(_0x5cb4('0x2'));var rp=require(_0x5cb4('0x3'));var moment=require(_0x5cb4('0x4'));var BPromise=require(_0x5cb4('0x5'));var Mustache=require(_0x5cb4('0x6'));var util=require(_0x5cb4('0x7'));var path=require(_0x5cb4('0x8'));var sox=require(_0x5cb4('0x9'));var csv=require(_0x5cb4('0xa'));var ejs=require(_0x5cb4('0xb'));var fs=require('fs');var fs_extra=require(_0x5cb4('0xc'));var _=require(_0x5cb4('0xd'));var squel=require(_0x5cb4('0xe'));var crypto=require(_0x5cb4('0xf'));var jsforce=require('jsforce');var deskjs=require(_0x5cb4('0x10'));var toCsv=require('to-csv');var querystring=require(_0x5cb4('0x11'));var Papa=require(_0x5cb4('0x12'));var Redis=require(_0x5cb4('0x13'));var authService=require('../../components/auth/service');var qs=require(_0x5cb4('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x5cb4('0x15'));var logger=require(_0x5cb4('0x16'))('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x5cb4('0x17'))['db'];function respondWithStatusCode(_0x38e799,_0x52ab6b){_0x52ab6b=_0x52ab6b||0xcc;return function(_0x4acaa4){if(_0x4acaa4){return _0x38e799[_0x5cb4('0x18')](_0x52ab6b);}return _0x38e799[_0x5cb4('0x19')](_0x52ab6b)[_0x5cb4('0x1a')]();};}function respondWithResult(_0x322859,_0x51abaa){_0x51abaa=_0x51abaa||0xc8;return function(_0xfaf8d){if(_0xfaf8d){return _0x322859[_0x5cb4('0x19')](_0x51abaa)[_0x5cb4('0x1b')](_0xfaf8d);}};}function respondWithFilteredResult(_0x5cdcf1,_0x526edb){return function(_0x4e1ee8){if(_0x4e1ee8){var _0x3d2b5c=typeof _0x526edb[_0x5cb4('0x1c')]==='undefined'&&typeof _0x526edb['limit']===_0x5cb4('0x1d');var _0x558f14=_0x4e1ee8[_0x5cb4('0x1e')];var _0x4b403a=_0x3d2b5c?0x0:_0x526edb[_0x5cb4('0x1c')];var _0x2fd05c=_0x3d2b5c?_0x4e1ee8[_0x5cb4('0x1e')]:_0x526edb[_0x5cb4('0x1c')]+_0x526edb[_0x5cb4('0x1f')];var _0x10b559;if(_0x2fd05c>=_0x558f14){_0x2fd05c=_0x558f14;_0x10b559=0xc8;}else{_0x10b559=0xce;}_0x5cdcf1[_0x5cb4('0x19')](_0x10b559);return _0x5cdcf1[_0x5cb4('0x20')](_0x5cb4('0x21'),_0x4b403a+'-'+_0x2fd05c+'/'+_0x558f14)[_0x5cb4('0x1b')](_0x4e1ee8);}return null;};}function patchUpdates(_0x2fd8f3){return function(_0xeb1af9){try{jsonpatch[_0x5cb4('0x22')](_0xeb1af9,_0x2fd8f3,!![]);}catch(_0x3e622d){return BPromise['reject'](_0x3e622d);}return _0xeb1af9['save']();};}function saveUpdates(_0x3ded5c,_0x1fd1b8){return function(_0x161750){if(_0x161750){return _0x161750[_0x5cb4('0x23')](_0x3ded5c)[_0x5cb4('0x24')](function(_0x532d9b){return _0x532d9b;});}return null;};}function removeEntity(_0x4b624d,_0x29b8ad){return function(_0x49e167){if(_0x49e167){return _0x49e167['destroy']()[_0x5cb4('0x24')](function(){_0x4b624d[_0x5cb4('0x19')](0xcc)[_0x5cb4('0x1a')]();});}};}function handleEntityNotFound(_0x3c8109,_0x16d8b2){return function(_0x34a9bf){if(!_0x34a9bf){_0x3c8109[_0x5cb4('0x18')](0x194);}return _0x34a9bf;};}function handleError(_0x220345,_0x3d4414){_0x3d4414=_0x3d4414||0x1f4;return function(_0x1f3577){logger[_0x5cb4('0x25')](_0x1f3577['stack']);if(_0x1f3577[_0x5cb4('0x26')]){delete _0x1f3577['name'];}_0x220345[_0x5cb4('0x19')](_0x3d4414)[_0x5cb4('0x27')](_0x1f3577);};}exports[_0x5cb4('0x28')]=function(_0x7e931d,_0x482f89){var _0xe89248={},_0x4a4f8d={},_0x5aac79={'count':0x0,'rows':[]};var _0x30dadf=_['map'](db[_0x5cb4('0x29')][_0x5cb4('0x2a')],function(_0x3611c5){return{'name':_0x3611c5[_0x5cb4('0x2b')],'type':_0x3611c5['type'][_0x5cb4('0x2c')]};});_0x4a4f8d[_0x5cb4('0x2d')]=_[_0x5cb4('0x2e')](_0x30dadf,_0x5cb4('0x26'));_0x4a4f8d[_0x5cb4('0x2f')]=_[_0x5cb4('0x30')](_0x7e931d[_0x5cb4('0x2f')]);_0x4a4f8d['filters']=_[_0x5cb4('0x31')](_0x4a4f8d[_0x5cb4('0x2d')],_0x4a4f8d[_0x5cb4('0x2f')]);_0xe89248[_0x5cb4('0x32')]=_[_0x5cb4('0x31')](_0x4a4f8d[_0x5cb4('0x2d')],qs[_0x5cb4('0x33')](_0x7e931d[_0x5cb4('0x2f')][_0x5cb4('0x33')]));_0xe89248[_0x5cb4('0x32')]=_0xe89248[_0x5cb4('0x32')][_0x5cb4('0x34')]?_0xe89248[_0x5cb4('0x32')]:_0x4a4f8d[_0x5cb4('0x2d')];if(!_0x7e931d[_0x5cb4('0x2f')]['hasOwnProperty']('nolimit')){_0xe89248['limit']=qs[_0x5cb4('0x1f')](_0x7e931d[_0x5cb4('0x2f')][_0x5cb4('0x1f')]);_0xe89248['offset']=qs[_0x5cb4('0x1c')](_0x7e931d['query'][_0x5cb4('0x1c')]);}_0xe89248['order']=qs[_0x5cb4('0x35')](_0x7e931d[_0x5cb4('0x2f')][_0x5cb4('0x35')]);_0xe89248[_0x5cb4('0x36')]=qs[_0x5cb4('0x37')](_['pick'](_0x7e931d[_0x5cb4('0x2f')],_0x4a4f8d[_0x5cb4('0x37')]),_0x30dadf);if(_0x7e931d[_0x5cb4('0x2f')][_0x5cb4('0x38')]){_0xe89248[_0x5cb4('0x36')]=_['merge'](_0xe89248[_0x5cb4('0x36')],{'$or':_[_0x5cb4('0x2e')](_0x30dadf,function(_0x2eb4da){if(_0x2eb4da[_0x5cb4('0x39')]!==_0x5cb4('0x3a')){var _0x1a635e={};_0x1a635e[_0x2eb4da[_0x5cb4('0x26')]]={'$like':'%'+_0x7e931d[_0x5cb4('0x2f')]['filter']+'%'};return _0x1a635e;}})});}_0xe89248=_['merge']({},_0xe89248,_0x7e931d[_0x5cb4('0x3b')]);var _0x51b6e8={'where':_0xe89248[_0x5cb4('0x36')]};return db[_0x5cb4('0x29')]['count'](_0x51b6e8)[_0x5cb4('0x24')](function(_0x444d04){_0x5aac79[_0x5cb4('0x1e')]=_0x444d04;if(_0x7e931d[_0x5cb4('0x2f')]['includeAll']){_0xe89248[_0x5cb4('0x3c')]=[{'all':!![]}];}return db[_0x5cb4('0x29')][_0x5cb4('0x3d')](_0xe89248);})[_0x5cb4('0x24')](function(_0x34ffd7){_0x5aac79['rows']=_0x34ffd7;return _0x5aac79;})[_0x5cb4('0x24')](respondWithFilteredResult(_0x482f89,_0xe89248))[_0x5cb4('0x3e')](handleError(_0x482f89,null));};exports[_0x5cb4('0x3f')]=function(_0x42c8d1,_0x4aff26){var _0x57797d={'raw':!![],'where':{'id':_0x42c8d1['params']['id']}},_0x326854={};_0x326854[_0x5cb4('0x2d')]=_['keys'](db['OpenchannelTransferReport'][_0x5cb4('0x2a')]);_0x326854['query']=_[_0x5cb4('0x30')](_0x42c8d1[_0x5cb4('0x2f')]);_0x326854['filters']=_[_0x5cb4('0x31')](_0x326854[_0x5cb4('0x2d')],_0x326854[_0x5cb4('0x2f')]);_0x57797d[_0x5cb4('0x32')]=_['intersection'](_0x326854[_0x5cb4('0x2d')],qs[_0x5cb4('0x33')](_0x42c8d1['query'][_0x5cb4('0x33')]));_0x57797d[_0x5cb4('0x32')]=_0x57797d['attributes']['length']?_0x57797d['attributes']:_0x326854['model'];if(_0x42c8d1[_0x5cb4('0x2f')][_0x5cb4('0x40')]){_0x57797d['include']=[{'all':!![]}];}_0x57797d=_[_0x5cb4('0x41')]({},_0x57797d,_0x42c8d1['options']);return db[_0x5cb4('0x29')][_0x5cb4('0x42')](_0x57797d)[_0x5cb4('0x24')](handleEntityNotFound(_0x4aff26,null))[_0x5cb4('0x24')](respondWithResult(_0x4aff26,null))[_0x5cb4('0x3e')](handleError(_0x4aff26,null));};exports[_0x5cb4('0x43')]=function(_0x5aefc0,_0x420373){return db[_0x5cb4('0x29')][_0x5cb4('0x43')](_0x5aefc0[_0x5cb4('0x44')],{})['then'](respondWithResult(_0x420373,0xc9))[_0x5cb4('0x3e')](handleError(_0x420373,null));};exports[_0x5cb4('0x23')]=function(_0x3fd4de,_0x585dd0){if(_0x3fd4de[_0x5cb4('0x44')]['id']){delete _0x3fd4de[_0x5cb4('0x44')]['id'];}return db[_0x5cb4('0x29')][_0x5cb4('0x42')]({'where':{'id':_0x3fd4de['params']['id']}})[_0x5cb4('0x24')](handleEntityNotFound(_0x585dd0,null))[_0x5cb4('0x24')](saveUpdates(_0x3fd4de[_0x5cb4('0x44')],null))['then'](respondWithResult(_0x585dd0,null))[_0x5cb4('0x3e')](handleError(_0x585dd0,null));};exports['destroy']=function(_0x3fc097,_0x501c3c){return db['OpenchannelTransferReport'][_0x5cb4('0x42')]({'where':{'id':_0x3fc097[_0x5cb4('0x45')]['id']}})[_0x5cb4('0x24')](handleEntityNotFound(_0x501c3c,null))[_0x5cb4('0x24')](removeEntity(_0x501c3c,null))[_0x5cb4('0x3e')](handleError(_0x501c3c,null));};exports[_0x5cb4('0x46')]=function(_0x1947ac,_0x36c825){return db[_0x5cb4('0x29')][_0x5cb4('0x46')]()[_0x5cb4('0x24')](respondWithResult(_0x36c825,null))[_0x5cb4('0x3e')](handleError(_0x36c825,null));};
\ No newline at end of file