Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 8065346..f1a938b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7eb9=['describe','eml-format','fast-json-patch','moment','bluebird','mustache','util','sox','ejs','lodash','jsforce','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','limit','undefined','count','offset','set','Content-Range','apply','reject','then','error','name','send','index','SquareDetailsReport','rawAttributes','fieldName','type','model','map','query','keys','attributes','fields','hasOwnProperty','order','sort','where','filters','pick','filter','VIRTUAL','merge','includeAll','include','findAll','rows','catch','show','params','intersection','length','create','body','find','destroy'];(function(_0x244b1b,_0x5b311f){var _0x3d8056=function(_0x5b670b){while(--_0x5b670b){_0x244b1b['push'](_0x244b1b['shift']());}};_0x3d8056(++_0x5b311f);}(_0x7eb9,0xd9));var _0x97eb=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x7eb9[_0xa464c9];return _0x3d73c4;};'use strict';var emlformat=require(_0x97eb('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x97eb('0x1'));var rp=require('request-promise');var moment=require(_0x97eb('0x2'));var BPromise=require(_0x97eb('0x3'));var Mustache=require(_0x97eb('0x4'));var util=require(_0x97eb('0x5'));var path=require('path');var sox=require(_0x97eb('0x6'));var csv=require('to-csv');var ejs=require(_0x97eb('0x7'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x97eb('0x8'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x97eb('0x9'));var deskjs=require('desk.js');var toCsv=require(_0x97eb('0xa'));var querystring=require(_0x97eb('0xb'));var Papa=require(_0x97eb('0xc'));var Redis=require(_0x97eb('0xd'));var authService=require(_0x97eb('0xe'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x97eb('0xf'));var logger=require(_0x97eb('0x10'))(_0x97eb('0x11'));var utils=require(_0x97eb('0x12'));var config=require(_0x97eb('0x13'));var licenseUtil=require(_0x97eb('0x14'));var db=require(_0x97eb('0x15'))['db'];function respondWithStatusCode(_0x3ec39d,_0x1205d4){_0x1205d4=_0x1205d4||0xcc;return function(_0x37e165){if(_0x37e165){return _0x3ec39d[_0x97eb('0x16')](_0x1205d4);}return _0x3ec39d[_0x97eb('0x17')](_0x1205d4)[_0x97eb('0x18')]();};}function respondWithResult(_0x469bed,_0x55c44a){_0x55c44a=_0x55c44a||0xc8;return function(_0x226a95){if(_0x226a95){return _0x469bed[_0x97eb('0x17')](_0x55c44a)[_0x97eb('0x19')](_0x226a95);}};}function respondWithFilteredResult(_0x53bb82,_0x17801c){return function(_0x19477a){if(_0x19477a){var _0x823d10=typeof _0x17801c['offset']==='undefined'&&typeof _0x17801c[_0x97eb('0x1a')]===_0x97eb('0x1b');var _0x4764c1=_0x19477a[_0x97eb('0x1c')];var _0x1f89bd=_0x823d10?0x0:_0x17801c[_0x97eb('0x1d')];var _0x5cdbe8=_0x823d10?_0x19477a[_0x97eb('0x1c')]:_0x17801c['offset']+_0x17801c[_0x97eb('0x1a')];var _0x5349d3;if(_0x5cdbe8>=_0x4764c1){_0x5cdbe8=_0x4764c1;_0x5349d3=0xc8;}else{_0x5349d3=0xce;}_0x53bb82[_0x97eb('0x17')](_0x5349d3);return _0x53bb82[_0x97eb('0x1e')](_0x97eb('0x1f'),_0x1f89bd+'-'+_0x5cdbe8+'/'+_0x4764c1)[_0x97eb('0x19')](_0x19477a);}return null;};}function patchUpdates(_0x4b25d2){return function(_0xc3c93e){try{jsonpatch[_0x97eb('0x20')](_0xc3c93e,_0x4b25d2,!![]);}catch(_0x16384d){return BPromise[_0x97eb('0x21')](_0x16384d);}return _0xc3c93e['save']();};}function saveUpdates(_0x3c238d,_0x4d5fe5){return function(_0x6c6277){if(_0x6c6277){return _0x6c6277['update'](_0x3c238d)[_0x97eb('0x22')](function(_0x47bae8){return _0x47bae8;});}return null;};}function removeEntity(_0x4ed564,_0x4d59b9){return function(_0x978b54){if(_0x978b54){return _0x978b54['destroy']()[_0x97eb('0x22')](function(){_0x4ed564[_0x97eb('0x17')](0xcc)[_0x97eb('0x18')]();});}};}function handleEntityNotFound(_0x19822a,_0x3f35b4){return function(_0x174992){if(!_0x174992){_0x19822a[_0x97eb('0x16')](0x194);}return _0x174992;};}function handleError(_0x2d8d0d,_0x23108b){_0x23108b=_0x23108b||0x1f4;return function(_0x58f4ff){logger[_0x97eb('0x23')](_0x58f4ff['stack']);if(_0x58f4ff['name']){delete _0x58f4ff[_0x97eb('0x24')];}_0x2d8d0d[_0x97eb('0x17')](_0x23108b)[_0x97eb('0x25')](_0x58f4ff);};}exports[_0x97eb('0x26')]=function(_0x5764b1,_0x29798d){var _0x18f23e={},_0x480e3a={},_0x4d8d61={'count':0x0,'rows':[]};var _0xfc14ad=_['map'](db[_0x97eb('0x27')][_0x97eb('0x28')],function(_0x1e9bb9){return{'name':_0x1e9bb9[_0x97eb('0x29')],'type':_0x1e9bb9[_0x97eb('0x2a')]['key']};});_0x480e3a[_0x97eb('0x2b')]=_[_0x97eb('0x2c')](_0xfc14ad,_0x97eb('0x24'));_0x480e3a[_0x97eb('0x2d')]=_[_0x97eb('0x2e')](_0x5764b1[_0x97eb('0x2d')]);_0x480e3a['filters']=_['intersection'](_0x480e3a['model'],_0x480e3a[_0x97eb('0x2d')]);_0x18f23e[_0x97eb('0x2f')]=_['intersection'](_0x480e3a[_0x97eb('0x2b')],qs['fields'](_0x5764b1['query'][_0x97eb('0x30')]));_0x18f23e[_0x97eb('0x2f')]=_0x18f23e[_0x97eb('0x2f')]['length']?_0x18f23e[_0x97eb('0x2f')]:_0x480e3a[_0x97eb('0x2b')];if(!_0x5764b1[_0x97eb('0x2d')][_0x97eb('0x31')]('nolimit')){_0x18f23e[_0x97eb('0x1a')]=qs[_0x97eb('0x1a')](_0x5764b1[_0x97eb('0x2d')][_0x97eb('0x1a')]);_0x18f23e[_0x97eb('0x1d')]=qs['offset'](_0x5764b1[_0x97eb('0x2d')][_0x97eb('0x1d')]);}_0x18f23e[_0x97eb('0x32')]=qs[_0x97eb('0x33')](_0x5764b1[_0x97eb('0x2d')]['sort']);_0x18f23e[_0x97eb('0x34')]=qs[_0x97eb('0x35')](_[_0x97eb('0x36')](_0x5764b1[_0x97eb('0x2d')],_0x480e3a['filters']),_0xfc14ad);if(_0x5764b1['query'][_0x97eb('0x37')]){_0x18f23e[_0x97eb('0x34')]=_['merge'](_0x18f23e[_0x97eb('0x34')],{'$or':_[_0x97eb('0x2c')](_0xfc14ad,function(_0x283cb5){if(_0x283cb5[_0x97eb('0x2a')]!==_0x97eb('0x38')){var _0x40257e={};_0x40257e[_0x283cb5[_0x97eb('0x24')]]={'$like':'%'+_0x5764b1[_0x97eb('0x2d')][_0x97eb('0x37')]+'%'};return _0x40257e;}})});}_0x18f23e=_[_0x97eb('0x39')]({},_0x18f23e,_0x5764b1['options']);var _0x5d8cbd={'where':_0x18f23e[_0x97eb('0x34')]};return db[_0x97eb('0x27')][_0x97eb('0x1c')](_0x5d8cbd)['then'](function(_0x2230ca){_0x4d8d61[_0x97eb('0x1c')]=_0x2230ca;if(_0x5764b1['query'][_0x97eb('0x3a')]){_0x18f23e[_0x97eb('0x3b')]=[{'all':!![]}];}return db[_0x97eb('0x27')][_0x97eb('0x3c')](_0x18f23e);})[_0x97eb('0x22')](function(_0x40c59b){_0x4d8d61[_0x97eb('0x3d')]=_0x40c59b;return _0x4d8d61;})[_0x97eb('0x22')](respondWithFilteredResult(_0x29798d,_0x18f23e))[_0x97eb('0x3e')](handleError(_0x29798d,null));};exports[_0x97eb('0x3f')]=function(_0x4a2be8,_0x1b43d5){var _0x26c94b={'raw':!![],'where':{'id':_0x4a2be8[_0x97eb('0x40')]['id']}},_0x157273={};_0x157273['model']=_['keys'](db[_0x97eb('0x27')][_0x97eb('0x28')]);_0x157273[_0x97eb('0x2d')]=_[_0x97eb('0x2e')](_0x4a2be8[_0x97eb('0x2d')]);_0x157273['filters']=_[_0x97eb('0x41')](_0x157273['model'],_0x157273['query']);_0x26c94b[_0x97eb('0x2f')]=_[_0x97eb('0x41')](_0x157273[_0x97eb('0x2b')],qs[_0x97eb('0x30')](_0x4a2be8[_0x97eb('0x2d')][_0x97eb('0x30')]));_0x26c94b[_0x97eb('0x2f')]=_0x26c94b[_0x97eb('0x2f')][_0x97eb('0x42')]?_0x26c94b[_0x97eb('0x2f')]:_0x157273['model'];if(_0x4a2be8[_0x97eb('0x2d')][_0x97eb('0x3a')]){_0x26c94b[_0x97eb('0x3b')]=[{'all':!![]}];}_0x26c94b=_[_0x97eb('0x39')]({},_0x26c94b,_0x4a2be8['options']);return db[_0x97eb('0x27')]['find'](_0x26c94b)[_0x97eb('0x22')](handleEntityNotFound(_0x1b43d5,null))['then'](respondWithResult(_0x1b43d5,null))[_0x97eb('0x3e')](handleError(_0x1b43d5,null));};exports['create']=function(_0x11e74d,_0x4c2b7f){return db[_0x97eb('0x27')][_0x97eb('0x43')](_0x11e74d[_0x97eb('0x44')],{})[_0x97eb('0x22')](respondWithResult(_0x4c2b7f,0xc9))[_0x97eb('0x3e')](handleError(_0x4c2b7f,null));};exports['update']=function(_0x5c25e7,_0x269aec){if(_0x5c25e7['body']['id']){delete _0x5c25e7[_0x97eb('0x44')]['id'];}return db[_0x97eb('0x27')][_0x97eb('0x45')]({'where':{'id':_0x5c25e7[_0x97eb('0x40')]['id']}})['then'](handleEntityNotFound(_0x269aec,null))['then'](saveUpdates(_0x5c25e7[_0x97eb('0x44')],null))[_0x97eb('0x22')](respondWithResult(_0x269aec,null))['catch'](handleError(_0x269aec,null));};exports[_0x97eb('0x46')]=function(_0x29f136,_0x479e2a){return db[_0x97eb('0x27')][_0x97eb('0x45')]({'where':{'id':_0x29f136[_0x97eb('0x40')]['id']}})[_0x97eb('0x22')](handleEntityNotFound(_0x479e2a,null))[_0x97eb('0x22')](removeEntity(_0x479e2a,null))['catch'](handleError(_0x479e2a,null));};exports[_0x97eb('0x47')]=function(_0x23afac,_0x227534){return db[_0x97eb('0x27')]['describe']()[_0x97eb('0x22')](respondWithResult(_0x227534,null))[_0x97eb('0x3e')](handleError(_0x227534,null));};
\ No newline at end of file
+var _0xf165=['request-promise','moment','bluebird','util','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','offset','undefined','limit','count','set','reject','update','then','destroy','error','send','map','SquareDetailsReport','rawAttributes','fieldName','type','key','name','keys','filters','intersection','model','attributes','fields','query','length','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','describe','zip-dir','fast-json-patch'];(function(_0x879e31,_0x139d02){var _0x3467e8=function(_0x544fc6){while(--_0x544fc6){_0x879e31['push'](_0x879e31['shift']());}};_0x3467e8(++_0x139d02);}(_0xf165,0x11e));var _0x5f16=function(_0x1ecae9,_0x3142f7){_0x1ecae9=_0x1ecae9-0x0;var _0x581043=_0xf165[_0x1ecae9];return _0x581043;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x5f16('0x0'));var jsonpatch=require(_0x5f16('0x1'));var rp=require(_0x5f16('0x2'));var moment=require(_0x5f16('0x3'));var BPromise=require(_0x5f16('0x4'));var Mustache=require('mustache');var util=require(_0x5f16('0x5'));var path=require('path');var sox=require(_0x5f16('0x6'));var csv=require(_0x5f16('0x7'));var ejs=require(_0x5f16('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x5f16('0x9'));var squel=require(_0x5f16('0xa'));var crypto=require(_0x5f16('0xb'));var jsforce=require('jsforce');var deskjs=require(_0x5f16('0xc'));var toCsv=require('to-csv');var querystring=require(_0x5f16('0xd'));var Papa=require(_0x5f16('0xe'));var Redis=require(_0x5f16('0xf'));var authService=require(_0x5f16('0x10'));var qs=require(_0x5f16('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x5f16('0x12'));var logger=require(_0x5f16('0x13'))(_0x5f16('0x14'));var utils=require(_0x5f16('0x15'));var config=require(_0x5f16('0x16'));var licenseUtil=require(_0x5f16('0x17'));var db=require(_0x5f16('0x18'))['db'];function respondWithStatusCode(_0x1b6052,_0x3f2819){_0x3f2819=_0x3f2819||0xcc;return function(_0x5558e9){if(_0x5558e9){return _0x1b6052['sendStatus'](_0x3f2819);}return _0x1b6052[_0x5f16('0x19')](_0x3f2819)[_0x5f16('0x1a')]();};}function respondWithResult(_0x1dae99,_0x4e399d){_0x4e399d=_0x4e399d||0xc8;return function(_0xfce46e){if(_0xfce46e){return _0x1dae99['status'](_0x4e399d)[_0x5f16('0x1b')](_0xfce46e);}};}function respondWithFilteredResult(_0x301466,_0x2e1692){return function(_0x27a937){if(_0x27a937){var _0x3939f8=typeof _0x2e1692[_0x5f16('0x1c')]===_0x5f16('0x1d')&&typeof _0x2e1692[_0x5f16('0x1e')]==='undefined';var _0x3c466f=_0x27a937[_0x5f16('0x1f')];var _0x46d029=_0x3939f8?0x0:_0x2e1692[_0x5f16('0x1c')];var _0x1f2669=_0x3939f8?_0x27a937['count']:_0x2e1692[_0x5f16('0x1c')]+_0x2e1692[_0x5f16('0x1e')];var _0x2935f9;if(_0x1f2669>=_0x3c466f){_0x1f2669=_0x3c466f;_0x2935f9=0xc8;}else{_0x2935f9=0xce;}_0x301466[_0x5f16('0x19')](_0x2935f9);return _0x301466[_0x5f16('0x20')]('Content-Range',_0x46d029+'-'+_0x1f2669+'/'+_0x3c466f)[_0x5f16('0x1b')](_0x27a937);}return null;};}function patchUpdates(_0x2745b3){return function(_0x347905){try{jsonpatch['apply'](_0x347905,_0x2745b3,!![]);}catch(_0x9b8053){return BPromise[_0x5f16('0x21')](_0x9b8053);}return _0x347905['save']();};}function saveUpdates(_0x77efad,_0x21c04c){return function(_0x49f91a){if(_0x49f91a){return _0x49f91a[_0x5f16('0x22')](_0x77efad)[_0x5f16('0x23')](function(_0xe5a540){return _0xe5a540;});}return null;};}function removeEntity(_0x3c81b0,_0x20d2e0){return function(_0x240220){if(_0x240220){return _0x240220[_0x5f16('0x24')]()['then'](function(){_0x3c81b0[_0x5f16('0x19')](0xcc)[_0x5f16('0x1a')]();});}};}function handleEntityNotFound(_0x2dbc26,_0x50f517){return function(_0x2c866b){if(!_0x2c866b){_0x2dbc26['sendStatus'](0x194);}return _0x2c866b;};}function handleError(_0xeb0784,_0x533a46){_0x533a46=_0x533a46||0x1f4;return function(_0x565f7b){logger[_0x5f16('0x25')](_0x565f7b['stack']);if(_0x565f7b['name']){delete _0x565f7b['name'];}_0xeb0784[_0x5f16('0x19')](_0x533a46)[_0x5f16('0x26')](_0x565f7b);};}exports['index']=function(_0x5a59e1,_0x5bca79){var _0x5082a4={},_0x2e47cb={},_0x431597={'count':0x0,'rows':[]};var _0x50a88a=_[_0x5f16('0x27')](db[_0x5f16('0x28')][_0x5f16('0x29')],function(_0x25219b){return{'name':_0x25219b[_0x5f16('0x2a')],'type':_0x25219b[_0x5f16('0x2b')][_0x5f16('0x2c')]};});_0x2e47cb['model']=_['map'](_0x50a88a,_0x5f16('0x2d'));_0x2e47cb['query']=_[_0x5f16('0x2e')](_0x5a59e1['query']);_0x2e47cb[_0x5f16('0x2f')]=_[_0x5f16('0x30')](_0x2e47cb[_0x5f16('0x31')],_0x2e47cb['query']);_0x5082a4[_0x5f16('0x32')]=_['intersection'](_0x2e47cb[_0x5f16('0x31')],qs[_0x5f16('0x33')](_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x33')]));_0x5082a4[_0x5f16('0x32')]=_0x5082a4[_0x5f16('0x32')][_0x5f16('0x35')]?_0x5082a4[_0x5f16('0x32')]:_0x2e47cb[_0x5f16('0x31')];if(!_0x5a59e1[_0x5f16('0x34')]['hasOwnProperty']('nolimit')){_0x5082a4[_0x5f16('0x1e')]=qs[_0x5f16('0x1e')](_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x1e')]);_0x5082a4[_0x5f16('0x1c')]=qs[_0x5f16('0x1c')](_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x1c')]);}_0x5082a4['order']=qs[_0x5f16('0x36')](_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x36')]);_0x5082a4[_0x5f16('0x37')]=qs[_0x5f16('0x2f')](_[_0x5f16('0x38')](_0x5a59e1[_0x5f16('0x34')],_0x2e47cb[_0x5f16('0x2f')]),_0x50a88a);if(_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x39')]){_0x5082a4['where']=_[_0x5f16('0x3a')](_0x5082a4[_0x5f16('0x37')],{'$or':_[_0x5f16('0x27')](_0x50a88a,function(_0x31ec14){if(_0x31ec14['type']!==_0x5f16('0x3b')){var _0x1a9787={};_0x1a9787[_0x31ec14['name']]={'$like':'%'+_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x39')]+'%'};return _0x1a9787;}})});}_0x5082a4=_[_0x5f16('0x3a')]({},_0x5082a4,_0x5a59e1[_0x5f16('0x3c')]);var _0x5c7717={'where':_0x5082a4['where']};return db[_0x5f16('0x28')][_0x5f16('0x1f')](_0x5c7717)[_0x5f16('0x23')](function(_0x3b1491){_0x431597[_0x5f16('0x1f')]=_0x3b1491;if(_0x5a59e1[_0x5f16('0x34')][_0x5f16('0x3d')]){_0x5082a4[_0x5f16('0x3e')]=[{'all':!![]}];}return db[_0x5f16('0x28')][_0x5f16('0x3f')](_0x5082a4);})['then'](function(_0x494ffa){_0x431597[_0x5f16('0x40')]=_0x494ffa;return _0x431597;})[_0x5f16('0x23')](respondWithFilteredResult(_0x5bca79,_0x5082a4))[_0x5f16('0x41')](handleError(_0x5bca79,null));};exports[_0x5f16('0x42')]=function(_0x22b792,_0x357e2d){var _0x13f415={'raw':!![],'where':{'id':_0x22b792[_0x5f16('0x43')]['id']}},_0x22be5a={};_0x22be5a[_0x5f16('0x31')]=_[_0x5f16('0x2e')](db['SquareDetailsReport']['rawAttributes']);_0x22be5a['query']=_[_0x5f16('0x2e')](_0x22b792[_0x5f16('0x34')]);_0x22be5a[_0x5f16('0x2f')]=_[_0x5f16('0x30')](_0x22be5a[_0x5f16('0x31')],_0x22be5a['query']);_0x13f415[_0x5f16('0x32')]=_['intersection'](_0x22be5a[_0x5f16('0x31')],qs[_0x5f16('0x33')](_0x22b792['query'][_0x5f16('0x33')]));_0x13f415[_0x5f16('0x32')]=_0x13f415[_0x5f16('0x32')][_0x5f16('0x35')]?_0x13f415['attributes']:_0x22be5a[_0x5f16('0x31')];if(_0x22b792[_0x5f16('0x34')][_0x5f16('0x3d')]){_0x13f415[_0x5f16('0x3e')]=[{'all':!![]}];}_0x13f415=_[_0x5f16('0x3a')]({},_0x13f415,_0x22b792[_0x5f16('0x3c')]);return db[_0x5f16('0x28')][_0x5f16('0x44')](_0x13f415)[_0x5f16('0x23')](handleEntityNotFound(_0x357e2d,null))[_0x5f16('0x23')](respondWithResult(_0x357e2d,null))[_0x5f16('0x41')](handleError(_0x357e2d,null));};exports['create']=function(_0x48cffa,_0x27c62a){return db[_0x5f16('0x28')][_0x5f16('0x45')](_0x48cffa[_0x5f16('0x46')],{})[_0x5f16('0x23')](respondWithResult(_0x27c62a,0xc9))[_0x5f16('0x41')](handleError(_0x27c62a,null));};exports[_0x5f16('0x22')]=function(_0x222461,_0x3887e5){if(_0x222461[_0x5f16('0x46')]['id']){delete _0x222461['body']['id'];}return db['SquareDetailsReport'][_0x5f16('0x44')]({'where':{'id':_0x222461[_0x5f16('0x43')]['id']}})['then'](handleEntityNotFound(_0x3887e5,null))['then'](saveUpdates(_0x222461['body'],null))['then'](respondWithResult(_0x3887e5,null))[_0x5f16('0x41')](handleError(_0x3887e5,null));};exports[_0x5f16('0x24')]=function(_0x3fb059,_0x1b9b25){return db[_0x5f16('0x28')][_0x5f16('0x44')]({'where':{'id':_0x3fb059[_0x5f16('0x43')]['id']}})['then'](handleEntityNotFound(_0x1b9b25,null))[_0x5f16('0x23')](removeEntity(_0x1b9b25,null))[_0x5f16('0x41')](handleError(_0x1b9b25,null));};exports[_0x5f16('0x47')]=function(_0x47b447,_0x140326){return db[_0x5f16('0x28')][_0x5f16('0x47')]()['then'](respondWithResult(_0x140326,null))['catch'](handleError(_0x140326,null));};
\ No newline at end of file