Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index 4224395..0fa93dc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2e5c=['sort','pick','filter','where','merge','VIRTUAL','includeAll','include','findAll','catch','show','params','length','find','create','body','destroy','describe','html-pdf','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','crypto','jsforce','desk.js','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/environment','../../mysqldb','sendStatus','status','json','count','offset','limit','set','Content-Range','reject','save','update','then','end','error','stack','name','map','OpenchannelTransferReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','order'];(function(_0x4ef781,_0x472a5d){var _0x32bce9=function(_0xa1950d){while(--_0xa1950d){_0x4ef781['push'](_0x4ef781['shift']());}};_0x32bce9(++_0x472a5d);}(_0x2e5c,0x184));var _0xc2e5=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x2e5c[_0xfae23b];return _0x200640;};'use strict';var pdf=require(_0xc2e5('0x0'));var emlformat=require(_0xc2e5('0x1'));var rimraf=require(_0xc2e5('0x2'));var zipdir=require(_0xc2e5('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0xc2e5('0x4'));var moment=require(_0xc2e5('0x5'));var BPromise=require(_0xc2e5('0x6'));var Mustache=require(_0xc2e5('0x7'));var util=require(_0xc2e5('0x8'));var path=require(_0xc2e5('0x9'));var sox=require(_0xc2e5('0xa'));var csv=require(_0xc2e5('0xb'));var ejs=require(_0xc2e5('0xc'));var fs=require('fs');var _=require(_0xc2e5('0xd'));var squel=require('squel');var crypto=require(_0xc2e5('0xe'));var jsforce=require(_0xc2e5('0xf'));var deskjs=require(_0xc2e5('0x10'));var toCsv=require(_0xc2e5('0xb'));var querystring=require('querystring');var Papa=require(_0xc2e5('0x11'));var Redis=require('ioredis');var authService=require(_0xc2e5('0x12'));var qs=require(_0xc2e5('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xc2e5('0x14'));var logger=require(_0xc2e5('0x15'))('api');var utils=require('../../config/utils');var config=require(_0xc2e5('0x16'));var db=require(_0xc2e5('0x17'))['db'];function respondWithStatusCode(_0x37b7ff,_0xed3a4f){_0xed3a4f=_0xed3a4f||0xcc;return function(_0x20543f){if(_0x20543f){return _0x37b7ff[_0xc2e5('0x18')](_0xed3a4f);}return _0x37b7ff[_0xc2e5('0x19')](_0xed3a4f)['end']();};}function respondWithResult(_0x510733,_0x16ee51){_0x16ee51=_0x16ee51||0xc8;return function(_0x34112a){if(_0x34112a){return _0x510733[_0xc2e5('0x19')](_0x16ee51)[_0xc2e5('0x1a')](_0x34112a);}};}function respondWithFilteredResult(_0x539922,_0x5177a3){return function(_0x4ad59f){if(_0x4ad59f){var _0x653f6c=_0x4ad59f[_0xc2e5('0x1b')],_0x1847b3=_0x5177a3[_0xc2e5('0x1c')],_0x509eec=_0x5177a3['offset']+_0x5177a3[_0xc2e5('0x1d')],_0x8c0647;if(_0x509eec>=_0x653f6c){_0x509eec=_0x653f6c;_0x8c0647=0xc8;}else{_0x8c0647=0xce;}_0x539922[_0xc2e5('0x19')](_0x8c0647);return _0x539922[_0xc2e5('0x1e')](_0xc2e5('0x1f'),_0x1847b3+'-'+_0x509eec+'/'+_0x653f6c)['json'](_0x4ad59f);}return null;};}function patchUpdates(_0x15ec3e){return function(_0x355014){try{jsonpatch['apply'](_0x355014,_0x15ec3e,!![]);}catch(_0x13a0e5){return BPromise[_0xc2e5('0x20')](_0x13a0e5);}return _0x355014[_0xc2e5('0x21')]();};}function saveUpdates(_0x24dfc2,_0xfda1be){return function(_0x59a2ab){if(_0x59a2ab){return _0x59a2ab[_0xc2e5('0x22')](_0x24dfc2)[_0xc2e5('0x23')](function(_0x69f838){return _0x69f838;});}return null;};}function removeEntity(_0x23ca64,_0xcee2d2){return function(_0x264eba){if(_0x264eba){return _0x264eba['destroy']()[_0xc2e5('0x23')](function(){_0x23ca64[_0xc2e5('0x19')](0xcc)[_0xc2e5('0x24')]();});}};}function handleEntityNotFound(_0x3b3deb,_0x54dba3){return function(_0xc1fd1f){if(!_0xc1fd1f){_0x3b3deb[_0xc2e5('0x18')](0x194);}return _0xc1fd1f;};}function handleError(_0x326faf,_0x30eb1c){_0x30eb1c=_0x30eb1c||0x1f4;return function(_0x2f4c5b){logger[_0xc2e5('0x25')](_0x2f4c5b[_0xc2e5('0x26')]);if(_0x2f4c5b[_0xc2e5('0x27')]){delete _0x2f4c5b[_0xc2e5('0x27')];}_0x326faf[_0xc2e5('0x19')](_0x30eb1c)['send'](_0x2f4c5b);};}exports['index']=function(_0x16fb0f,_0x21de54){var _0x254f3d={},_0xd79af6={},_0x48fbfe={'count':0x0,'rows':[]};var _0x1d9ff5=_[_0xc2e5('0x28')](db[_0xc2e5('0x29')][_0xc2e5('0x2a')],function(_0x93f91f){return{'name':_0x93f91f[_0xc2e5('0x2b')],'type':_0x93f91f[_0xc2e5('0x2c')][_0xc2e5('0x2d')]};});_0xd79af6[_0xc2e5('0x2e')]=_['map'](_0x1d9ff5,_0xc2e5('0x27'));_0xd79af6[_0xc2e5('0x2f')]=_[_0xc2e5('0x30')](_0x16fb0f[_0xc2e5('0x2f')]);_0xd79af6[_0xc2e5('0x31')]=_[_0xc2e5('0x32')](_0xd79af6['model'],_0xd79af6[_0xc2e5('0x2f')]);_0x254f3d[_0xc2e5('0x33')]=_[_0xc2e5('0x32')](_0xd79af6[_0xc2e5('0x2e')],qs[_0xc2e5('0x34')](_0x16fb0f[_0xc2e5('0x2f')][_0xc2e5('0x34')]));_0x254f3d[_0xc2e5('0x33')]=_0x254f3d[_0xc2e5('0x33')]['length']?_0x254f3d['attributes']:_0xd79af6[_0xc2e5('0x2e')];if(!_0x16fb0f[_0xc2e5('0x2f')][_0xc2e5('0x35')](_0xc2e5('0x36'))){_0x254f3d[_0xc2e5('0x1d')]=qs[_0xc2e5('0x1d')](_0x16fb0f[_0xc2e5('0x2f')][_0xc2e5('0x1d')]);_0x254f3d[_0xc2e5('0x1c')]=qs[_0xc2e5('0x1c')](_0x16fb0f[_0xc2e5('0x2f')][_0xc2e5('0x1c')]);}_0x254f3d[_0xc2e5('0x37')]=qs['sort'](_0x16fb0f[_0xc2e5('0x2f')][_0xc2e5('0x38')]);_0x254f3d['where']=qs[_0xc2e5('0x31')](_[_0xc2e5('0x39')](_0x16fb0f[_0xc2e5('0x2f')],_0xd79af6[_0xc2e5('0x31')]),_0x1d9ff5);if(_0x16fb0f['query'][_0xc2e5('0x3a')]){_0x254f3d[_0xc2e5('0x3b')]=_[_0xc2e5('0x3c')](_0x254f3d[_0xc2e5('0x3b')],{'$or':_[_0xc2e5('0x28')](_0x1d9ff5,function(_0x2f37e3){if(_0x2f37e3[_0xc2e5('0x2c')]!==_0xc2e5('0x3d')){var _0x1df6db={};_0x1df6db[_0x2f37e3['name']]={'$like':'%'+_0x16fb0f[_0xc2e5('0x2f')][_0xc2e5('0x3a')]+'%'};return _0x1df6db;}})});}_0x254f3d=_['merge']({},_0x254f3d,_0x16fb0f['options']);var _0x176c8a={'where':_0x254f3d['where']};return db[_0xc2e5('0x29')][_0xc2e5('0x1b')](_0x176c8a)[_0xc2e5('0x23')](function(_0x1ac418){_0x48fbfe[_0xc2e5('0x1b')]=_0x1ac418;if(_0x16fb0f['query'][_0xc2e5('0x3e')]){_0x254f3d[_0xc2e5('0x3f')]=[{'all':!![]}];}return db[_0xc2e5('0x29')][_0xc2e5('0x40')](_0x254f3d);})[_0xc2e5('0x23')](function(_0x888745){_0x48fbfe['rows']=_0x888745;return _0x48fbfe;})[_0xc2e5('0x23')](respondWithFilteredResult(_0x21de54,_0x254f3d))[_0xc2e5('0x41')](handleError(_0x21de54,null));};exports[_0xc2e5('0x42')]=function(_0x1d30be,_0x1e4da1){var _0x323511={'raw':!![],'where':{'id':_0x1d30be[_0xc2e5('0x43')]['id']}},_0x4ed8ed={};_0x4ed8ed[_0xc2e5('0x2e')]=_[_0xc2e5('0x30')](db[_0xc2e5('0x29')][_0xc2e5('0x2a')]);_0x4ed8ed[_0xc2e5('0x2f')]=_['keys'](_0x1d30be[_0xc2e5('0x2f')]);_0x4ed8ed[_0xc2e5('0x31')]=_[_0xc2e5('0x32')](_0x4ed8ed[_0xc2e5('0x2e')],_0x4ed8ed['query']);_0x323511['attributes']=_[_0xc2e5('0x32')](_0x4ed8ed[_0xc2e5('0x2e')],qs[_0xc2e5('0x34')](_0x1d30be['query']['fields']));_0x323511[_0xc2e5('0x33')]=_0x323511[_0xc2e5('0x33')][_0xc2e5('0x44')]?_0x323511[_0xc2e5('0x33')]:_0x4ed8ed['model'];if(_0x1d30be[_0xc2e5('0x2f')][_0xc2e5('0x3e')]){_0x323511[_0xc2e5('0x3f')]=[{'all':!![]}];}_0x323511=_[_0xc2e5('0x3c')]({},_0x323511,_0x1d30be['options']);return db[_0xc2e5('0x29')][_0xc2e5('0x45')](_0x323511)['then'](handleEntityNotFound(_0x1e4da1,null))[_0xc2e5('0x23')](respondWithResult(_0x1e4da1,null))[_0xc2e5('0x41')](handleError(_0x1e4da1,null));};exports[_0xc2e5('0x46')]=function(_0x33ad64,_0xe97012){return db[_0xc2e5('0x29')][_0xc2e5('0x46')](_0x33ad64['body'],{})[_0xc2e5('0x23')](respondWithResult(_0xe97012,0xc9))['catch'](handleError(_0xe97012,null));};exports['update']=function(_0x28d810,_0x39859b){if(_0x28d810[_0xc2e5('0x47')]['id']){delete _0x28d810[_0xc2e5('0x47')]['id'];}return db[_0xc2e5('0x29')][_0xc2e5('0x45')]({'where':{'id':_0x28d810['params']['id']}})[_0xc2e5('0x23')](handleEntityNotFound(_0x39859b,null))[_0xc2e5('0x23')](saveUpdates(_0x28d810[_0xc2e5('0x47')],null))[_0xc2e5('0x23')](respondWithResult(_0x39859b,null))[_0xc2e5('0x41')](handleError(_0x39859b,null));};exports[_0xc2e5('0x48')]=function(_0x10c802,_0x5299a6){return db[_0xc2e5('0x29')][_0xc2e5('0x45')]({'where':{'id':_0x10c802[_0xc2e5('0x43')]['id']}})[_0xc2e5('0x23')](handleEntityNotFound(_0x5299a6,null))['then'](removeEntity(_0x5299a6,null))[_0xc2e5('0x41')](handleError(_0x5299a6,null));};exports[_0xc2e5('0x49')]=function(_0x146445,_0xe5db6b){return db[_0xc2e5('0x29')]['describe']()['then'](respondWithResult(_0xe5db6b,null))[_0xc2e5('0x41')](handleError(_0xe5db6b,null));};
\ No newline at end of file
+var _0x29aa=['../../config/license/util','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','reject','save','destroy','name','send','map','OpenchannelTransferReport','fieldName','type','key','model','keys','query','filters','intersection','fields','attributes','length','nolimit','order','sort','where','pick','filter','merge','then','includeAll','include','findAll','params','rawAttributes','find','catch','create','body','describe','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','squel','querystring','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils'];(function(_0x51b268,_0x309e0c){var _0x310e92=function(_0x3972e8){while(--_0x3972e8){_0x51b268['push'](_0x51b268['shift']());}};_0x310e92(++_0x309e0c);}(_0x29aa,0xb3));var _0xa29a=function(_0x2022ec,_0x45fed6){_0x2022ec=_0x2022ec-0x0;var _0x54a877=_0x29aa[_0x2022ec];return _0x54a877;};'use strict';var emlformat=require(_0xa29a('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xa29a('0x1'));var jsonpatch=require(_0xa29a('0x2'));var rp=require(_0xa29a('0x3'));var moment=require('moment');var BPromise=require(_0xa29a('0x4'));var Mustache=require(_0xa29a('0x5'));var util=require(_0xa29a('0x6'));var path=require(_0xa29a('0x7'));var sox=require(_0xa29a('0x8'));var csv=require(_0xa29a('0x9'));var ejs=require(_0xa29a('0xa'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0xa29a('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0xa29a('0x9'));var querystring=require(_0xa29a('0xc'));var Papa=require(_0xa29a('0xd'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xa29a('0xe'));var as=require(_0xa29a('0xf'));var hardwareService=require(_0xa29a('0x10'));var logger=require('../../config/logger')(_0xa29a('0x11'));var utils=require(_0xa29a('0x12'));var config=require('../../config/environment');var licenseUtil=require(_0xa29a('0x13'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x59e506,_0x526b81){_0x526b81=_0x526b81||0xcc;return function(_0x40625e){if(_0x40625e){return _0x59e506[_0xa29a('0x14')](_0x526b81);}return _0x59e506[_0xa29a('0x15')](_0x526b81)[_0xa29a('0x16')]();};}function respondWithResult(_0x5a6c40,_0x3d13dd){_0x3d13dd=_0x3d13dd||0xc8;return function(_0x8bce6){if(_0x8bce6){return _0x5a6c40[_0xa29a('0x15')](_0x3d13dd)[_0xa29a('0x17')](_0x8bce6);}};}function respondWithFilteredResult(_0x3e3f9a,_0x1ca33a){return function(_0x5cd224){if(_0x5cd224){var _0x38437b=typeof _0x1ca33a[_0xa29a('0x18')]===_0xa29a('0x19')&&typeof _0x1ca33a[_0xa29a('0x1a')]===_0xa29a('0x19');var _0x2ebbb0=_0x5cd224[_0xa29a('0x1b')];var _0x3b5b7b=_0x38437b?0x0:_0x1ca33a[_0xa29a('0x18')];var _0x4a6524=_0x38437b?_0x5cd224[_0xa29a('0x1b')]:_0x1ca33a['offset']+_0x1ca33a['limit'];var _0x1807c0;if(_0x4a6524>=_0x2ebbb0){_0x4a6524=_0x2ebbb0;_0x1807c0=0xc8;}else{_0x1807c0=0xce;}_0x3e3f9a[_0xa29a('0x15')](_0x1807c0);return _0x3e3f9a[_0xa29a('0x1c')](_0xa29a('0x1d'),_0x3b5b7b+'-'+_0x4a6524+'/'+_0x2ebbb0)[_0xa29a('0x17')](_0x5cd224);}return null;};}function patchUpdates(_0xae19d8){return function(_0x4e739c){try{jsonpatch['apply'](_0x4e739c,_0xae19d8,!![]);}catch(_0x44473b){return BPromise[_0xa29a('0x1e')](_0x44473b);}return _0x4e739c[_0xa29a('0x1f')]();};}function saveUpdates(_0x1ca3f7,_0xc8dad4){return function(_0xe8752e){if(_0xe8752e){return _0xe8752e['update'](_0x1ca3f7)['then'](function(_0x51987a){return _0x51987a;});}return null;};}function removeEntity(_0xe1337e,_0x525ac7){return function(_0x452889){if(_0x452889){return _0x452889[_0xa29a('0x20')]()['then'](function(){_0xe1337e[_0xa29a('0x15')](0xcc)[_0xa29a('0x16')]();});}};}function handleEntityNotFound(_0x4b2e18,_0x1bd142){return function(_0x577fac){if(!_0x577fac){_0x4b2e18[_0xa29a('0x14')](0x194);}return _0x577fac;};}function handleError(_0x48027d,_0x458ca7){_0x458ca7=_0x458ca7||0x1f4;return function(_0x4e4f39){logger['error'](_0x4e4f39['stack']);if(_0x4e4f39[_0xa29a('0x21')]){delete _0x4e4f39[_0xa29a('0x21')];}_0x48027d[_0xa29a('0x15')](_0x458ca7)[_0xa29a('0x22')](_0x4e4f39);};}exports['index']=function(_0x3de20f,_0x27f9c8){var _0x3a1a3a={},_0xe6a6e5={},_0x5dda9d={'count':0x0,'rows':[]};var _0x409fac=_[_0xa29a('0x23')](db[_0xa29a('0x24')]['rawAttributes'],function(_0x48ef8f){return{'name':_0x48ef8f[_0xa29a('0x25')],'type':_0x48ef8f[_0xa29a('0x26')][_0xa29a('0x27')]};});_0xe6a6e5[_0xa29a('0x28')]=_[_0xa29a('0x23')](_0x409fac,'name');_0xe6a6e5['query']=_[_0xa29a('0x29')](_0x3de20f[_0xa29a('0x2a')]);_0xe6a6e5[_0xa29a('0x2b')]=_[_0xa29a('0x2c')](_0xe6a6e5[_0xa29a('0x28')],_0xe6a6e5['query']);_0x3a1a3a['attributes']=_[_0xa29a('0x2c')](_0xe6a6e5[_0xa29a('0x28')],qs[_0xa29a('0x2d')](_0x3de20f[_0xa29a('0x2a')][_0xa29a('0x2d')]));_0x3a1a3a[_0xa29a('0x2e')]=_0x3a1a3a[_0xa29a('0x2e')][_0xa29a('0x2f')]?_0x3a1a3a['attributes']:_0xe6a6e5[_0xa29a('0x28')];if(!_0x3de20f[_0xa29a('0x2a')]['hasOwnProperty'](_0xa29a('0x30'))){_0x3a1a3a[_0xa29a('0x1a')]=qs[_0xa29a('0x1a')](_0x3de20f[_0xa29a('0x2a')][_0xa29a('0x1a')]);_0x3a1a3a[_0xa29a('0x18')]=qs[_0xa29a('0x18')](_0x3de20f[_0xa29a('0x2a')][_0xa29a('0x18')]);}_0x3a1a3a[_0xa29a('0x31')]=qs[_0xa29a('0x32')](_0x3de20f['query'][_0xa29a('0x32')]);_0x3a1a3a[_0xa29a('0x33')]=qs['filters'](_[_0xa29a('0x34')](_0x3de20f[_0xa29a('0x2a')],_0xe6a6e5[_0xa29a('0x2b')]),_0x409fac);if(_0x3de20f[_0xa29a('0x2a')][_0xa29a('0x35')]){_0x3a1a3a[_0xa29a('0x33')]=_[_0xa29a('0x36')](_0x3a1a3a[_0xa29a('0x33')],{'$or':_['map'](_0x409fac,function(_0x2ee16c){if(_0x2ee16c[_0xa29a('0x26')]!=='VIRTUAL'){var _0x3403b8={};_0x3403b8[_0x2ee16c['name']]={'$like':'%'+_0x3de20f['query'][_0xa29a('0x35')]+'%'};return _0x3403b8;}})});}_0x3a1a3a=_[_0xa29a('0x36')]({},_0x3a1a3a,_0x3de20f['options']);var _0x42dc85={'where':_0x3a1a3a[_0xa29a('0x33')]};return db['OpenchannelTransferReport'][_0xa29a('0x1b')](_0x42dc85)[_0xa29a('0x37')](function(_0x5499fc){_0x5dda9d[_0xa29a('0x1b')]=_0x5499fc;if(_0x3de20f['query'][_0xa29a('0x38')]){_0x3a1a3a[_0xa29a('0x39')]=[{'all':!![]}];}return db[_0xa29a('0x24')][_0xa29a('0x3a')](_0x3a1a3a);})[_0xa29a('0x37')](function(_0x239ee0){_0x5dda9d['rows']=_0x239ee0;return _0x5dda9d;})[_0xa29a('0x37')](respondWithFilteredResult(_0x27f9c8,_0x3a1a3a))['catch'](handleError(_0x27f9c8,null));};exports['show']=function(_0x5c62cc,_0x4f6a2d){var _0x121d62={'raw':!![],'where':{'id':_0x5c62cc[_0xa29a('0x3b')]['id']}},_0x3cb76e={};_0x3cb76e[_0xa29a('0x28')]=_[_0xa29a('0x29')](db['OpenchannelTransferReport'][_0xa29a('0x3c')]);_0x3cb76e[_0xa29a('0x2a')]=_[_0xa29a('0x29')](_0x5c62cc[_0xa29a('0x2a')]);_0x3cb76e[_0xa29a('0x2b')]=_[_0xa29a('0x2c')](_0x3cb76e[_0xa29a('0x28')],_0x3cb76e['query']);_0x121d62[_0xa29a('0x2e')]=_[_0xa29a('0x2c')](_0x3cb76e[_0xa29a('0x28')],qs[_0xa29a('0x2d')](_0x5c62cc[_0xa29a('0x2a')][_0xa29a('0x2d')]));_0x121d62[_0xa29a('0x2e')]=_0x121d62[_0xa29a('0x2e')][_0xa29a('0x2f')]?_0x121d62[_0xa29a('0x2e')]:_0x3cb76e['model'];if(_0x5c62cc['query']['includeAll']){_0x121d62[_0xa29a('0x39')]=[{'all':!![]}];}_0x121d62=_[_0xa29a('0x36')]({},_0x121d62,_0x5c62cc['options']);return db[_0xa29a('0x24')][_0xa29a('0x3d')](_0x121d62)['then'](handleEntityNotFound(_0x4f6a2d,null))[_0xa29a('0x37')](respondWithResult(_0x4f6a2d,null))[_0xa29a('0x3e')](handleError(_0x4f6a2d,null));};exports[_0xa29a('0x3f')]=function(_0x1c0c83,_0x25d4e6){return db[_0xa29a('0x24')][_0xa29a('0x3f')](_0x1c0c83[_0xa29a('0x40')],{})['then'](respondWithResult(_0x25d4e6,0xc9))[_0xa29a('0x3e')](handleError(_0x25d4e6,null));};exports['update']=function(_0x24f2d7,_0x57c39c){if(_0x24f2d7[_0xa29a('0x40')]['id']){delete _0x24f2d7[_0xa29a('0x40')]['id'];}return db['OpenchannelTransferReport'][_0xa29a('0x3d')]({'where':{'id':_0x24f2d7[_0xa29a('0x3b')]['id']}})[_0xa29a('0x37')](handleEntityNotFound(_0x57c39c,null))[_0xa29a('0x37')](saveUpdates(_0x24f2d7[_0xa29a('0x40')],null))[_0xa29a('0x37')](respondWithResult(_0x57c39c,null))[_0xa29a('0x3e')](handleError(_0x57c39c,null));};exports['destroy']=function(_0x18f3bb,_0x2080a1){return db[_0xa29a('0x24')][_0xa29a('0x3d')]({'where':{'id':_0x18f3bb[_0xa29a('0x3b')]['id']}})['then'](handleEntityNotFound(_0x2080a1,null))[_0xa29a('0x37')](removeEntity(_0x2080a1,null))[_0xa29a('0x3e')](handleError(_0x2080a1,null));};exports[_0xa29a('0x41')]=function(_0x1b73bf,_0x4b7c74){return db[_0xa29a('0x24')]['describe']()[_0xa29a('0x37')](respondWithResult(_0x4b7c74,null))[_0xa29a('0x3e')](handleError(_0x4b7c74,null));};
\ No newline at end of file