Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index af44e29..1938e4d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xabc0=['status','offset','undefined','limit','count','Content-Range','json','reject','save','update','then','destroy','error','stack','name','send','index','OpenchannelTransferReport','fieldName','type','key','model','keys','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','sort','where','pick','merge','map','VIRTUAL','filter','options','include','findAll','rows','show','params','rawAttributes','includeAll','find','create','body','catch','describe','eml-format','rimraf','zip-dir','request-promise','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','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus'];(function(_0xbdf50f,_0x277212){var _0x214d84=function(_0x3b173e){while(--_0x3b173e){_0xbdf50f['push'](_0xbdf50f['shift']());}};_0x214d84(++_0x277212);}(_0xabc0,0x17b));var _0x0abc=function(_0x2b07a0,_0x4e6f3e){_0x2b07a0=_0x2b07a0-0x0;var _0x347209=_0xabc0[_0x2b07a0];return _0x347209;};'use strict';var emlformat=require(_0x0abc('0x0'));var rimraf=require(_0x0abc('0x1'));var zipdir=require(_0x0abc('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x0abc('0x3'));var moment=require(_0x0abc('0x4'));var BPromise=require(_0x0abc('0x5'));var Mustache=require(_0x0abc('0x6'));var util=require(_0x0abc('0x7'));var path=require(_0x0abc('0x8'));var sox=require(_0x0abc('0x9'));var csv=require(_0x0abc('0xa'));var ejs=require(_0x0abc('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x0abc('0xc'));var squel=require(_0x0abc('0xd'));var crypto=require(_0x0abc('0xe'));var jsforce=require(_0x0abc('0xf'));var deskjs=require(_0x0abc('0x10'));var toCsv=require('to-csv');var querystring=require(_0x0abc('0x11'));var Papa=require(_0x0abc('0x12'));var Redis=require(_0x0abc('0x13'));var authService=require(_0x0abc('0x14'));var qs=require(_0x0abc('0x15'));var as=require(_0x0abc('0x16'));var hardwareService=require(_0x0abc('0x17'));var logger=require(_0x0abc('0x18'))(_0x0abc('0x19'));var utils=require(_0x0abc('0x1a'));var config=require(_0x0abc('0x1b'));var licenseUtil=require(_0x0abc('0x1c'));var db=require(_0x0abc('0x1d'))['db'];function respondWithStatusCode(_0x29799c,_0x1e76d3){_0x1e76d3=_0x1e76d3||0xcc;return function(_0x52a58a){if(_0x52a58a){return _0x29799c[_0x0abc('0x1e')](_0x1e76d3);}return _0x29799c[_0x0abc('0x1f')](_0x1e76d3)['end']();};}function respondWithResult(_0x253094,_0xd18dbb){_0xd18dbb=_0xd18dbb||0xc8;return function(_0x2bcc8b){if(_0x2bcc8b){return _0x253094[_0x0abc('0x1f')](_0xd18dbb)['json'](_0x2bcc8b);}};}function respondWithFilteredResult(_0x3ea0de,_0x37d746){return function(_0x3bf264){if(_0x3bf264){var _0x53d0f1=typeof _0x37d746[_0x0abc('0x20')]===_0x0abc('0x21')&&typeof _0x37d746[_0x0abc('0x22')]===_0x0abc('0x21');var _0xb0852a=_0x3bf264['count'];var _0x56beae=_0x53d0f1?0x0:_0x37d746[_0x0abc('0x20')];var _0x2b2a48=_0x53d0f1?_0x3bf264[_0x0abc('0x23')]:_0x37d746['offset']+_0x37d746['limit'];var _0x1c2ae3;if(_0x2b2a48>=_0xb0852a){_0x2b2a48=_0xb0852a;_0x1c2ae3=0xc8;}else{_0x1c2ae3=0xce;}_0x3ea0de[_0x0abc('0x1f')](_0x1c2ae3);return _0x3ea0de['set'](_0x0abc('0x24'),_0x56beae+'-'+_0x2b2a48+'/'+_0xb0852a)[_0x0abc('0x25')](_0x3bf264);}return null;};}function patchUpdates(_0x5c88d2){return function(_0x2c7da0){try{jsonpatch['apply'](_0x2c7da0,_0x5c88d2,!![]);}catch(_0x9f143f){return BPromise[_0x0abc('0x26')](_0x9f143f);}return _0x2c7da0[_0x0abc('0x27')]();};}function saveUpdates(_0x306f6c,_0x2906a4){return function(_0xd6d2f1){if(_0xd6d2f1){return _0xd6d2f1[_0x0abc('0x28')](_0x306f6c)[_0x0abc('0x29')](function(_0x337c10){return _0x337c10;});}return null;};}function removeEntity(_0x3ead19,_0x45ff3d){return function(_0x4259dd){if(_0x4259dd){return _0x4259dd[_0x0abc('0x2a')]()['then'](function(){_0x3ead19[_0x0abc('0x1f')](0xcc)['end']();});}};}function handleEntityNotFound(_0x3a5a70,_0x19f09f){return function(_0x459d71){if(!_0x459d71){_0x3a5a70[_0x0abc('0x1e')](0x194);}return _0x459d71;};}function handleError(_0x4b2172,_0x438ad5){_0x438ad5=_0x438ad5||0x1f4;return function(_0x247270){logger[_0x0abc('0x2b')](_0x247270[_0x0abc('0x2c')]);if(_0x247270['name']){delete _0x247270[_0x0abc('0x2d')];}_0x4b2172[_0x0abc('0x1f')](_0x438ad5)[_0x0abc('0x2e')](_0x247270);};}exports[_0x0abc('0x2f')]=function(_0x2f97f3,_0x3daa91){var _0x34a8c0={},_0x5b4bf0={},_0x551e81={'count':0x0,'rows':[]};var _0x38c13f=_['map'](db[_0x0abc('0x30')]['rawAttributes'],function(_0x3cddd3){return{'name':_0x3cddd3[_0x0abc('0x31')],'type':_0x3cddd3[_0x0abc('0x32')][_0x0abc('0x33')]};});_0x5b4bf0[_0x0abc('0x34')]=_['map'](_0x38c13f,_0x0abc('0x2d'));_0x5b4bf0['query']=_[_0x0abc('0x35')](_0x2f97f3[_0x0abc('0x36')]);_0x5b4bf0[_0x0abc('0x37')]=_[_0x0abc('0x38')](_0x5b4bf0[_0x0abc('0x34')],_0x5b4bf0[_0x0abc('0x36')]);_0x34a8c0['attributes']=_['intersection'](_0x5b4bf0[_0x0abc('0x34')],qs[_0x0abc('0x39')](_0x2f97f3[_0x0abc('0x36')][_0x0abc('0x39')]));_0x34a8c0[_0x0abc('0x3a')]=_0x34a8c0[_0x0abc('0x3a')][_0x0abc('0x3b')]?_0x34a8c0[_0x0abc('0x3a')]:_0x5b4bf0[_0x0abc('0x34')];if(!_0x2f97f3[_0x0abc('0x36')][_0x0abc('0x3c')](_0x0abc('0x3d'))){_0x34a8c0['limit']=qs['limit'](_0x2f97f3['query'][_0x0abc('0x22')]);_0x34a8c0['offset']=qs[_0x0abc('0x20')](_0x2f97f3[_0x0abc('0x36')][_0x0abc('0x20')]);}_0x34a8c0['order']=qs[_0x0abc('0x3e')](_0x2f97f3[_0x0abc('0x36')][_0x0abc('0x3e')]);_0x34a8c0[_0x0abc('0x3f')]=qs[_0x0abc('0x37')](_[_0x0abc('0x40')](_0x2f97f3['query'],_0x5b4bf0['filters']),_0x38c13f);if(_0x2f97f3[_0x0abc('0x36')]['filter']){_0x34a8c0[_0x0abc('0x3f')]=_[_0x0abc('0x41')](_0x34a8c0[_0x0abc('0x3f')],{'$or':_[_0x0abc('0x42')](_0x38c13f,function(_0x52cacf){if(_0x52cacf[_0x0abc('0x32')]!==_0x0abc('0x43')){var _0x586e44={};_0x586e44[_0x52cacf[_0x0abc('0x2d')]]={'$like':'%'+_0x2f97f3[_0x0abc('0x36')][_0x0abc('0x44')]+'%'};return _0x586e44;}})});}_0x34a8c0=_['merge']({},_0x34a8c0,_0x2f97f3[_0x0abc('0x45')]);var _0x14783f={'where':_0x34a8c0[_0x0abc('0x3f')]};return db['OpenchannelTransferReport'][_0x0abc('0x23')](_0x14783f)[_0x0abc('0x29')](function(_0x4a260a){_0x551e81['count']=_0x4a260a;if(_0x2f97f3['query']['includeAll']){_0x34a8c0[_0x0abc('0x46')]=[{'all':!![]}];}return db[_0x0abc('0x30')][_0x0abc('0x47')](_0x34a8c0);})[_0x0abc('0x29')](function(_0x1b95a5){_0x551e81[_0x0abc('0x48')]=_0x1b95a5;return _0x551e81;})['then'](respondWithFilteredResult(_0x3daa91,_0x34a8c0))['catch'](handleError(_0x3daa91,null));};exports[_0x0abc('0x49')]=function(_0x5ed0a5,_0x4f6159){var _0x16d4ac={'raw':!![],'where':{'id':_0x5ed0a5[_0x0abc('0x4a')]['id']}},_0x5a6e6e={};_0x5a6e6e[_0x0abc('0x34')]=_[_0x0abc('0x35')](db['OpenchannelTransferReport'][_0x0abc('0x4b')]);_0x5a6e6e[_0x0abc('0x36')]=_[_0x0abc('0x35')](_0x5ed0a5['query']);_0x5a6e6e[_0x0abc('0x37')]=_['intersection'](_0x5a6e6e[_0x0abc('0x34')],_0x5a6e6e[_0x0abc('0x36')]);_0x16d4ac['attributes']=_['intersection'](_0x5a6e6e[_0x0abc('0x34')],qs[_0x0abc('0x39')](_0x5ed0a5['query'][_0x0abc('0x39')]));_0x16d4ac[_0x0abc('0x3a')]=_0x16d4ac[_0x0abc('0x3a')][_0x0abc('0x3b')]?_0x16d4ac[_0x0abc('0x3a')]:_0x5a6e6e[_0x0abc('0x34')];if(_0x5ed0a5[_0x0abc('0x36')][_0x0abc('0x4c')]){_0x16d4ac['include']=[{'all':!![]}];}_0x16d4ac=_['merge']({},_0x16d4ac,_0x5ed0a5[_0x0abc('0x45')]);return db[_0x0abc('0x30')][_0x0abc('0x4d')](_0x16d4ac)[_0x0abc('0x29')](handleEntityNotFound(_0x4f6159,null))[_0x0abc('0x29')](respondWithResult(_0x4f6159,null))['catch'](handleError(_0x4f6159,null));};exports[_0x0abc('0x4e')]=function(_0x2e934d,_0x995a65){return db['OpenchannelTransferReport'][_0x0abc('0x4e')](_0x2e934d[_0x0abc('0x4f')],{})[_0x0abc('0x29')](respondWithResult(_0x995a65,0xc9))[_0x0abc('0x50')](handleError(_0x995a65,null));};exports[_0x0abc('0x28')]=function(_0x4e5689,_0x21f7cd){if(_0x4e5689['body']['id']){delete _0x4e5689['body']['id'];}return db[_0x0abc('0x30')]['find']({'where':{'id':_0x4e5689['params']['id']}})[_0x0abc('0x29')](handleEntityNotFound(_0x21f7cd,null))[_0x0abc('0x29')](saveUpdates(_0x4e5689['body'],null))['then'](respondWithResult(_0x21f7cd,null))[_0x0abc('0x50')](handleError(_0x21f7cd,null));};exports[_0x0abc('0x2a')]=function(_0x2e9978,_0x4ecc3d){return db[_0x0abc('0x30')]['find']({'where':{'id':_0x2e9978[_0x0abc('0x4a')]['id']}})['then'](handleEntityNotFound(_0x4ecc3d,null))[_0x0abc('0x29')](removeEntity(_0x4ecc3d,null))[_0x0abc('0x50')](handleError(_0x4ecc3d,null));};exports['describe']=function(_0x5edd91,_0x20df4e){return db[_0x0abc('0x30')][_0x0abc('0x51')]()[_0x0abc('0x29')](respondWithResult(_0x20df4e,null))[_0x0abc('0x50')](handleError(_0x20df4e,null));};
\ No newline at end of file