Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index a8b9f2a..ae0ab4b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4ed2=['fields','attributes','hasOwnProperty','nolimit','sort','pick','where','merge','filter','options','includeAll','include','findAll','show','rawAttributes','catch','create','body','find','params','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','path','sox','ejs','fs-extra','lodash','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','reject','save','update','destroy','then','error','name','send','index','map','SquareDetailsReport','fieldName','type','key','query','keys','filters','intersection','model'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x4ed2,0x13d));var _0x24ed=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x4ed2[_0x57b54c];return _0x59cc19;};'use strict';var emlformat=require(_0x24ed('0x0'));var rimraf=require(_0x24ed('0x1'));var zipdir=require(_0x24ed('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x24ed('0x3'));var moment=require(_0x24ed('0x4'));var BPromise=require(_0x24ed('0x5'));var Mustache=require('mustache');var util=require('util');var path=require(_0x24ed('0x6'));var sox=require(_0x24ed('0x7'));var csv=require('to-csv');var ejs=require(_0x24ed('0x8'));var fs=require('fs');var fs_extra=require(_0x24ed('0x9'));var _=require(_0x24ed('0xa'));var squel=require(_0x24ed('0xb'));var crypto=require('crypto');var jsforce=require(_0x24ed('0xc'));var deskjs=require(_0x24ed('0xd'));var toCsv=require(_0x24ed('0xe'));var querystring=require(_0x24ed('0xf'));var Papa=require(_0x24ed('0x10'));var Redis=require(_0x24ed('0x11'));var authService=require(_0x24ed('0x12'));var qs=require(_0x24ed('0x13'));var as=require(_0x24ed('0x14'));var hardwareService=require(_0x24ed('0x15'));var logger=require(_0x24ed('0x16'))('api');var utils=require('../../config/utils');var config=require(_0x24ed('0x17'));var licenseUtil=require(_0x24ed('0x18'));var db=require(_0x24ed('0x19'))['db'];function respondWithStatusCode(_0x5e1cf7,_0x2e8811){_0x2e8811=_0x2e8811||0xcc;return function(_0xea470){if(_0xea470){return _0x5e1cf7[_0x24ed('0x1a')](_0x2e8811);}return _0x5e1cf7[_0x24ed('0x1b')](_0x2e8811)[_0x24ed('0x1c')]();};}function respondWithResult(_0x22ee47,_0xbc57c3){_0xbc57c3=_0xbc57c3||0xc8;return function(_0x5a7b69){if(_0x5a7b69){return _0x22ee47[_0x24ed('0x1b')](_0xbc57c3)[_0x24ed('0x1d')](_0x5a7b69);}};}function respondWithFilteredResult(_0x5d260f,_0x3c5129){return function(_0x34e1c2){if(_0x34e1c2){var _0x4f8af4=typeof _0x3c5129[_0x24ed('0x1e')]===_0x24ed('0x1f')&&typeof _0x3c5129[_0x24ed('0x20')]==='undefined';var _0x3f696f=_0x34e1c2[_0x24ed('0x21')];var _0xbdb421=_0x4f8af4?0x0:_0x3c5129[_0x24ed('0x1e')];var _0x142be8=_0x4f8af4?_0x34e1c2['count']:_0x3c5129[_0x24ed('0x1e')]+_0x3c5129['limit'];var _0x5a92c1;if(_0x142be8>=_0x3f696f){_0x142be8=_0x3f696f;_0x5a92c1=0xc8;}else{_0x5a92c1=0xce;}_0x5d260f[_0x24ed('0x1b')](_0x5a92c1);return _0x5d260f['set']('Content-Range',_0xbdb421+'-'+_0x142be8+'/'+_0x3f696f)['json'](_0x34e1c2);}return null;};}function patchUpdates(_0x466007){return function(_0xeabbbb){try{jsonpatch['apply'](_0xeabbbb,_0x466007,!![]);}catch(_0x37738f){return BPromise[_0x24ed('0x22')](_0x37738f);}return _0xeabbbb[_0x24ed('0x23')]();};}function saveUpdates(_0x589f49,_0x170661){return function(_0x2f1908){if(_0x2f1908){return _0x2f1908[_0x24ed('0x24')](_0x589f49)['then'](function(_0x67e0b7){return _0x67e0b7;});}return null;};}function removeEntity(_0x4693e6,_0x155abe){return function(_0x473b16){if(_0x473b16){return _0x473b16[_0x24ed('0x25')]()[_0x24ed('0x26')](function(){_0x4693e6[_0x24ed('0x1b')](0xcc)['end']();});}};}function handleEntityNotFound(_0x2cb83b,_0x402fcb){return function(_0x1a332b){if(!_0x1a332b){_0x2cb83b[_0x24ed('0x1a')](0x194);}return _0x1a332b;};}function handleError(_0x4c6112,_0x2a5518){_0x2a5518=_0x2a5518||0x1f4;return function(_0x20dfb2){logger[_0x24ed('0x27')](_0x20dfb2['stack']);if(_0x20dfb2['name']){delete _0x20dfb2[_0x24ed('0x28')];}_0x4c6112['status'](_0x2a5518)[_0x24ed('0x29')](_0x20dfb2);};}exports[_0x24ed('0x2a')]=function(_0x4b3ffd,_0x28a7f8){var _0xd109c5={},_0xf79095={},_0x49bb76={'count':0x0,'rows':[]};var _0x431b2c=_[_0x24ed('0x2b')](db[_0x24ed('0x2c')]['rawAttributes'],function(_0x4b675c){return{'name':_0x4b675c[_0x24ed('0x2d')],'type':_0x4b675c[_0x24ed('0x2e')][_0x24ed('0x2f')]};});_0xf79095['model']=_[_0x24ed('0x2b')](_0x431b2c,_0x24ed('0x28'));_0xf79095[_0x24ed('0x30')]=_[_0x24ed('0x31')](_0x4b3ffd[_0x24ed('0x30')]);_0xf79095[_0x24ed('0x32')]=_[_0x24ed('0x33')](_0xf79095[_0x24ed('0x34')],_0xf79095['query']);_0xd109c5['attributes']=_[_0x24ed('0x33')](_0xf79095['model'],qs[_0x24ed('0x35')](_0x4b3ffd[_0x24ed('0x30')][_0x24ed('0x35')]));_0xd109c5[_0x24ed('0x36')]=_0xd109c5[_0x24ed('0x36')]['length']?_0xd109c5[_0x24ed('0x36')]:_0xf79095[_0x24ed('0x34')];if(!_0x4b3ffd['query'][_0x24ed('0x37')](_0x24ed('0x38'))){_0xd109c5[_0x24ed('0x20')]=qs[_0x24ed('0x20')](_0x4b3ffd[_0x24ed('0x30')][_0x24ed('0x20')]);_0xd109c5['offset']=qs[_0x24ed('0x1e')](_0x4b3ffd['query']['offset']);}_0xd109c5['order']=qs[_0x24ed('0x39')](_0x4b3ffd['query']['sort']);_0xd109c5['where']=qs['filters'](_[_0x24ed('0x3a')](_0x4b3ffd[_0x24ed('0x30')],_0xf79095[_0x24ed('0x32')]),_0x431b2c);if(_0x4b3ffd[_0x24ed('0x30')]['filter']){_0xd109c5[_0x24ed('0x3b')]=_[_0x24ed('0x3c')](_0xd109c5[_0x24ed('0x3b')],{'$or':_['map'](_0x431b2c,function(_0x1be267){if(_0x1be267['type']!=='VIRTUAL'){var _0x59b7e0={};_0x59b7e0[_0x1be267['name']]={'$like':'%'+_0x4b3ffd['query'][_0x24ed('0x3d')]+'%'};return _0x59b7e0;}})});}_0xd109c5=_[_0x24ed('0x3c')]({},_0xd109c5,_0x4b3ffd[_0x24ed('0x3e')]);var _0x3df4cc={'where':_0xd109c5[_0x24ed('0x3b')]};return db[_0x24ed('0x2c')]['count'](_0x3df4cc)['then'](function(_0x4c65c9){_0x49bb76['count']=_0x4c65c9;if(_0x4b3ffd[_0x24ed('0x30')][_0x24ed('0x3f')]){_0xd109c5[_0x24ed('0x40')]=[{'all':!![]}];}return db['SquareDetailsReport'][_0x24ed('0x41')](_0xd109c5);})[_0x24ed('0x26')](function(_0x54fa2c){_0x49bb76['rows']=_0x54fa2c;return _0x49bb76;})['then'](respondWithFilteredResult(_0x28a7f8,_0xd109c5))['catch'](handleError(_0x28a7f8,null));};exports[_0x24ed('0x42')]=function(_0x47b806,_0x54fe48){var _0x19da1f={'raw':!![],'where':{'id':_0x47b806['params']['id']}},_0x5f22a6={};_0x5f22a6[_0x24ed('0x34')]=_[_0x24ed('0x31')](db[_0x24ed('0x2c')][_0x24ed('0x43')]);_0x5f22a6[_0x24ed('0x30')]=_[_0x24ed('0x31')](_0x47b806[_0x24ed('0x30')]);_0x5f22a6[_0x24ed('0x32')]=_[_0x24ed('0x33')](_0x5f22a6['model'],_0x5f22a6[_0x24ed('0x30')]);_0x19da1f['attributes']=_[_0x24ed('0x33')](_0x5f22a6[_0x24ed('0x34')],qs[_0x24ed('0x35')](_0x47b806[_0x24ed('0x30')][_0x24ed('0x35')]));_0x19da1f['attributes']=_0x19da1f['attributes']['length']?_0x19da1f[_0x24ed('0x36')]:_0x5f22a6[_0x24ed('0x34')];if(_0x47b806[_0x24ed('0x30')][_0x24ed('0x3f')]){_0x19da1f[_0x24ed('0x40')]=[{'all':!![]}];}_0x19da1f=_[_0x24ed('0x3c')]({},_0x19da1f,_0x47b806[_0x24ed('0x3e')]);return db[_0x24ed('0x2c')]['find'](_0x19da1f)[_0x24ed('0x26')](handleEntityNotFound(_0x54fe48,null))[_0x24ed('0x26')](respondWithResult(_0x54fe48,null))[_0x24ed('0x44')](handleError(_0x54fe48,null));};exports[_0x24ed('0x45')]=function(_0x305a18,_0x5cee36){return db[_0x24ed('0x2c')][_0x24ed('0x45')](_0x305a18[_0x24ed('0x46')],{})[_0x24ed('0x26')](respondWithResult(_0x5cee36,0xc9))[_0x24ed('0x44')](handleError(_0x5cee36,null));};exports[_0x24ed('0x24')]=function(_0x19f42a,_0x23f4a8){if(_0x19f42a[_0x24ed('0x46')]['id']){delete _0x19f42a['body']['id'];}return db[_0x24ed('0x2c')][_0x24ed('0x47')]({'where':{'id':_0x19f42a[_0x24ed('0x48')]['id']}})['then'](handleEntityNotFound(_0x23f4a8,null))[_0x24ed('0x26')](saveUpdates(_0x19f42a[_0x24ed('0x46')],null))[_0x24ed('0x26')](respondWithResult(_0x23f4a8,null))[_0x24ed('0x44')](handleError(_0x23f4a8,null));};exports[_0x24ed('0x25')]=function(_0xf97c27,_0x3949ca){return db[_0x24ed('0x2c')]['find']({'where':{'id':_0xf97c27[_0x24ed('0x48')]['id']}})[_0x24ed('0x26')](handleEntityNotFound(_0x3949ca,null))['then'](removeEntity(_0x3949ca,null))['catch'](handleError(_0x3949ca,null));};exports['describe']=function(_0x3bf963,_0x195558){return db[_0x24ed('0x2c')][_0x24ed('0x49')]()[_0x24ed('0x26')](respondWithResult(_0x195558,null))[_0x24ed('0x44')](handleError(_0x195558,null));};
\ No newline at end of file
+var _0x5db3=['destroy','error','stack','name','index','SquareDetailsReport','rawAttributes','type','key','model','map','query','keys','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where','filters','filter','merge','VIRTUAL','includeAll','include','findAll','rows','catch','show','params','options','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','fs-extra','lodash','squel','desk.js','to-csv','querystring','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','status','end','json','offset','undefined','limit','count','Content-Range','reject','save','update','then'];(function(_0x257642,_0x270a80){var _0x3d813b=function(_0x2a1c8a){while(--_0x2a1c8a){_0x257642['push'](_0x257642['shift']());}};_0x3d813b(++_0x270a80);}(_0x5db3,0x1a6));var _0x35db=function(_0x39d39d,_0x5586bd){_0x39d39d=_0x39d39d-0x0;var _0x577ac3=_0x5db3[_0x39d39d];return _0x577ac3;};'use strict';var emlformat=require(_0x35db('0x0'));var rimraf=require(_0x35db('0x1'));var zipdir=require(_0x35db('0x2'));var jsonpatch=require(_0x35db('0x3'));var rp=require(_0x35db('0x4'));var moment=require('moment');var BPromise=require(_0x35db('0x5'));var Mustache=require(_0x35db('0x6'));var util=require(_0x35db('0x7'));var path=require(_0x35db('0x8'));var sox=require(_0x35db('0x9'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x35db('0xa'));var _=require(_0x35db('0xb'));var squel=require(_0x35db('0xc'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x35db('0xd'));var toCsv=require(_0x35db('0xe'));var querystring=require(_0x35db('0xf'));var Papa=require('papaparse');var Redis=require(_0x35db('0x10'));var authService=require(_0x35db('0x11'));var qs=require(_0x35db('0x12'));var as=require(_0x35db('0x13'));var hardwareService=require(_0x35db('0x14'));var logger=require(_0x35db('0x15'))(_0x35db('0x16'));var utils=require(_0x35db('0x17'));var config=require(_0x35db('0x18'));var licenseUtil=require(_0x35db('0x19'));var db=require(_0x35db('0x1a'))['db'];function respondWithStatusCode(_0x1ab600,_0x577520){_0x577520=_0x577520||0xcc;return function(_0x5c64f7){if(_0x5c64f7){return _0x1ab600[_0x35db('0x1b')](_0x577520);}return _0x1ab600[_0x35db('0x1c')](_0x577520)[_0x35db('0x1d')]();};}function respondWithResult(_0x399636,_0x6fb8cc){_0x6fb8cc=_0x6fb8cc||0xc8;return function(_0x54aa74){if(_0x54aa74){return _0x399636[_0x35db('0x1c')](_0x6fb8cc)[_0x35db('0x1e')](_0x54aa74);}};}function respondWithFilteredResult(_0x41a29c,_0x48e993){return function(_0x5f18ff){if(_0x5f18ff){var _0x6862e1=typeof _0x48e993[_0x35db('0x1f')]===_0x35db('0x20')&&typeof _0x48e993[_0x35db('0x21')]===_0x35db('0x20');var _0x2bfeaf=_0x5f18ff[_0x35db('0x22')];var _0x5c94f8=_0x6862e1?0x0:_0x48e993[_0x35db('0x1f')];var _0x3c65de=_0x6862e1?_0x5f18ff[_0x35db('0x22')]:_0x48e993[_0x35db('0x1f')]+_0x48e993[_0x35db('0x21')];var _0x39b943;if(_0x3c65de>=_0x2bfeaf){_0x3c65de=_0x2bfeaf;_0x39b943=0xc8;}else{_0x39b943=0xce;}_0x41a29c['status'](_0x39b943);return _0x41a29c['set'](_0x35db('0x23'),_0x5c94f8+'-'+_0x3c65de+'/'+_0x2bfeaf)[_0x35db('0x1e')](_0x5f18ff);}return null;};}function patchUpdates(_0x1f878a){return function(_0x55f1af){try{jsonpatch['apply'](_0x55f1af,_0x1f878a,!![]);}catch(_0x313cab){return BPromise[_0x35db('0x24')](_0x313cab);}return _0x55f1af[_0x35db('0x25')]();};}function saveUpdates(_0x288045,_0x59076e){return function(_0x56ea28){if(_0x56ea28){return _0x56ea28[_0x35db('0x26')](_0x288045)[_0x35db('0x27')](function(_0xc4484a){return _0xc4484a;});}return null;};}function removeEntity(_0x18d58d,_0xbec53d){return function(_0x3f026c){if(_0x3f026c){return _0x3f026c[_0x35db('0x28')]()[_0x35db('0x27')](function(){_0x18d58d['status'](0xcc)[_0x35db('0x1d')]();});}};}function handleEntityNotFound(_0xeb8d7c,_0x1d8998){return function(_0x5b5db3){if(!_0x5b5db3){_0xeb8d7c[_0x35db('0x1b')](0x194);}return _0x5b5db3;};}function handleError(_0x41d807,_0x89db98){_0x89db98=_0x89db98||0x1f4;return function(_0x543fb2){logger[_0x35db('0x29')](_0x543fb2[_0x35db('0x2a')]);if(_0x543fb2[_0x35db('0x2b')]){delete _0x543fb2[_0x35db('0x2b')];}_0x41d807[_0x35db('0x1c')](_0x89db98)['send'](_0x543fb2);};}exports[_0x35db('0x2c')]=function(_0x5bfed5,_0x5af8fe){var _0x14d701={},_0x256812={},_0x3da7b7={'count':0x0,'rows':[]};var _0x2f674a=_['map'](db[_0x35db('0x2d')][_0x35db('0x2e')],function(_0x4f5e33){return{'name':_0x4f5e33['fieldName'],'type':_0x4f5e33[_0x35db('0x2f')][_0x35db('0x30')]};});_0x256812[_0x35db('0x31')]=_[_0x35db('0x32')](_0x2f674a,_0x35db('0x2b'));_0x256812[_0x35db('0x33')]=_[_0x35db('0x34')](_0x5bfed5['query']);_0x256812['filters']=_[_0x35db('0x35')](_0x256812[_0x35db('0x31')],_0x256812[_0x35db('0x33')]);_0x14d701[_0x35db('0x36')]=_[_0x35db('0x35')](_0x256812[_0x35db('0x31')],qs['fields'](_0x5bfed5[_0x35db('0x33')][_0x35db('0x37')]));_0x14d701[_0x35db('0x36')]=_0x14d701[_0x35db('0x36')]['length']?_0x14d701[_0x35db('0x36')]:_0x256812[_0x35db('0x31')];if(!_0x5bfed5['query'][_0x35db('0x38')](_0x35db('0x39'))){_0x14d701[_0x35db('0x21')]=qs[_0x35db('0x21')](_0x5bfed5['query'][_0x35db('0x21')]);_0x14d701[_0x35db('0x1f')]=qs[_0x35db('0x1f')](_0x5bfed5[_0x35db('0x33')][_0x35db('0x1f')]);}_0x14d701[_0x35db('0x3a')]=qs[_0x35db('0x3b')](_0x5bfed5[_0x35db('0x33')][_0x35db('0x3b')]);_0x14d701[_0x35db('0x3c')]=qs['filters'](_['pick'](_0x5bfed5['query'],_0x256812[_0x35db('0x3d')]),_0x2f674a);if(_0x5bfed5['query'][_0x35db('0x3e')]){_0x14d701[_0x35db('0x3c')]=_[_0x35db('0x3f')](_0x14d701[_0x35db('0x3c')],{'$or':_['map'](_0x2f674a,function(_0x2ee1f4){if(_0x2ee1f4[_0x35db('0x2f')]!==_0x35db('0x40')){var _0x485b77={};_0x485b77[_0x2ee1f4[_0x35db('0x2b')]]={'$like':'%'+_0x5bfed5[_0x35db('0x33')][_0x35db('0x3e')]+'%'};return _0x485b77;}})});}_0x14d701=_[_0x35db('0x3f')]({},_0x14d701,_0x5bfed5['options']);var _0x53841c={'where':_0x14d701['where']};return db[_0x35db('0x2d')]['count'](_0x53841c)[_0x35db('0x27')](function(_0x57e9ef){_0x3da7b7['count']=_0x57e9ef;if(_0x5bfed5[_0x35db('0x33')][_0x35db('0x41')]){_0x14d701[_0x35db('0x42')]=[{'all':!![]}];}return db[_0x35db('0x2d')][_0x35db('0x43')](_0x14d701);})[_0x35db('0x27')](function(_0x5e48c6){_0x3da7b7[_0x35db('0x44')]=_0x5e48c6;return _0x3da7b7;})[_0x35db('0x27')](respondWithFilteredResult(_0x5af8fe,_0x14d701))[_0x35db('0x45')](handleError(_0x5af8fe,null));};exports[_0x35db('0x46')]=function(_0x378e30,_0x58af78){var _0x17dad0={'raw':!![],'where':{'id':_0x378e30[_0x35db('0x47')]['id']}},_0x27b19c={};_0x27b19c[_0x35db('0x31')]=_[_0x35db('0x34')](db[_0x35db('0x2d')][_0x35db('0x2e')]);_0x27b19c['query']=_[_0x35db('0x34')](_0x378e30[_0x35db('0x33')]);_0x27b19c[_0x35db('0x3d')]=_[_0x35db('0x35')](_0x27b19c[_0x35db('0x31')],_0x27b19c[_0x35db('0x33')]);_0x17dad0[_0x35db('0x36')]=_[_0x35db('0x35')](_0x27b19c[_0x35db('0x31')],qs[_0x35db('0x37')](_0x378e30[_0x35db('0x33')]['fields']));_0x17dad0[_0x35db('0x36')]=_0x17dad0['attributes']['length']?_0x17dad0['attributes']:_0x27b19c['model'];if(_0x378e30[_0x35db('0x33')]['includeAll']){_0x17dad0[_0x35db('0x42')]=[{'all':!![]}];}_0x17dad0=_[_0x35db('0x3f')]({},_0x17dad0,_0x378e30[_0x35db('0x48')]);return db[_0x35db('0x2d')][_0x35db('0x49')](_0x17dad0)[_0x35db('0x27')](handleEntityNotFound(_0x58af78,null))['then'](respondWithResult(_0x58af78,null))[_0x35db('0x45')](handleError(_0x58af78,null));};exports['create']=function(_0x5f217d,_0xe20ffe){return db[_0x35db('0x2d')][_0x35db('0x4a')](_0x5f217d[_0x35db('0x4b')],{})[_0x35db('0x27')](respondWithResult(_0xe20ffe,0xc9))[_0x35db('0x45')](handleError(_0xe20ffe,null));};exports[_0x35db('0x26')]=function(_0x5393f4,_0x4eb617){if(_0x5393f4['body']['id']){delete _0x5393f4[_0x35db('0x4b')]['id'];}return db[_0x35db('0x2d')][_0x35db('0x49')]({'where':{'id':_0x5393f4[_0x35db('0x47')]['id']}})[_0x35db('0x27')](handleEntityNotFound(_0x4eb617,null))[_0x35db('0x27')](saveUpdates(_0x5393f4[_0x35db('0x4b')],null))[_0x35db('0x27')](respondWithResult(_0x4eb617,null))['catch'](handleError(_0x4eb617,null));};exports['destroy']=function(_0x2d8db3,_0x59a722){return db[_0x35db('0x2d')][_0x35db('0x49')]({'where':{'id':_0x2d8db3[_0x35db('0x47')]['id']}})[_0x35db('0x27')](handleEntityNotFound(_0x59a722,null))['then'](removeEntity(_0x59a722,null))['catch'](handleError(_0x59a722,null));};exports[_0x35db('0x4c')]=function(_0x2b605d,_0x1bdce8){return db[_0x35db('0x2d')][_0x35db('0x4c')]()['then'](respondWithResult(_0x1bdce8,null))[_0x35db('0x45')](handleError(_0x1bdce8,null));};
\ No newline at end of file