Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index aeaf385..c0336db 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2f4b=['../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','offset','undefined','count','limit','Content-Range','json','reject','save','then','error','stack','name','send','index','map','fieldName','type','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','merge','filter','options','include','findAll','catch','OpenchannelTransferReport','rawAttributes','includeAll','find','create','body','params','destroy','describe','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','desk.js','../../components/parsers/qs','../../config/license/hardware'];(function(_0x53199f,_0x1dac3a){var _0x1f9609=function(_0x452065){while(--_0x452065){_0x53199f['push'](_0x53199f['shift']());}};_0x1f9609(++_0x1dac3a);}(_0x2f4b,0x1df));var _0xb2f4=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x2f4b[_0x17d9e3];return _0x14192d;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0xb2f4('0x0'));var jsonpatch=require(_0xb2f4('0x1'));var rp=require(_0xb2f4('0x2'));var moment=require(_0xb2f4('0x3'));var BPromise=require(_0xb2f4('0x4'));var Mustache=require(_0xb2f4('0x5'));var util=require(_0xb2f4('0x6'));var path=require(_0xb2f4('0x7'));var sox=require(_0xb2f4('0x8'));var csv=require(_0xb2f4('0x9'));var ejs=require(_0xb2f4('0xa'));var fs=require('fs');var fs_extra=require(_0xb2f4('0xb'));var _=require(_0xb2f4('0xc'));var squel=require(_0xb2f4('0xd'));var crypto=require('crypto');var jsforce=require(_0xb2f4('0xe'));var deskjs=require(_0xb2f4('0xf'));var toCsv=require(_0xb2f4('0x9'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xb2f4('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xb2f4('0x11'));var logger=require(_0xb2f4('0x12'))(_0xb2f4('0x13'));var utils=require('../../config/utils');var config=require(_0xb2f4('0x14'));var licenseUtil=require(_0xb2f4('0x15'));var db=require(_0xb2f4('0x16'))['db'];function respondWithStatusCode(_0x3600e9,_0x1df541){_0x1df541=_0x1df541||0xcc;return function(_0x337cb6){if(_0x337cb6){return _0x3600e9[_0xb2f4('0x17')](_0x1df541);}return _0x3600e9['status'](_0x1df541)[_0xb2f4('0x18')]();};}function respondWithResult(_0x130668,_0x1a46f9){_0x1a46f9=_0x1a46f9||0xc8;return function(_0x45671e){if(_0x45671e){return _0x130668[_0xb2f4('0x19')](_0x1a46f9)['json'](_0x45671e);}};}function respondWithFilteredResult(_0x4b29ce,_0x56f45d){return function(_0x5101f6){if(_0x5101f6){var _0x50c2fa=typeof _0x56f45d[_0xb2f4('0x1a')]===_0xb2f4('0x1b')&&typeof _0x56f45d['limit']===_0xb2f4('0x1b');var _0x3ec162=_0x5101f6[_0xb2f4('0x1c')];var _0x1815af=_0x50c2fa?0x0:_0x56f45d[_0xb2f4('0x1a')];var _0x37bcea=_0x50c2fa?_0x5101f6[_0xb2f4('0x1c')]:_0x56f45d[_0xb2f4('0x1a')]+_0x56f45d[_0xb2f4('0x1d')];var _0x2751fe;if(_0x37bcea>=_0x3ec162){_0x37bcea=_0x3ec162;_0x2751fe=0xc8;}else{_0x2751fe=0xce;}_0x4b29ce['status'](_0x2751fe);return _0x4b29ce['set'](_0xb2f4('0x1e'),_0x1815af+'-'+_0x37bcea+'/'+_0x3ec162)[_0xb2f4('0x1f')](_0x5101f6);}return null;};}function patchUpdates(_0x1fc001){return function(_0x37c39a){try{jsonpatch['apply'](_0x37c39a,_0x1fc001,!![]);}catch(_0x4993b9){return BPromise[_0xb2f4('0x20')](_0x4993b9);}return _0x37c39a[_0xb2f4('0x21')]();};}function saveUpdates(_0x5e5239,_0x2ae282){return function(_0xd1f9c4){if(_0xd1f9c4){return _0xd1f9c4['update'](_0x5e5239)[_0xb2f4('0x22')](function(_0x3674e9){return _0x3674e9;});}return null;};}function removeEntity(_0x221418,_0x1458e6){return function(_0x24069f){if(_0x24069f){return _0x24069f['destroy']()[_0xb2f4('0x22')](function(){_0x221418[_0xb2f4('0x19')](0xcc)[_0xb2f4('0x18')]();});}};}function handleEntityNotFound(_0x515407,_0x35d75f){return function(_0x2f446d){if(!_0x2f446d){_0x515407[_0xb2f4('0x17')](0x194);}return _0x2f446d;};}function handleError(_0x5f08ad,_0x17f663){_0x17f663=_0x17f663||0x1f4;return function(_0x36af95){logger[_0xb2f4('0x23')](_0x36af95[_0xb2f4('0x24')]);if(_0x36af95[_0xb2f4('0x25')]){delete _0x36af95[_0xb2f4('0x25')];}_0x5f08ad['status'](_0x17f663)[_0xb2f4('0x26')](_0x36af95);};}exports[_0xb2f4('0x27')]=function(_0x5cc12c,_0x16e972){var _0x4f6811={},_0x234a7e={},_0x3a6b34={'count':0x0,'rows':[]};var _0x1f74d5=_[_0xb2f4('0x28')](db['OpenchannelTransferReport']['rawAttributes'],function(_0x12b132){return{'name':_0x12b132[_0xb2f4('0x29')],'type':_0x12b132[_0xb2f4('0x2a')]['key']};});_0x234a7e[_0xb2f4('0x2b')]=_[_0xb2f4('0x28')](_0x1f74d5,_0xb2f4('0x25'));_0x234a7e[_0xb2f4('0x2c')]=_[_0xb2f4('0x2d')](_0x5cc12c['query']);_0x234a7e[_0xb2f4('0x2e')]=_[_0xb2f4('0x2f')](_0x234a7e[_0xb2f4('0x2b')],_0x234a7e[_0xb2f4('0x2c')]);_0x4f6811['attributes']=_[_0xb2f4('0x2f')](_0x234a7e[_0xb2f4('0x2b')],qs[_0xb2f4('0x30')](_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x30')]));_0x4f6811[_0xb2f4('0x31')]=_0x4f6811[_0xb2f4('0x31')][_0xb2f4('0x32')]?_0x4f6811[_0xb2f4('0x31')]:_0x234a7e[_0xb2f4('0x2b')];if(!_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x33')](_0xb2f4('0x34'))){_0x4f6811[_0xb2f4('0x1d')]=qs[_0xb2f4('0x1d')](_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x1d')]);_0x4f6811[_0xb2f4('0x1a')]=qs[_0xb2f4('0x1a')](_0x5cc12c['query'][_0xb2f4('0x1a')]);}_0x4f6811[_0xb2f4('0x35')]=qs[_0xb2f4('0x36')](_0x5cc12c[_0xb2f4('0x2c')]['sort']);_0x4f6811[_0xb2f4('0x37')]=qs['filters'](_['pick'](_0x5cc12c[_0xb2f4('0x2c')],_0x234a7e[_0xb2f4('0x2e')]),_0x1f74d5);if(_0x5cc12c[_0xb2f4('0x2c')]['filter']){_0x4f6811['where']=_[_0xb2f4('0x38')](_0x4f6811[_0xb2f4('0x37')],{'$or':_[_0xb2f4('0x28')](_0x1f74d5,function(_0x2351a1){if(_0x2351a1[_0xb2f4('0x2a')]!=='VIRTUAL'){var _0x54198a={};_0x54198a[_0x2351a1[_0xb2f4('0x25')]]={'$like':'%'+_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x39')]+'%'};return _0x54198a;}})});}_0x4f6811=_['merge']({},_0x4f6811,_0x5cc12c[_0xb2f4('0x3a')]);var _0xe72428={'where':_0x4f6811[_0xb2f4('0x37')]};return db['OpenchannelTransferReport'][_0xb2f4('0x1c')](_0xe72428)[_0xb2f4('0x22')](function(_0x2426e1){_0x3a6b34[_0xb2f4('0x1c')]=_0x2426e1;if(_0x5cc12c[_0xb2f4('0x2c')]['includeAll']){_0x4f6811[_0xb2f4('0x3b')]=[{'all':!![]}];}return db['OpenchannelTransferReport'][_0xb2f4('0x3c')](_0x4f6811);})[_0xb2f4('0x22')](function(_0x294f83){_0x3a6b34['rows']=_0x294f83;return _0x3a6b34;})[_0xb2f4('0x22')](respondWithFilteredResult(_0x16e972,_0x4f6811))[_0xb2f4('0x3d')](handleError(_0x16e972,null));};exports['show']=function(_0x38e02e,_0xd0312a){var _0x2a1838={'raw':!![],'where':{'id':_0x38e02e['params']['id']}},_0x1f5341={};_0x1f5341['model']=_[_0xb2f4('0x2d')](db[_0xb2f4('0x3e')][_0xb2f4('0x3f')]);_0x1f5341[_0xb2f4('0x2c')]=_[_0xb2f4('0x2d')](_0x38e02e['query']);_0x1f5341[_0xb2f4('0x2e')]=_[_0xb2f4('0x2f')](_0x1f5341[_0xb2f4('0x2b')],_0x1f5341[_0xb2f4('0x2c')]);_0x2a1838['attributes']=_[_0xb2f4('0x2f')](_0x1f5341[_0xb2f4('0x2b')],qs[_0xb2f4('0x30')](_0x38e02e['query'][_0xb2f4('0x30')]));_0x2a1838['attributes']=_0x2a1838[_0xb2f4('0x31')][_0xb2f4('0x32')]?_0x2a1838[_0xb2f4('0x31')]:_0x1f5341[_0xb2f4('0x2b')];if(_0x38e02e[_0xb2f4('0x2c')][_0xb2f4('0x40')]){_0x2a1838[_0xb2f4('0x3b')]=[{'all':!![]}];}_0x2a1838=_['merge']({},_0x2a1838,_0x38e02e['options']);return db['OpenchannelTransferReport'][_0xb2f4('0x41')](_0x2a1838)['then'](handleEntityNotFound(_0xd0312a,null))[_0xb2f4('0x22')](respondWithResult(_0xd0312a,null))[_0xb2f4('0x3d')](handleError(_0xd0312a,null));};exports[_0xb2f4('0x42')]=function(_0x289c1c,_0x554d4a){return db[_0xb2f4('0x3e')][_0xb2f4('0x42')](_0x289c1c[_0xb2f4('0x43')],{})[_0xb2f4('0x22')](respondWithResult(_0x554d4a,0xc9))[_0xb2f4('0x3d')](handleError(_0x554d4a,null));};exports['update']=function(_0x1dfbc9,_0x563796){if(_0x1dfbc9[_0xb2f4('0x43')]['id']){delete _0x1dfbc9[_0xb2f4('0x43')]['id'];}return db[_0xb2f4('0x3e')][_0xb2f4('0x41')]({'where':{'id':_0x1dfbc9[_0xb2f4('0x44')]['id']}})[_0xb2f4('0x22')](handleEntityNotFound(_0x563796,null))[_0xb2f4('0x22')](saveUpdates(_0x1dfbc9['body'],null))[_0xb2f4('0x22')](respondWithResult(_0x563796,null))[_0xb2f4('0x3d')](handleError(_0x563796,null));};exports[_0xb2f4('0x45')]=function(_0x22cc3c,_0x471370){return db[_0xb2f4('0x3e')][_0xb2f4('0x41')]({'where':{'id':_0x22cc3c[_0xb2f4('0x44')]['id']}})[_0xb2f4('0x22')](handleEntityNotFound(_0x471370,null))[_0xb2f4('0x22')](removeEntity(_0x471370,null))[_0xb2f4('0x3d')](handleError(_0x471370,null));};exports[_0xb2f4('0x46')]=function(_0x228e01,_0x2018fd){return db[_0xb2f4('0x3e')]['describe']()[_0xb2f4('0x22')](respondWithResult(_0x2018fd,null))[_0xb2f4('0x3d')](handleError(_0x2018fd,null));};
\ No newline at end of file
+var _0x0e1a=['count','limit','Content-Range','apply','update','destroy','then','end','stack','name','send','index','map','OpenchannelTransferReport','fieldName','key','model','query','filters','intersection','fields','attributes','length','nolimit','order','sort','where','filter','merge','type','options','includeAll','findAll','show','keys','rawAttributes','include','find','catch','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','path','lodash','crypto','jsforce','desk.js','to-csv','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','sendStatus','status','json','offset','undefined'];(function(_0x579674,_0x5a143d){var _0x17f68a=function(_0x5c9204){while(--_0x5c9204){_0x579674['push'](_0x579674['shift']());}};_0x17f68a(++_0x5a143d);}(_0x0e1a,0x1e1));var _0xa0e1=function(_0x91ec86,_0x3010f0){_0x91ec86=_0x91ec86-0x0;var _0x2ea58d=_0x0e1a[_0x91ec86];return _0x2ea58d;};'use strict';var emlformat=require(_0xa0e1('0x0'));var rimraf=require(_0xa0e1('0x1'));var zipdir=require(_0xa0e1('0x2'));var jsonpatch=require(_0xa0e1('0x3'));var rp=require('request-promise');var moment=require(_0xa0e1('0x4'));var BPromise=require(_0xa0e1('0x5'));var Mustache=require(_0xa0e1('0x6'));var util=require('util');var path=require(_0xa0e1('0x7'));var sox=require('sox');var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xa0e1('0x8'));var squel=require('squel');var crypto=require(_0xa0e1('0x9'));var jsforce=require(_0xa0e1('0xa'));var deskjs=require(_0xa0e1('0xb'));var toCsv=require(_0xa0e1('0xc'));var querystring=require(_0xa0e1('0xd'));var Papa=require(_0xa0e1('0xe'));var Redis=require(_0xa0e1('0xf'));var authService=require(_0xa0e1('0x10'));var qs=require(_0xa0e1('0x11'));var as=require(_0xa0e1('0x12'));var hardwareService=require(_0xa0e1('0x13'));var logger=require(_0xa0e1('0x14'))(_0xa0e1('0x15'));var utils=require(_0xa0e1('0x16'));var config=require(_0xa0e1('0x17'));var licenseUtil=require(_0xa0e1('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x30a83d,_0x3ab8e2){_0x3ab8e2=_0x3ab8e2||0xcc;return function(_0x4d89b7){if(_0x4d89b7){return _0x30a83d[_0xa0e1('0x19')](_0x3ab8e2);}return _0x30a83d[_0xa0e1('0x1a')](_0x3ab8e2)['end']();};}function respondWithResult(_0x128c7b,_0x42a10a){_0x42a10a=_0x42a10a||0xc8;return function(_0x25631b){if(_0x25631b){return _0x128c7b[_0xa0e1('0x1a')](_0x42a10a)[_0xa0e1('0x1b')](_0x25631b);}};}function respondWithFilteredResult(_0x46657c,_0x548e15){return function(_0x5cd3fd){if(_0x5cd3fd){var _0x589b5d=typeof _0x548e15[_0xa0e1('0x1c')]===_0xa0e1('0x1d')&&typeof _0x548e15['limit']==='undefined';var _0x2db350=_0x5cd3fd[_0xa0e1('0x1e')];var _0x5d5310=_0x589b5d?0x0:_0x548e15[_0xa0e1('0x1c')];var _0x4c6191=_0x589b5d?_0x5cd3fd[_0xa0e1('0x1e')]:_0x548e15[_0xa0e1('0x1c')]+_0x548e15[_0xa0e1('0x1f')];var _0x2a3ece;if(_0x4c6191>=_0x2db350){_0x4c6191=_0x2db350;_0x2a3ece=0xc8;}else{_0x2a3ece=0xce;}_0x46657c[_0xa0e1('0x1a')](_0x2a3ece);return _0x46657c['set'](_0xa0e1('0x20'),_0x5d5310+'-'+_0x4c6191+'/'+_0x2db350)[_0xa0e1('0x1b')](_0x5cd3fd);}return null;};}function patchUpdates(_0x4e4427){return function(_0x31268f){try{jsonpatch[_0xa0e1('0x21')](_0x31268f,_0x4e4427,!![]);}catch(_0x5f1bfa){return BPromise['reject'](_0x5f1bfa);}return _0x31268f['save']();};}function saveUpdates(_0x3a3cf3,_0x9703c){return function(_0x1c2566){if(_0x1c2566){return _0x1c2566[_0xa0e1('0x22')](_0x3a3cf3)['then'](function(_0x102020){return _0x102020;});}return null;};}function removeEntity(_0x4b6641,_0x2742e2){return function(_0x5ae46c){if(_0x5ae46c){return _0x5ae46c[_0xa0e1('0x23')]()[_0xa0e1('0x24')](function(){_0x4b6641[_0xa0e1('0x1a')](0xcc)[_0xa0e1('0x25')]();});}};}function handleEntityNotFound(_0x1bb1fc,_0x3de151){return function(_0x4b660b){if(!_0x4b660b){_0x1bb1fc[_0xa0e1('0x19')](0x194);}return _0x4b660b;};}function handleError(_0x5e571c,_0x2b26d3){_0x2b26d3=_0x2b26d3||0x1f4;return function(_0x3fb880){logger['error'](_0x3fb880[_0xa0e1('0x26')]);if(_0x3fb880['name']){delete _0x3fb880[_0xa0e1('0x27')];}_0x5e571c[_0xa0e1('0x1a')](_0x2b26d3)[_0xa0e1('0x28')](_0x3fb880);};}exports[_0xa0e1('0x29')]=function(_0x2f82dc,_0x258e89){var _0x11c686={},_0x18e24c={},_0x3adad8={'count':0x0,'rows':[]};var _0x60eb95=_[_0xa0e1('0x2a')](db[_0xa0e1('0x2b')]['rawAttributes'],function(_0x281d4c){return{'name':_0x281d4c[_0xa0e1('0x2c')],'type':_0x281d4c['type'][_0xa0e1('0x2d')]};});_0x18e24c[_0xa0e1('0x2e')]=_[_0xa0e1('0x2a')](_0x60eb95,_0xa0e1('0x27'));_0x18e24c['query']=_['keys'](_0x2f82dc[_0xa0e1('0x2f')]);_0x18e24c[_0xa0e1('0x30')]=_[_0xa0e1('0x31')](_0x18e24c[_0xa0e1('0x2e')],_0x18e24c[_0xa0e1('0x2f')]);_0x11c686['attributes']=_[_0xa0e1('0x31')](_0x18e24c['model'],qs[_0xa0e1('0x32')](_0x2f82dc[_0xa0e1('0x2f')][_0xa0e1('0x32')]));_0x11c686[_0xa0e1('0x33')]=_0x11c686[_0xa0e1('0x33')][_0xa0e1('0x34')]?_0x11c686['attributes']:_0x18e24c[_0xa0e1('0x2e')];if(!_0x2f82dc['query']['hasOwnProperty'](_0xa0e1('0x35'))){_0x11c686[_0xa0e1('0x1f')]=qs[_0xa0e1('0x1f')](_0x2f82dc['query'][_0xa0e1('0x1f')]);_0x11c686[_0xa0e1('0x1c')]=qs[_0xa0e1('0x1c')](_0x2f82dc[_0xa0e1('0x2f')]['offset']);}_0x11c686[_0xa0e1('0x36')]=qs['sort'](_0x2f82dc[_0xa0e1('0x2f')][_0xa0e1('0x37')]);_0x11c686[_0xa0e1('0x38')]=qs['filters'](_['pick'](_0x2f82dc['query'],_0x18e24c['filters']),_0x60eb95);if(_0x2f82dc[_0xa0e1('0x2f')][_0xa0e1('0x39')]){_0x11c686[_0xa0e1('0x38')]=_[_0xa0e1('0x3a')](_0x11c686['where'],{'$or':_['map'](_0x60eb95,function(_0x8b54ae){if(_0x8b54ae[_0xa0e1('0x3b')]!=='VIRTUAL'){var _0x378d3f={};_0x378d3f[_0x8b54ae['name']]={'$like':'%'+_0x2f82dc[_0xa0e1('0x2f')][_0xa0e1('0x39')]+'%'};return _0x378d3f;}})});}_0x11c686=_['merge']({},_0x11c686,_0x2f82dc[_0xa0e1('0x3c')]);var _0x9ee831={'where':_0x11c686['where']};return db[_0xa0e1('0x2b')][_0xa0e1('0x1e')](_0x9ee831)['then'](function(_0x3fb9fe){_0x3adad8[_0xa0e1('0x1e')]=_0x3fb9fe;if(_0x2f82dc[_0xa0e1('0x2f')][_0xa0e1('0x3d')]){_0x11c686['include']=[{'all':!![]}];}return db['OpenchannelTransferReport'][_0xa0e1('0x3e')](_0x11c686);})[_0xa0e1('0x24')](function(_0x385263){_0x3adad8['rows']=_0x385263;return _0x3adad8;})[_0xa0e1('0x24')](respondWithFilteredResult(_0x258e89,_0x11c686))['catch'](handleError(_0x258e89,null));};exports[_0xa0e1('0x3f')]=function(_0x1f2e37,_0x2d2b4c){var _0x8addac={'raw':!![],'where':{'id':_0x1f2e37['params']['id']}},_0x25bfd9={};_0x25bfd9[_0xa0e1('0x2e')]=_[_0xa0e1('0x40')](db[_0xa0e1('0x2b')][_0xa0e1('0x41')]);_0x25bfd9[_0xa0e1('0x2f')]=_[_0xa0e1('0x40')](_0x1f2e37[_0xa0e1('0x2f')]);_0x25bfd9['filters']=_[_0xa0e1('0x31')](_0x25bfd9[_0xa0e1('0x2e')],_0x25bfd9[_0xa0e1('0x2f')]);_0x8addac[_0xa0e1('0x33')]=_[_0xa0e1('0x31')](_0x25bfd9[_0xa0e1('0x2e')],qs[_0xa0e1('0x32')](_0x1f2e37[_0xa0e1('0x2f')]['fields']));_0x8addac[_0xa0e1('0x33')]=_0x8addac[_0xa0e1('0x33')][_0xa0e1('0x34')]?_0x8addac[_0xa0e1('0x33')]:_0x25bfd9['model'];if(_0x1f2e37[_0xa0e1('0x2f')][_0xa0e1('0x3d')]){_0x8addac[_0xa0e1('0x42')]=[{'all':!![]}];}_0x8addac=_[_0xa0e1('0x3a')]({},_0x8addac,_0x1f2e37['options']);return db[_0xa0e1('0x2b')][_0xa0e1('0x43')](_0x8addac)['then'](handleEntityNotFound(_0x2d2b4c,null))[_0xa0e1('0x24')](respondWithResult(_0x2d2b4c,null))[_0xa0e1('0x44')](handleError(_0x2d2b4c,null));};exports['create']=function(_0x35e156,_0x5e868b){return db[_0xa0e1('0x2b')][_0xa0e1('0x45')](_0x35e156[_0xa0e1('0x46')],{})['then'](respondWithResult(_0x5e868b,0xc9))[_0xa0e1('0x44')](handleError(_0x5e868b,null));};exports[_0xa0e1('0x22')]=function(_0x17c029,_0x86b5e8){if(_0x17c029[_0xa0e1('0x46')]['id']){delete _0x17c029[_0xa0e1('0x46')]['id'];}return db['OpenchannelTransferReport'][_0xa0e1('0x43')]({'where':{'id':_0x17c029[_0xa0e1('0x47')]['id']}})['then'](handleEntityNotFound(_0x86b5e8,null))[_0xa0e1('0x24')](saveUpdates(_0x17c029[_0xa0e1('0x46')],null))[_0xa0e1('0x24')](respondWithResult(_0x86b5e8,null))[_0xa0e1('0x44')](handleError(_0x86b5e8,null));};exports[_0xa0e1('0x23')]=function(_0x255966,_0x16378e){return db[_0xa0e1('0x2b')]['find']({'where':{'id':_0x255966[_0xa0e1('0x47')]['id']}})[_0xa0e1('0x24')](handleEntityNotFound(_0x16378e,null))['then'](removeEntity(_0x16378e,null))[_0xa0e1('0x44')](handleError(_0x16378e,null));};exports['describe']=function(_0x132a2e,_0x33f14b){return db[_0xa0e1('0x2b')][_0xa0e1('0x48')]()[_0xa0e1('0x24')](respondWithResult(_0x33f14b,null))['catch'](handleError(_0x33f14b,null));};
\ No newline at end of file