Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index e9ea86e..af6c265 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3a70=['params','length','includeAll','options','find','create','body','destroy','describe','html-pdf','rimraf','zip-dir','fast-json-patch','bluebird','mustache','path','sox','ejs','lodash','squel','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','count','offset','set','Content-Range','apply','reject','save','update','then','error','stack','name','send','index','map','OpenchannelTransferReport','rawAttributes','fieldName','key','query','keys','filters','intersection','attributes','model','fields','nolimit','limit','order','sort','pick','filter','where','type','merge','include','findAll','rows','catch','show'];(function(_0x27139a,_0x935872){var _0x51f9e8=function(_0x4867bb){while(--_0x4867bb){_0x27139a['push'](_0x27139a['shift']());}};_0x51f9e8(++_0x935872);}(_0x3a70,0xf6));var _0x03a7=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3a70[_0x3dd15e];return _0x231fd0;};'use strict';var pdf=require(_0x03a7('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x03a7('0x1'));var zipdir=require(_0x03a7('0x2'));var jsonpatch=require(_0x03a7('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x03a7('0x4'));var Mustache=require(_0x03a7('0x5'));var util=require('util');var path=require(_0x03a7('0x6'));var sox=require(_0x03a7('0x7'));var csv=require('to-csv');var ejs=require(_0x03a7('0x8'));var fs=require('fs');var _=require(_0x03a7('0x9'));var squel=require(_0x03a7('0xa'));var crypto=require(_0x03a7('0xb'));var jsforce=require(_0x03a7('0xc'));var deskjs=require(_0x03a7('0xd'));var toCsv=require(_0x03a7('0xe'));var querystring=require('querystring');var Papa=require(_0x03a7('0xf'));var Redis=require(_0x03a7('0x10'));var authService=require(_0x03a7('0x11'));var qs=require(_0x03a7('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x03a7('0x13'));var logger=require(_0x03a7('0x14'))(_0x03a7('0x15'));var utils=require(_0x03a7('0x16'));var config=require(_0x03a7('0x17'));var licenseUtil=require(_0x03a7('0x18'));var db=require(_0x03a7('0x19'))['db'];function respondWithStatusCode(_0x4a1f7d,_0x556334){_0x556334=_0x556334||0xcc;return function(_0x4539f2){if(_0x4539f2){return _0x4a1f7d[_0x03a7('0x1a')](_0x556334);}return _0x4a1f7d[_0x03a7('0x1b')](_0x556334)[_0x03a7('0x1c')]();};}function respondWithResult(_0x10489b,_0xc5e1e){_0xc5e1e=_0xc5e1e||0xc8;return function(_0x3e37c4){if(_0x3e37c4){return _0x10489b[_0x03a7('0x1b')](_0xc5e1e)[_0x03a7('0x1d')](_0x3e37c4);}};}function respondWithFilteredResult(_0x2835c9,_0x4b56ac){return function(_0x113c03){if(_0x113c03){var _0x3968bd=_0x113c03[_0x03a7('0x1e')],_0x5a2265=_0x4b56ac[_0x03a7('0x1f')],_0x1e0083=_0x4b56ac['offset']+_0x4b56ac['limit'],_0x430425;if(_0x1e0083>=_0x3968bd){_0x1e0083=_0x3968bd;_0x430425=0xc8;}else{_0x430425=0xce;}_0x2835c9['status'](_0x430425);return _0x2835c9[_0x03a7('0x20')](_0x03a7('0x21'),_0x5a2265+'-'+_0x1e0083+'/'+_0x3968bd)[_0x03a7('0x1d')](_0x113c03);}return null;};}function patchUpdates(_0x35ee51){return function(_0x59b822){try{jsonpatch[_0x03a7('0x22')](_0x59b822,_0x35ee51,!![]);}catch(_0x54c890){return BPromise[_0x03a7('0x23')](_0x54c890);}return _0x59b822[_0x03a7('0x24')]();};}function saveUpdates(_0x335821,_0x48cb62){return function(_0x3fe605){if(_0x3fe605){return _0x3fe605[_0x03a7('0x25')](_0x335821)['then'](function(_0x5b6ecb){return _0x5b6ecb;});}return null;};}function removeEntity(_0x2308cb,_0x5747d6){return function(_0x212e6a){if(_0x212e6a){return _0x212e6a['destroy']()[_0x03a7('0x26')](function(){_0x2308cb['status'](0xcc)[_0x03a7('0x1c')]();});}};}function handleEntityNotFound(_0x23ead2,_0x479e47){return function(_0x3e8183){if(!_0x3e8183){_0x23ead2['sendStatus'](0x194);}return _0x3e8183;};}function handleError(_0x423ef9,_0x1a31e2){_0x1a31e2=_0x1a31e2||0x1f4;return function(_0xc00e8f){logger[_0x03a7('0x27')](_0xc00e8f[_0x03a7('0x28')]);if(_0xc00e8f[_0x03a7('0x29')]){delete _0xc00e8f[_0x03a7('0x29')];}_0x423ef9[_0x03a7('0x1b')](_0x1a31e2)[_0x03a7('0x2a')](_0xc00e8f);};}exports[_0x03a7('0x2b')]=function(_0x2e165f,_0xf19441){var _0x4d9c5f={},_0xb6a684={},_0x2a9e7f={'count':0x0,'rows':[]};var _0x49b7d4=_[_0x03a7('0x2c')](db[_0x03a7('0x2d')][_0x03a7('0x2e')],function(_0x6a2f88){return{'name':_0x6a2f88[_0x03a7('0x2f')],'type':_0x6a2f88['type'][_0x03a7('0x30')]};});_0xb6a684['model']=_[_0x03a7('0x2c')](_0x49b7d4,_0x03a7('0x29'));_0xb6a684[_0x03a7('0x31')]=_[_0x03a7('0x32')](_0x2e165f[_0x03a7('0x31')]);_0xb6a684[_0x03a7('0x33')]=_[_0x03a7('0x34')](_0xb6a684['model'],_0xb6a684['query']);_0x4d9c5f[_0x03a7('0x35')]=_['intersection'](_0xb6a684[_0x03a7('0x36')],qs['fields'](_0x2e165f['query'][_0x03a7('0x37')]));_0x4d9c5f[_0x03a7('0x35')]=_0x4d9c5f[_0x03a7('0x35')]['length']?_0x4d9c5f[_0x03a7('0x35')]:_0xb6a684[_0x03a7('0x36')];if(!_0x2e165f[_0x03a7('0x31')]['hasOwnProperty'](_0x03a7('0x38'))){_0x4d9c5f[_0x03a7('0x39')]=qs[_0x03a7('0x39')](_0x2e165f[_0x03a7('0x31')][_0x03a7('0x39')]);_0x4d9c5f['offset']=qs[_0x03a7('0x1f')](_0x2e165f[_0x03a7('0x31')][_0x03a7('0x1f')]);}_0x4d9c5f[_0x03a7('0x3a')]=qs[_0x03a7('0x3b')](_0x2e165f[_0x03a7('0x31')]['sort']);_0x4d9c5f['where']=qs[_0x03a7('0x33')](_[_0x03a7('0x3c')](_0x2e165f['query'],_0xb6a684['filters']),_0x49b7d4);if(_0x2e165f[_0x03a7('0x31')][_0x03a7('0x3d')]){_0x4d9c5f[_0x03a7('0x3e')]=_['merge'](_0x4d9c5f[_0x03a7('0x3e')],{'$or':_[_0x03a7('0x2c')](_0x49b7d4,function(_0x543ca6){if(_0x543ca6[_0x03a7('0x3f')]!=='VIRTUAL'){var _0x1f7742={};_0x1f7742[_0x543ca6[_0x03a7('0x29')]]={'$like':'%'+_0x2e165f[_0x03a7('0x31')][_0x03a7('0x3d')]+'%'};return _0x1f7742;}})});}_0x4d9c5f=_[_0x03a7('0x40')]({},_0x4d9c5f,_0x2e165f['options']);var _0x391355={'where':_0x4d9c5f['where']};return db['OpenchannelTransferReport']['count'](_0x391355)[_0x03a7('0x26')](function(_0x25e6bd){_0x2a9e7f[_0x03a7('0x1e')]=_0x25e6bd;if(_0x2e165f[_0x03a7('0x31')]['includeAll']){_0x4d9c5f[_0x03a7('0x41')]=[{'all':!![]}];}return db[_0x03a7('0x2d')][_0x03a7('0x42')](_0x4d9c5f);})[_0x03a7('0x26')](function(_0x21b521){_0x2a9e7f[_0x03a7('0x43')]=_0x21b521;return _0x2a9e7f;})[_0x03a7('0x26')](respondWithFilteredResult(_0xf19441,_0x4d9c5f))[_0x03a7('0x44')](handleError(_0xf19441,null));};exports[_0x03a7('0x45')]=function(_0x1c7adf,_0x31c2c0){var _0xe898b0={'raw':!![],'where':{'id':_0x1c7adf[_0x03a7('0x46')]['id']}},_0x140659={};_0x140659[_0x03a7('0x36')]=_[_0x03a7('0x32')](db[_0x03a7('0x2d')]['rawAttributes']);_0x140659['query']=_[_0x03a7('0x32')](_0x1c7adf['query']);_0x140659['filters']=_[_0x03a7('0x34')](_0x140659['model'],_0x140659[_0x03a7('0x31')]);_0xe898b0[_0x03a7('0x35')]=_[_0x03a7('0x34')](_0x140659[_0x03a7('0x36')],qs['fields'](_0x1c7adf[_0x03a7('0x31')][_0x03a7('0x37')]));_0xe898b0[_0x03a7('0x35')]=_0xe898b0[_0x03a7('0x35')][_0x03a7('0x47')]?_0xe898b0[_0x03a7('0x35')]:_0x140659[_0x03a7('0x36')];if(_0x1c7adf[_0x03a7('0x31')][_0x03a7('0x48')]){_0xe898b0[_0x03a7('0x41')]=[{'all':!![]}];}_0xe898b0=_[_0x03a7('0x40')]({},_0xe898b0,_0x1c7adf[_0x03a7('0x49')]);return db[_0x03a7('0x2d')][_0x03a7('0x4a')](_0xe898b0)[_0x03a7('0x26')](handleEntityNotFound(_0x31c2c0,null))[_0x03a7('0x26')](respondWithResult(_0x31c2c0,null))[_0x03a7('0x44')](handleError(_0x31c2c0,null));};exports[_0x03a7('0x4b')]=function(_0x47508e,_0x52970c){return db[_0x03a7('0x2d')][_0x03a7('0x4b')](_0x47508e[_0x03a7('0x4c')],{})['then'](respondWithResult(_0x52970c,0xc9))[_0x03a7('0x44')](handleError(_0x52970c,null));};exports[_0x03a7('0x25')]=function(_0xf96340,_0x4cef0a){if(_0xf96340[_0x03a7('0x4c')]['id']){delete _0xf96340['body']['id'];}return db[_0x03a7('0x2d')]['find']({'where':{'id':_0xf96340['params']['id']}})[_0x03a7('0x26')](handleEntityNotFound(_0x4cef0a,null))['then'](saveUpdates(_0xf96340[_0x03a7('0x4c')],null))['then'](respondWithResult(_0x4cef0a,null))[_0x03a7('0x44')](handleError(_0x4cef0a,null));};exports[_0x03a7('0x4d')]=function(_0x78e9b1,_0x372f50){return db['OpenchannelTransferReport'][_0x03a7('0x4a')]({'where':{'id':_0x78e9b1[_0x03a7('0x46')]['id']}})[_0x03a7('0x26')](handleEntityNotFound(_0x372f50,null))[_0x03a7('0x26')](removeEntity(_0x372f50,null))[_0x03a7('0x44')](handleError(_0x372f50,null));};exports[_0x03a7('0x4e')]=function(_0x5440c9,_0x3e1dc6){return db[_0x03a7('0x2d')][_0x03a7('0x4e')]()[_0x03a7('0x26')](respondWithResult(_0x3e1dc6,null))['catch'](handleError(_0x3e1dc6,null));};
\ No newline at end of file
+var _0x4f57=['options','include','rows','catch','show','fields','includeAll','find','create','body','params','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','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','end','json','count','offset','status','Content-Range','apply','reject','save','update','then','destroy','sendStatus','stack','index','map','OpenchannelTransferReport','rawAttributes','fieldName','type','key','keys','query','intersection','model','attributes','length','hasOwnProperty','limit','order','sort','where','filters','filter','merge','VIRTUAL','name'];(function(_0x4e5046,_0x245c09){var _0x291904=function(_0x28d3e3){while(--_0x28d3e3){_0x4e5046['push'](_0x4e5046['shift']());}};_0x291904(++_0x245c09);}(_0x4f57,0x13c));var _0x74f5=function(_0x92eeb6,_0x574acf){_0x92eeb6=_0x92eeb6-0x0;var _0x38067d=_0x4f57[_0x92eeb6];return _0x38067d;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x74f5('0x0'));var rimraf=require(_0x74f5('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x74f5('0x2'));var rp=require(_0x74f5('0x3'));var moment=require(_0x74f5('0x4'));var BPromise=require(_0x74f5('0x5'));var Mustache=require(_0x74f5('0x6'));var util=require(_0x74f5('0x7'));var path=require(_0x74f5('0x8'));var sox=require('sox');var csv=require(_0x74f5('0x9'));var ejs=require(_0x74f5('0xa'));var fs=require('fs');var _=require(_0x74f5('0xb'));var squel=require(_0x74f5('0xc'));var crypto=require(_0x74f5('0xd'));var jsforce=require(_0x74f5('0xe'));var deskjs=require(_0x74f5('0xf'));var toCsv=require(_0x74f5('0x9'));var querystring=require(_0x74f5('0x10'));var Papa=require(_0x74f5('0x11'));var Redis=require(_0x74f5('0x12'));var authService=require(_0x74f5('0x13'));var qs=require(_0x74f5('0x14'));var as=require(_0x74f5('0x15'));var hardwareService=require(_0x74f5('0x16'));var logger=require(_0x74f5('0x17'))(_0x74f5('0x18'));var utils=require(_0x74f5('0x19'));var config=require(_0x74f5('0x1a'));var licenseUtil=require('../../config/license/util');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x31ab9a,_0xdfaec4){_0xdfaec4=_0xdfaec4||0xcc;return function(_0x5d669){if(_0x5d669){return _0x31ab9a['sendStatus'](_0xdfaec4);}return _0x31ab9a['status'](_0xdfaec4)[_0x74f5('0x1b')]();};}function respondWithResult(_0x3e359c,_0x24029e){_0x24029e=_0x24029e||0xc8;return function(_0x20e3d8){if(_0x20e3d8){return _0x3e359c['status'](_0x24029e)[_0x74f5('0x1c')](_0x20e3d8);}};}function respondWithFilteredResult(_0x34f92d,_0x434ce5){return function(_0x162092){if(_0x162092){var _0x1cb1b6=_0x162092[_0x74f5('0x1d')],_0x1743ac=_0x434ce5[_0x74f5('0x1e')],_0xa34a07=_0x434ce5['offset']+_0x434ce5['limit'],_0x391e5e;if(_0xa34a07>=_0x1cb1b6){_0xa34a07=_0x1cb1b6;_0x391e5e=0xc8;}else{_0x391e5e=0xce;}_0x34f92d[_0x74f5('0x1f')](_0x391e5e);return _0x34f92d['set'](_0x74f5('0x20'),_0x1743ac+'-'+_0xa34a07+'/'+_0x1cb1b6)[_0x74f5('0x1c')](_0x162092);}return null;};}function patchUpdates(_0x1b0b63){return function(_0x3707d3){try{jsonpatch[_0x74f5('0x21')](_0x3707d3,_0x1b0b63,!![]);}catch(_0xeaed4d){return BPromise[_0x74f5('0x22')](_0xeaed4d);}return _0x3707d3[_0x74f5('0x23')]();};}function saveUpdates(_0x482e36,_0x3c35e8){return function(_0x47e616){if(_0x47e616){return _0x47e616[_0x74f5('0x24')](_0x482e36)[_0x74f5('0x25')](function(_0x59e984){return _0x59e984;});}return null;};}function removeEntity(_0x4a64fb,_0x47866a){return function(_0x4fae1a){if(_0x4fae1a){return _0x4fae1a[_0x74f5('0x26')]()['then'](function(){_0x4a64fb[_0x74f5('0x1f')](0xcc)['end']();});}};}function handleEntityNotFound(_0x5d71a4,_0x2cc5bc){return function(_0x3bf2e5){if(!_0x3bf2e5){_0x5d71a4[_0x74f5('0x27')](0x194);}return _0x3bf2e5;};}function handleError(_0x40d530,_0x537b9d){_0x537b9d=_0x537b9d||0x1f4;return function(_0x4a1f66){logger['error'](_0x4a1f66[_0x74f5('0x28')]);if(_0x4a1f66['name']){delete _0x4a1f66['name'];}_0x40d530[_0x74f5('0x1f')](_0x537b9d)['send'](_0x4a1f66);};}exports[_0x74f5('0x29')]=function(_0x271beb,_0xca6354){var _0x5bb7a9={},_0x1063dc={},_0x1b6922={'count':0x0,'rows':[]};var _0x13e4ce=_[_0x74f5('0x2a')](db[_0x74f5('0x2b')][_0x74f5('0x2c')],function(_0xaa986d){return{'name':_0xaa986d[_0x74f5('0x2d')],'type':_0xaa986d[_0x74f5('0x2e')][_0x74f5('0x2f')]};});_0x1063dc['model']=_[_0x74f5('0x2a')](_0x13e4ce,'name');_0x1063dc['query']=_[_0x74f5('0x30')](_0x271beb[_0x74f5('0x31')]);_0x1063dc['filters']=_[_0x74f5('0x32')](_0x1063dc[_0x74f5('0x33')],_0x1063dc[_0x74f5('0x31')]);_0x5bb7a9['attributes']=_[_0x74f5('0x32')](_0x1063dc[_0x74f5('0x33')],qs['fields'](_0x271beb[_0x74f5('0x31')]['fields']));_0x5bb7a9['attributes']=_0x5bb7a9[_0x74f5('0x34')][_0x74f5('0x35')]?_0x5bb7a9[_0x74f5('0x34')]:_0x1063dc[_0x74f5('0x33')];if(!_0x271beb[_0x74f5('0x31')][_0x74f5('0x36')]('nolimit')){_0x5bb7a9[_0x74f5('0x37')]=qs[_0x74f5('0x37')](_0x271beb[_0x74f5('0x31')][_0x74f5('0x37')]);_0x5bb7a9[_0x74f5('0x1e')]=qs['offset'](_0x271beb[_0x74f5('0x31')][_0x74f5('0x1e')]);}_0x5bb7a9[_0x74f5('0x38')]=qs[_0x74f5('0x39')](_0x271beb[_0x74f5('0x31')][_0x74f5('0x39')]);_0x5bb7a9[_0x74f5('0x3a')]=qs[_0x74f5('0x3b')](_['pick'](_0x271beb[_0x74f5('0x31')],_0x1063dc['filters']),_0x13e4ce);if(_0x271beb[_0x74f5('0x31')][_0x74f5('0x3c')]){_0x5bb7a9[_0x74f5('0x3a')]=_[_0x74f5('0x3d')](_0x5bb7a9['where'],{'$or':_['map'](_0x13e4ce,function(_0x3e6409){if(_0x3e6409[_0x74f5('0x2e')]!==_0x74f5('0x3e')){var _0x46b9fa={};_0x46b9fa[_0x3e6409[_0x74f5('0x3f')]]={'$like':'%'+_0x271beb[_0x74f5('0x31')][_0x74f5('0x3c')]+'%'};return _0x46b9fa;}})});}_0x5bb7a9=_[_0x74f5('0x3d')]({},_0x5bb7a9,_0x271beb[_0x74f5('0x40')]);var _0x31e196={'where':_0x5bb7a9[_0x74f5('0x3a')]};return db[_0x74f5('0x2b')]['count'](_0x31e196)[_0x74f5('0x25')](function(_0x1313f1){_0x1b6922[_0x74f5('0x1d')]=_0x1313f1;if(_0x271beb[_0x74f5('0x31')]['includeAll']){_0x5bb7a9[_0x74f5('0x41')]=[{'all':!![]}];}return db[_0x74f5('0x2b')]['findAll'](_0x5bb7a9);})[_0x74f5('0x25')](function(_0x1f844e){_0x1b6922[_0x74f5('0x42')]=_0x1f844e;return _0x1b6922;})[_0x74f5('0x25')](respondWithFilteredResult(_0xca6354,_0x5bb7a9))[_0x74f5('0x43')](handleError(_0xca6354,null));};exports[_0x74f5('0x44')]=function(_0x3e2684,_0x5677d5){var _0x22bc9e={'raw':!![],'where':{'id':_0x3e2684['params']['id']}},_0x46f8c1={};_0x46f8c1[_0x74f5('0x33')]=_['keys'](db['OpenchannelTransferReport'][_0x74f5('0x2c')]);_0x46f8c1['query']=_[_0x74f5('0x30')](_0x3e2684[_0x74f5('0x31')]);_0x46f8c1[_0x74f5('0x3b')]=_[_0x74f5('0x32')](_0x46f8c1[_0x74f5('0x33')],_0x46f8c1[_0x74f5('0x31')]);_0x22bc9e[_0x74f5('0x34')]=_['intersection'](_0x46f8c1[_0x74f5('0x33')],qs[_0x74f5('0x45')](_0x3e2684['query'][_0x74f5('0x45')]));_0x22bc9e['attributes']=_0x22bc9e[_0x74f5('0x34')][_0x74f5('0x35')]?_0x22bc9e[_0x74f5('0x34')]:_0x46f8c1['model'];if(_0x3e2684[_0x74f5('0x31')][_0x74f5('0x46')]){_0x22bc9e[_0x74f5('0x41')]=[{'all':!![]}];}_0x22bc9e=_[_0x74f5('0x3d')]({},_0x22bc9e,_0x3e2684[_0x74f5('0x40')]);return db[_0x74f5('0x2b')][_0x74f5('0x47')](_0x22bc9e)[_0x74f5('0x25')](handleEntityNotFound(_0x5677d5,null))[_0x74f5('0x25')](respondWithResult(_0x5677d5,null))['catch'](handleError(_0x5677d5,null));};exports['create']=function(_0x505202,_0x3f44a7){return db[_0x74f5('0x2b')][_0x74f5('0x48')](_0x505202['body'],{})[_0x74f5('0x25')](respondWithResult(_0x3f44a7,0xc9))[_0x74f5('0x43')](handleError(_0x3f44a7,null));};exports[_0x74f5('0x24')]=function(_0x3f9186,_0x5689b1){if(_0x3f9186[_0x74f5('0x49')]['id']){delete _0x3f9186[_0x74f5('0x49')]['id'];}return db[_0x74f5('0x2b')]['find']({'where':{'id':_0x3f9186[_0x74f5('0x4a')]['id']}})[_0x74f5('0x25')](handleEntityNotFound(_0x5689b1,null))['then'](saveUpdates(_0x3f9186[_0x74f5('0x49')],null))[_0x74f5('0x25')](respondWithResult(_0x5689b1,null))[_0x74f5('0x43')](handleError(_0x5689b1,null));};exports[_0x74f5('0x26')]=function(_0x325fd7,_0x13b53a){return db[_0x74f5('0x2b')][_0x74f5('0x47')]({'where':{'id':_0x325fd7[_0x74f5('0x4a')]['id']}})[_0x74f5('0x25')](handleEntityNotFound(_0x13b53a,null))[_0x74f5('0x25')](removeEntity(_0x13b53a,null))[_0x74f5('0x43')](handleError(_0x13b53a,null));};exports[_0x74f5('0x4b')]=function(_0x14db8f,_0x4f0875){return db[_0x74f5('0x2b')][_0x74f5('0x4b')]()[_0x74f5('0x25')](respondWithResult(_0x4f0875,null))[_0x74f5('0x43')](handleError(_0x4f0875,null));};
\ No newline at end of file