Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index 47f1628..a861b4d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2b8b=['pick','filter','merge','VIRTUAL','includeAll','include','findAll','rows','params','keys','catch','create','body','find','destroy','describe','eml-format','rimraf','moment','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','querystring','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/utils','../../config/license/util','../../mysqldb','status','end','json','undefined','limit','count','offset','Content-Range','apply','reject','save','update','then','error','stack','name','send','map','OpenchannelTransferReport','rawAttributes','type','key','model','query','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','where'];(function(_0x5f0a83,_0x210523){var _0x46f182=function(_0x5109e7){while(--_0x5109e7){_0x5f0a83['push'](_0x5f0a83['shift']());}};_0x46f182(++_0x210523);}(_0x2b8b,0x1c0));var _0xb2b8=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x2b8b[_0xfae23b];return _0x200640;};'use strict';var emlformat=require(_0xb2b8('0x0'));var rimraf=require(_0xb2b8('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0xb2b8('0x2'));var BPromise=require(_0xb2b8('0x3'));var Mustache=require('mustache');var util=require(_0xb2b8('0x4'));var path=require(_0xb2b8('0x5'));var sox=require(_0xb2b8('0x6'));var csv=require(_0xb2b8('0x7'));var ejs=require(_0xb2b8('0x8'));var fs=require('fs');var fs_extra=require(_0xb2b8('0x9'));var _=require(_0xb2b8('0xa'));var squel=require(_0xb2b8('0xb'));var crypto=require(_0xb2b8('0xc'));var jsforce=require(_0xb2b8('0xd'));var deskjs=require('desk.js');var toCsv=require(_0xb2b8('0x7'));var querystring=require(_0xb2b8('0xe'));var Papa=require('papaparse');var Redis=require(_0xb2b8('0xf'));var authService=require('../../components/auth/service');var qs=require(_0xb2b8('0x10'));var as=require(_0xb2b8('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0xb2b8('0x12'));var utils=require(_0xb2b8('0x13'));var config=require('../../config/environment');var licenseUtil=require(_0xb2b8('0x14'));var db=require(_0xb2b8('0x15'))['db'];function respondWithStatusCode(_0x4a8627,_0x2807bb){_0x2807bb=_0x2807bb||0xcc;return function(_0x2a95fe){if(_0x2a95fe){return _0x4a8627['sendStatus'](_0x2807bb);}return _0x4a8627[_0xb2b8('0x16')](_0x2807bb)[_0xb2b8('0x17')]();};}function respondWithResult(_0x29433b,_0x56f7e9){_0x56f7e9=_0x56f7e9||0xc8;return function(_0x21e4e3){if(_0x21e4e3){return _0x29433b['status'](_0x56f7e9)[_0xb2b8('0x18')](_0x21e4e3);}};}function respondWithFilteredResult(_0x5dac07,_0x34a137){return function(_0x5905cd){if(_0x5905cd){var _0x320c50=typeof _0x34a137['offset']===_0xb2b8('0x19')&&typeof _0x34a137[_0xb2b8('0x1a')]==='undefined';var _0x330349=_0x5905cd[_0xb2b8('0x1b')];var _0x444b4d=_0x320c50?0x0:_0x34a137[_0xb2b8('0x1c')];var _0x1812f9=_0x320c50?_0x5905cd['count']:_0x34a137[_0xb2b8('0x1c')]+_0x34a137['limit'];var _0x463867;if(_0x1812f9>=_0x330349){_0x1812f9=_0x330349;_0x463867=0xc8;}else{_0x463867=0xce;}_0x5dac07['status'](_0x463867);return _0x5dac07['set'](_0xb2b8('0x1d'),_0x444b4d+'-'+_0x1812f9+'/'+_0x330349)[_0xb2b8('0x18')](_0x5905cd);}return null;};}function patchUpdates(_0x187927){return function(_0x4b9fc7){try{jsonpatch[_0xb2b8('0x1e')](_0x4b9fc7,_0x187927,!![]);}catch(_0x4617d0){return BPromise[_0xb2b8('0x1f')](_0x4617d0);}return _0x4b9fc7[_0xb2b8('0x20')]();};}function saveUpdates(_0x56ddc8,_0x31171a){return function(_0x41ac95){if(_0x41ac95){return _0x41ac95[_0xb2b8('0x21')](_0x56ddc8)[_0xb2b8('0x22')](function(_0x4b8c7a){return _0x4b8c7a;});}return null;};}function removeEntity(_0x171aaf,_0x165328){return function(_0x3b732f){if(_0x3b732f){return _0x3b732f['destroy']()['then'](function(){_0x171aaf['status'](0xcc)[_0xb2b8('0x17')]();});}};}function handleEntityNotFound(_0x5e7ba9,_0x1e69e2){return function(_0x2f8a4b){if(!_0x2f8a4b){_0x5e7ba9['sendStatus'](0x194);}return _0x2f8a4b;};}function handleError(_0x32d2d6,_0x4305b3){_0x4305b3=_0x4305b3||0x1f4;return function(_0x461640){logger[_0xb2b8('0x23')](_0x461640[_0xb2b8('0x24')]);if(_0x461640[_0xb2b8('0x25')]){delete _0x461640['name'];}_0x32d2d6[_0xb2b8('0x16')](_0x4305b3)[_0xb2b8('0x26')](_0x461640);};}exports['index']=function(_0x147738,_0x37f7cd){var _0x5d59a2={},_0x51829e={},_0x343622={'count':0x0,'rows':[]};var _0x5d0565=_[_0xb2b8('0x27')](db[_0xb2b8('0x28')][_0xb2b8('0x29')],function(_0x2b17c9){return{'name':_0x2b17c9['fieldName'],'type':_0x2b17c9[_0xb2b8('0x2a')][_0xb2b8('0x2b')]};});_0x51829e[_0xb2b8('0x2c')]=_[_0xb2b8('0x27')](_0x5d0565,_0xb2b8('0x25'));_0x51829e['query']=_['keys'](_0x147738[_0xb2b8('0x2d')]);_0x51829e[_0xb2b8('0x2e')]=_['intersection'](_0x51829e[_0xb2b8('0x2c')],_0x51829e[_0xb2b8('0x2d')]);_0x5d59a2[_0xb2b8('0x2f')]=_[_0xb2b8('0x30')](_0x51829e[_0xb2b8('0x2c')],qs[_0xb2b8('0x31')](_0x147738['query'][_0xb2b8('0x31')]));_0x5d59a2[_0xb2b8('0x2f')]=_0x5d59a2[_0xb2b8('0x2f')][_0xb2b8('0x32')]?_0x5d59a2[_0xb2b8('0x2f')]:_0x51829e[_0xb2b8('0x2c')];if(!_0x147738['query'][_0xb2b8('0x33')](_0xb2b8('0x34'))){_0x5d59a2[_0xb2b8('0x1a')]=qs['limit'](_0x147738[_0xb2b8('0x2d')][_0xb2b8('0x1a')]);_0x5d59a2[_0xb2b8('0x1c')]=qs[_0xb2b8('0x1c')](_0x147738['query'][_0xb2b8('0x1c')]);}_0x5d59a2[_0xb2b8('0x35')]=qs[_0xb2b8('0x36')](_0x147738[_0xb2b8('0x2d')][_0xb2b8('0x36')]);_0x5d59a2[_0xb2b8('0x37')]=qs[_0xb2b8('0x2e')](_[_0xb2b8('0x38')](_0x147738[_0xb2b8('0x2d')],_0x51829e[_0xb2b8('0x2e')]),_0x5d0565);if(_0x147738[_0xb2b8('0x2d')][_0xb2b8('0x39')]){_0x5d59a2[_0xb2b8('0x37')]=_[_0xb2b8('0x3a')](_0x5d59a2['where'],{'$or':_[_0xb2b8('0x27')](_0x5d0565,function(_0x1791d1){if(_0x1791d1['type']!==_0xb2b8('0x3b')){var _0x8446fe={};_0x8446fe[_0x1791d1[_0xb2b8('0x25')]]={'$like':'%'+_0x147738[_0xb2b8('0x2d')][_0xb2b8('0x39')]+'%'};return _0x8446fe;}})});}_0x5d59a2=_['merge']({},_0x5d59a2,_0x147738['options']);var _0x35ebac={'where':_0x5d59a2[_0xb2b8('0x37')]};return db[_0xb2b8('0x28')][_0xb2b8('0x1b')](_0x35ebac)['then'](function(_0x4b879b){_0x343622[_0xb2b8('0x1b')]=_0x4b879b;if(_0x147738[_0xb2b8('0x2d')][_0xb2b8('0x3c')]){_0x5d59a2[_0xb2b8('0x3d')]=[{'all':!![]}];}return db[_0xb2b8('0x28')][_0xb2b8('0x3e')](_0x5d59a2);})[_0xb2b8('0x22')](function(_0x197c48){_0x343622[_0xb2b8('0x3f')]=_0x197c48;return _0x343622;})[_0xb2b8('0x22')](respondWithFilteredResult(_0x37f7cd,_0x5d59a2))['catch'](handleError(_0x37f7cd,null));};exports['show']=function(_0x2475cb,_0xa8ca51){var _0x47a2c0={'raw':!![],'where':{'id':_0x2475cb[_0xb2b8('0x40')]['id']}},_0x3bbb28={};_0x3bbb28[_0xb2b8('0x2c')]=_['keys'](db['OpenchannelTransferReport'][_0xb2b8('0x29')]);_0x3bbb28[_0xb2b8('0x2d')]=_[_0xb2b8('0x41')](_0x2475cb[_0xb2b8('0x2d')]);_0x3bbb28['filters']=_['intersection'](_0x3bbb28['model'],_0x3bbb28[_0xb2b8('0x2d')]);_0x47a2c0['attributes']=_[_0xb2b8('0x30')](_0x3bbb28[_0xb2b8('0x2c')],qs[_0xb2b8('0x31')](_0x2475cb[_0xb2b8('0x2d')][_0xb2b8('0x31')]));_0x47a2c0[_0xb2b8('0x2f')]=_0x47a2c0[_0xb2b8('0x2f')][_0xb2b8('0x32')]?_0x47a2c0[_0xb2b8('0x2f')]:_0x3bbb28[_0xb2b8('0x2c')];if(_0x2475cb[_0xb2b8('0x2d')]['includeAll']){_0x47a2c0[_0xb2b8('0x3d')]=[{'all':!![]}];}_0x47a2c0=_[_0xb2b8('0x3a')]({},_0x47a2c0,_0x2475cb['options']);return db[_0xb2b8('0x28')]['find'](_0x47a2c0)[_0xb2b8('0x22')](handleEntityNotFound(_0xa8ca51,null))[_0xb2b8('0x22')](respondWithResult(_0xa8ca51,null))[_0xb2b8('0x42')](handleError(_0xa8ca51,null));};exports[_0xb2b8('0x43')]=function(_0x352edf,_0x3876a7){return db[_0xb2b8('0x28')]['create'](_0x352edf[_0xb2b8('0x44')],{})[_0xb2b8('0x22')](respondWithResult(_0x3876a7,0xc9))['catch'](handleError(_0x3876a7,null));};exports[_0xb2b8('0x21')]=function(_0xa7a542,_0x9caa14){if(_0xa7a542[_0xb2b8('0x44')]['id']){delete _0xa7a542[_0xb2b8('0x44')]['id'];}return db[_0xb2b8('0x28')][_0xb2b8('0x45')]({'where':{'id':_0xa7a542[_0xb2b8('0x40')]['id']}})[_0xb2b8('0x22')](handleEntityNotFound(_0x9caa14,null))[_0xb2b8('0x22')](saveUpdates(_0xa7a542[_0xb2b8('0x44')],null))[_0xb2b8('0x22')](respondWithResult(_0x9caa14,null))[_0xb2b8('0x42')](handleError(_0x9caa14,null));};exports[_0xb2b8('0x46')]=function(_0x14f68c,_0x498812){return db['OpenchannelTransferReport'][_0xb2b8('0x45')]({'where':{'id':_0x14f68c['params']['id']}})[_0xb2b8('0x22')](handleEntityNotFound(_0x498812,null))[_0xb2b8('0x22')](removeEntity(_0x498812,null))[_0xb2b8('0x42')](handleError(_0x498812,null));};exports[_0xb2b8('0x47')]=function(_0x37fd27,_0x1b0ba0){return db[_0xb2b8('0x28')][_0xb2b8('0x47')]()[_0xb2b8('0x22')](respondWithResult(_0x1b0ba0,null))[_0xb2b8('0x42')](handleError(_0x1b0ba0,null));};
\ No newline at end of file
+var _0xc37f=['status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','sendStatus','stack','name','index','map','OpenchannelTransferReport','rawAttributes','fieldName','type','key','model','query','intersection','fields','attributes','length','nolimit','order','sort','pick','filters','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','show','params','keys','catch','create','body','find','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','ejs','squel','crypto','desk.js','to-csv','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb'];(function(_0x13f58e,_0x265b14){var _0x47f915=function(_0x9676da){while(--_0x9676da){_0x13f58e['push'](_0x13f58e['shift']());}};_0x47f915(++_0x265b14);}(_0xc37f,0xc7));var _0xfc37=function(_0x9f4870,_0x2b40da){_0x9f4870=_0x9f4870-0x0;var _0x503713=_0xc37f[_0x9f4870];return _0x503713;};'use strict';var emlformat=require(_0xfc37('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xfc37('0x1'));var jsonpatch=require(_0xfc37('0x2'));var rp=require(_0xfc37('0x3'));var moment=require(_0xfc37('0x4'));var BPromise=require(_0xfc37('0x5'));var Mustache=require('mustache');var util=require(_0xfc37('0x6'));var path=require(_0xfc37('0x7'));var sox=require(_0xfc37('0x8'));var csv=require('to-csv');var ejs=require(_0xfc37('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0xfc37('0xa'));var crypto=require(_0xfc37('0xb'));var jsforce=require('jsforce');var deskjs=require(_0xfc37('0xc'));var toCsv=require(_0xfc37('0xd'));var querystring=require('querystring');var Papa=require(_0xfc37('0xe'));var Redis=require('ioredis');var authService=require(_0xfc37('0xf'));var qs=require(_0xfc37('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xfc37('0x11'));var logger=require(_0xfc37('0x12'))(_0xfc37('0x13'));var utils=require('../../config/utils');var config=require(_0xfc37('0x14'));var licenseUtil=require(_0xfc37('0x15'));var db=require(_0xfc37('0x16'))['db'];function respondWithStatusCode(_0x14ed4b,_0x1266ba){_0x1266ba=_0x1266ba||0xcc;return function(_0x514a10){if(_0x514a10){return _0x14ed4b['sendStatus'](_0x1266ba);}return _0x14ed4b[_0xfc37('0x17')](_0x1266ba)[_0xfc37('0x18')]();};}function respondWithResult(_0x2a8f3f,_0x152f97){_0x152f97=_0x152f97||0xc8;return function(_0x24b7d5){if(_0x24b7d5){return _0x2a8f3f[_0xfc37('0x17')](_0x152f97)[_0xfc37('0x19')](_0x24b7d5);}};}function respondWithFilteredResult(_0x2889a5,_0x2a136e){return function(_0x1975e){if(_0x1975e){var _0x4547dc=typeof _0x2a136e[_0xfc37('0x1a')]===_0xfc37('0x1b')&&typeof _0x2a136e[_0xfc37('0x1c')]===_0xfc37('0x1b');var _0x238d43=_0x1975e[_0xfc37('0x1d')];var _0x1ca242=_0x4547dc?0x0:_0x2a136e[_0xfc37('0x1a')];var _0x462b54=_0x4547dc?_0x1975e['count']:_0x2a136e['offset']+_0x2a136e[_0xfc37('0x1c')];var _0x35bd3c;if(_0x462b54>=_0x238d43){_0x462b54=_0x238d43;_0x35bd3c=0xc8;}else{_0x35bd3c=0xce;}_0x2889a5[_0xfc37('0x17')](_0x35bd3c);return _0x2889a5[_0xfc37('0x1e')](_0xfc37('0x1f'),_0x1ca242+'-'+_0x462b54+'/'+_0x238d43)[_0xfc37('0x19')](_0x1975e);}return null;};}function patchUpdates(_0x309593){return function(_0x2d78ed){try{jsonpatch[_0xfc37('0x20')](_0x2d78ed,_0x309593,!![]);}catch(_0x3dee9a){return BPromise[_0xfc37('0x21')](_0x3dee9a);}return _0x2d78ed[_0xfc37('0x22')]();};}function saveUpdates(_0x5681df,_0x22462c){return function(_0x8bc2a5){if(_0x8bc2a5){return _0x8bc2a5[_0xfc37('0x23')](_0x5681df)[_0xfc37('0x24')](function(_0x939066){return _0x939066;});}return null;};}function removeEntity(_0x3a2bc5,_0x2e88aa){return function(_0x214fe2){if(_0x214fe2){return _0x214fe2['destroy']()['then'](function(){_0x3a2bc5[_0xfc37('0x17')](0xcc)['end']();});}};}function handleEntityNotFound(_0x28ce60,_0x1b8bd1){return function(_0x153023){if(!_0x153023){_0x28ce60[_0xfc37('0x25')](0x194);}return _0x153023;};}function handleError(_0x2d1191,_0x26f98d){_0x26f98d=_0x26f98d||0x1f4;return function(_0x2af11d){logger['error'](_0x2af11d[_0xfc37('0x26')]);if(_0x2af11d[_0xfc37('0x27')]){delete _0x2af11d[_0xfc37('0x27')];}_0x2d1191[_0xfc37('0x17')](_0x26f98d)['send'](_0x2af11d);};}exports[_0xfc37('0x28')]=function(_0x44f580,_0x336dfb){var _0x940bc9={},_0x27a0ef={},_0x13c693={'count':0x0,'rows':[]};var _0x349353=_[_0xfc37('0x29')](db[_0xfc37('0x2a')][_0xfc37('0x2b')],function(_0xa52f8f){return{'name':_0xa52f8f[_0xfc37('0x2c')],'type':_0xa52f8f[_0xfc37('0x2d')][_0xfc37('0x2e')]};});_0x27a0ef[_0xfc37('0x2f')]=_[_0xfc37('0x29')](_0x349353,'name');_0x27a0ef[_0xfc37('0x30')]=_['keys'](_0x44f580[_0xfc37('0x30')]);_0x27a0ef['filters']=_[_0xfc37('0x31')](_0x27a0ef[_0xfc37('0x2f')],_0x27a0ef[_0xfc37('0x30')]);_0x940bc9['attributes']=_['intersection'](_0x27a0ef[_0xfc37('0x2f')],qs['fields'](_0x44f580['query'][_0xfc37('0x32')]));_0x940bc9[_0xfc37('0x33')]=_0x940bc9[_0xfc37('0x33')][_0xfc37('0x34')]?_0x940bc9[_0xfc37('0x33')]:_0x27a0ef['model'];if(!_0x44f580[_0xfc37('0x30')]['hasOwnProperty'](_0xfc37('0x35'))){_0x940bc9['limit']=qs[_0xfc37('0x1c')](_0x44f580['query'][_0xfc37('0x1c')]);_0x940bc9['offset']=qs['offset'](_0x44f580[_0xfc37('0x30')]['offset']);}_0x940bc9[_0xfc37('0x36')]=qs[_0xfc37('0x37')](_0x44f580['query'][_0xfc37('0x37')]);_0x940bc9['where']=qs['filters'](_[_0xfc37('0x38')](_0x44f580['query'],_0x27a0ef[_0xfc37('0x39')]),_0x349353);if(_0x44f580['query'][_0xfc37('0x3a')]){_0x940bc9[_0xfc37('0x3b')]=_[_0xfc37('0x3c')](_0x940bc9['where'],{'$or':_[_0xfc37('0x29')](_0x349353,function(_0x42270f){if(_0x42270f[_0xfc37('0x2d')]!==_0xfc37('0x3d')){var _0x128658={};_0x128658[_0x42270f[_0xfc37('0x27')]]={'$like':'%'+_0x44f580['query'][_0xfc37('0x3a')]+'%'};return _0x128658;}})});}_0x940bc9=_[_0xfc37('0x3c')]({},_0x940bc9,_0x44f580[_0xfc37('0x3e')]);var _0x139a1e={'where':_0x940bc9[_0xfc37('0x3b')]};return db[_0xfc37('0x2a')]['count'](_0x139a1e)[_0xfc37('0x24')](function(_0x1b3ad7){_0x13c693[_0xfc37('0x1d')]=_0x1b3ad7;if(_0x44f580['query'][_0xfc37('0x3f')]){_0x940bc9[_0xfc37('0x40')]=[{'all':!![]}];}return db[_0xfc37('0x2a')][_0xfc37('0x41')](_0x940bc9);})[_0xfc37('0x24')](function(_0x5b2182){_0x13c693['rows']=_0x5b2182;return _0x13c693;})[_0xfc37('0x24')](respondWithFilteredResult(_0x336dfb,_0x940bc9))['catch'](handleError(_0x336dfb,null));};exports[_0xfc37('0x42')]=function(_0x2229bd,_0x38a35b){var _0x205610={'raw':!![],'where':{'id':_0x2229bd[_0xfc37('0x43')]['id']}},_0x4c68f6={};_0x4c68f6['model']=_['keys'](db[_0xfc37('0x2a')][_0xfc37('0x2b')]);_0x4c68f6[_0xfc37('0x30')]=_[_0xfc37('0x44')](_0x2229bd['query']);_0x4c68f6[_0xfc37('0x39')]=_[_0xfc37('0x31')](_0x4c68f6[_0xfc37('0x2f')],_0x4c68f6[_0xfc37('0x30')]);_0x205610[_0xfc37('0x33')]=_[_0xfc37('0x31')](_0x4c68f6[_0xfc37('0x2f')],qs[_0xfc37('0x32')](_0x2229bd[_0xfc37('0x30')][_0xfc37('0x32')]));_0x205610[_0xfc37('0x33')]=_0x205610['attributes'][_0xfc37('0x34')]?_0x205610[_0xfc37('0x33')]:_0x4c68f6['model'];if(_0x2229bd['query'][_0xfc37('0x3f')]){_0x205610[_0xfc37('0x40')]=[{'all':!![]}];}_0x205610=_[_0xfc37('0x3c')]({},_0x205610,_0x2229bd['options']);return db[_0xfc37('0x2a')]['find'](_0x205610)['then'](handleEntityNotFound(_0x38a35b,null))[_0xfc37('0x24')](respondWithResult(_0x38a35b,null))[_0xfc37('0x45')](handleError(_0x38a35b,null));};exports[_0xfc37('0x46')]=function(_0x193d86,_0x2edc9c){return db[_0xfc37('0x2a')][_0xfc37('0x46')](_0x193d86['body'],{})['then'](respondWithResult(_0x2edc9c,0xc9))['catch'](handleError(_0x2edc9c,null));};exports[_0xfc37('0x23')]=function(_0x3893b6,_0x2b78e9){if(_0x3893b6[_0xfc37('0x47')]['id']){delete _0x3893b6[_0xfc37('0x47')]['id'];}return db[_0xfc37('0x2a')][_0xfc37('0x48')]({'where':{'id':_0x3893b6['params']['id']}})[_0xfc37('0x24')](handleEntityNotFound(_0x2b78e9,null))[_0xfc37('0x24')](saveUpdates(_0x3893b6['body'],null))[_0xfc37('0x24')](respondWithResult(_0x2b78e9,null))['catch'](handleError(_0x2b78e9,null));};exports['destroy']=function(_0x53aa1b,_0x46453a){return db[_0xfc37('0x2a')]['find']({'where':{'id':_0x53aa1b[_0xfc37('0x43')]['id']}})[_0xfc37('0x24')](handleEntityNotFound(_0x46453a,null))[_0xfc37('0x24')](removeEntity(_0x46453a,null))[_0xfc37('0x45')](handleError(_0x46453a,null));};exports[_0xfc37('0x49')]=function(_0x464f6c,_0x251345){return db['OpenchannelTransferReport'][_0xfc37('0x49')]()[_0xfc37('0x24')](respondWithResult(_0x251345,null))[_0xfc37('0x45')](handleError(_0x251345,null));};
\ No newline at end of file