Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / squareReport / squareReport.controller.js
index b298e31..988a33b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd42f=['catch','show','rawAttributes','options','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','fs-extra','squel','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../mysqldb','sendStatus','status','end','json','undefined','limit','offset','count','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','send','index','map','SquareReport','fieldName','type','model','query','keys','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','VIRTUAL','includeAll','include','findAll'];(function(_0xb3f66a,_0x211103){var _0x1db82a=function(_0x273993){while(--_0x273993){_0xb3f66a['push'](_0xb3f66a['shift']());}};_0x1db82a(++_0x211103);}(_0xd42f,0x130));var _0xfd42=function(_0x45011a,_0x41c533){_0x45011a=_0x45011a-0x0;var _0xfcdd4=_0xd42f[_0x45011a];return _0xfcdd4;};'use strict';var emlformat=require(_0xfd42('0x0'));var rimraf=require(_0xfd42('0x1'));var zipdir=require(_0xfd42('0x2'));var jsonpatch=require(_0xfd42('0x3'));var rp=require(_0xfd42('0x4'));var moment=require(_0xfd42('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xfd42('0x6'));var util=require(_0xfd42('0x7'));var path=require(_0xfd42('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xfd42('0x9'));var _=require('lodash');var squel=require(_0xfd42('0xa'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xfd42('0xb'));var toCsv=require(_0xfd42('0xc'));var querystring=require(_0xfd42('0xd'));var Papa=require(_0xfd42('0xe'));var Redis=require(_0xfd42('0xf'));var authService=require(_0xfd42('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0xfd42('0x11'));var hardwareService=require(_0xfd42('0x12'));var logger=require(_0xfd42('0x13'))(_0xfd42('0x14'));var utils=require('../../config/utils');var config=require(_0xfd42('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0xfd42('0x16'))['db'];function respondWithStatusCode(_0x206d00,_0x2e3e17){_0x2e3e17=_0x2e3e17||0xcc;return function(_0x3d9ac0){if(_0x3d9ac0){return _0x206d00[_0xfd42('0x17')](_0x2e3e17);}return _0x206d00[_0xfd42('0x18')](_0x2e3e17)[_0xfd42('0x19')]();};}function respondWithResult(_0x27fa2e,_0x1ca889){_0x1ca889=_0x1ca889||0xc8;return function(_0x2bf879){if(_0x2bf879){return _0x27fa2e[_0xfd42('0x18')](_0x1ca889)[_0xfd42('0x1a')](_0x2bf879);}};}function respondWithFilteredResult(_0x436818,_0x2c6a7f){return function(_0x47df85){if(_0x47df85){var _0x109a71=typeof _0x2c6a7f['offset']===_0xfd42('0x1b')&&typeof _0x2c6a7f[_0xfd42('0x1c')]==='undefined';var _0x298c14=_0x47df85['count'];var _0x1d4c23=_0x109a71?0x0:_0x2c6a7f[_0xfd42('0x1d')];var _0x35b442=_0x109a71?_0x47df85[_0xfd42('0x1e')]:_0x2c6a7f['offset']+_0x2c6a7f[_0xfd42('0x1c')];var _0x19927a;if(_0x35b442>=_0x298c14){_0x35b442=_0x298c14;_0x19927a=0xc8;}else{_0x19927a=0xce;}_0x436818[_0xfd42('0x18')](_0x19927a);return _0x436818['set'](_0xfd42('0x1f'),_0x1d4c23+'-'+_0x35b442+'/'+_0x298c14)[_0xfd42('0x1a')](_0x47df85);}return null;};}function patchUpdates(_0x542ea7){return function(_0x53364b){try{jsonpatch[_0xfd42('0x20')](_0x53364b,_0x542ea7,!![]);}catch(_0x37be6d){return BPromise[_0xfd42('0x21')](_0x37be6d);}return _0x53364b[_0xfd42('0x22')]();};}function saveUpdates(_0xcc3d6a,_0x34c842){return function(_0x429be0){if(_0x429be0){return _0x429be0[_0xfd42('0x23')](_0xcc3d6a)[_0xfd42('0x24')](function(_0x45fd57){return _0x45fd57;});}return null;};}function removeEntity(_0x5e6990,_0x38fbdd){return function(_0x334197){if(_0x334197){return _0x334197[_0xfd42('0x25')]()['then'](function(){_0x5e6990[_0xfd42('0x18')](0xcc)[_0xfd42('0x19')]();});}};}function handleEntityNotFound(_0x3dea39,_0x2b16c7){return function(_0xbb7915){if(!_0xbb7915){_0x3dea39[_0xfd42('0x17')](0x194);}return _0xbb7915;};}function handleError(_0x4af4d0,_0x8c192d){_0x8c192d=_0x8c192d||0x1f4;return function(_0x1e0a96){logger[_0xfd42('0x26')](_0x1e0a96[_0xfd42('0x27')]);if(_0x1e0a96['name']){delete _0x1e0a96[_0xfd42('0x28')];}_0x4af4d0[_0xfd42('0x18')](_0x8c192d)[_0xfd42('0x29')](_0x1e0a96);};}exports[_0xfd42('0x2a')]=function(_0x1048b5,_0x125652){var _0x3e7dd7={},_0x5b42fb={},_0xa0f495={'count':0x0,'rows':[]};var _0x42cc56=_[_0xfd42('0x2b')](db[_0xfd42('0x2c')]['rawAttributes'],function(_0x3f8e02){return{'name':_0x3f8e02[_0xfd42('0x2d')],'type':_0x3f8e02[_0xfd42('0x2e')]['key']};});_0x5b42fb[_0xfd42('0x2f')]=_[_0xfd42('0x2b')](_0x42cc56,'name');_0x5b42fb[_0xfd42('0x30')]=_[_0xfd42('0x31')](_0x1048b5[_0xfd42('0x30')]);_0x5b42fb[_0xfd42('0x32')]=_['intersection'](_0x5b42fb['model'],_0x5b42fb['query']);_0x3e7dd7[_0xfd42('0x33')]=_[_0xfd42('0x34')](_0x5b42fb['model'],qs[_0xfd42('0x35')](_0x1048b5['query']['fields']));_0x3e7dd7[_0xfd42('0x33')]=_0x3e7dd7['attributes'][_0xfd42('0x36')]?_0x3e7dd7['attributes']:_0x5b42fb[_0xfd42('0x2f')];if(!_0x1048b5[_0xfd42('0x30')][_0xfd42('0x37')](_0xfd42('0x38'))){_0x3e7dd7[_0xfd42('0x1c')]=qs[_0xfd42('0x1c')](_0x1048b5[_0xfd42('0x30')][_0xfd42('0x1c')]);_0x3e7dd7[_0xfd42('0x1d')]=qs['offset'](_0x1048b5[_0xfd42('0x30')]['offset']);}_0x3e7dd7[_0xfd42('0x39')]=qs[_0xfd42('0x3a')](_0x1048b5[_0xfd42('0x30')]['sort']);_0x3e7dd7[_0xfd42('0x3b')]=qs[_0xfd42('0x32')](_['pick'](_0x1048b5[_0xfd42('0x30')],_0x5b42fb[_0xfd42('0x32')]),_0x42cc56);if(_0x1048b5[_0xfd42('0x30')][_0xfd42('0x3c')]){_0x3e7dd7[_0xfd42('0x3b')]=_[_0xfd42('0x3d')](_0x3e7dd7[_0xfd42('0x3b')],{'$or':_[_0xfd42('0x2b')](_0x42cc56,function(_0x4760fd){if(_0x4760fd[_0xfd42('0x2e')]!==_0xfd42('0x3e')){var _0x351c8c={};_0x351c8c[_0x4760fd[_0xfd42('0x28')]]={'$like':'%'+_0x1048b5[_0xfd42('0x30')][_0xfd42('0x3c')]+'%'};return _0x351c8c;}})});}_0x3e7dd7=_[_0xfd42('0x3d')]({},_0x3e7dd7,_0x1048b5['options']);var _0x529d93={'where':_0x3e7dd7['where']};return db[_0xfd42('0x2c')][_0xfd42('0x1e')](_0x529d93)['then'](function(_0x4de96a){_0xa0f495[_0xfd42('0x1e')]=_0x4de96a;if(_0x1048b5[_0xfd42('0x30')][_0xfd42('0x3f')]){_0x3e7dd7[_0xfd42('0x40')]=[{'all':!![]}];}return db['SquareReport'][_0xfd42('0x41')](_0x3e7dd7);})[_0xfd42('0x24')](function(_0x479066){_0xa0f495['rows']=_0x479066;return _0xa0f495;})[_0xfd42('0x24')](respondWithFilteredResult(_0x125652,_0x3e7dd7))[_0xfd42('0x42')](handleError(_0x125652,null));};exports[_0xfd42('0x43')]=function(_0x50c200,_0x3da272){var _0x17567c={'raw':!![],'where':{'id':_0x50c200['params']['id']}},_0x4a4efb={};_0x4a4efb[_0xfd42('0x2f')]=_[_0xfd42('0x31')](db[_0xfd42('0x2c')][_0xfd42('0x44')]);_0x4a4efb[_0xfd42('0x30')]=_[_0xfd42('0x31')](_0x50c200[_0xfd42('0x30')]);_0x4a4efb[_0xfd42('0x32')]=_['intersection'](_0x4a4efb['model'],_0x4a4efb[_0xfd42('0x30')]);_0x17567c[_0xfd42('0x33')]=_['intersection'](_0x4a4efb[_0xfd42('0x2f')],qs['fields'](_0x50c200[_0xfd42('0x30')][_0xfd42('0x35')]));_0x17567c[_0xfd42('0x33')]=_0x17567c[_0xfd42('0x33')][_0xfd42('0x36')]?_0x17567c[_0xfd42('0x33')]:_0x4a4efb[_0xfd42('0x2f')];if(_0x50c200[_0xfd42('0x30')][_0xfd42('0x3f')]){_0x17567c[_0xfd42('0x40')]=[{'all':!![]}];}_0x17567c=_[_0xfd42('0x3d')]({},_0x17567c,_0x50c200[_0xfd42('0x45')]);return db[_0xfd42('0x2c')]['find'](_0x17567c)[_0xfd42('0x24')](handleEntityNotFound(_0x3da272,null))[_0xfd42('0x24')](respondWithResult(_0x3da272,null))['catch'](handleError(_0x3da272,null));};exports[_0xfd42('0x46')]=function(_0x5eb3b4,_0x538780){return db[_0xfd42('0x2c')][_0xfd42('0x46')](_0x5eb3b4[_0xfd42('0x47')],{})[_0xfd42('0x24')](respondWithResult(_0x538780,0xc9))['catch'](handleError(_0x538780,null));};exports[_0xfd42('0x23')]=function(_0x4921f3,_0x26e1ad){if(_0x4921f3[_0xfd42('0x47')]['id']){delete _0x4921f3['body']['id'];}return db[_0xfd42('0x2c')]['find']({'where':{'id':_0x4921f3[_0xfd42('0x48')]['id']}})[_0xfd42('0x24')](handleEntityNotFound(_0x26e1ad,null))[_0xfd42('0x24')](saveUpdates(_0x4921f3['body'],null))[_0xfd42('0x24')](respondWithResult(_0x26e1ad,null))[_0xfd42('0x42')](handleError(_0x26e1ad,null));};exports[_0xfd42('0x25')]=function(_0x14db5a,_0x5b5384){return db['SquareReport']['find']({'where':{'id':_0x14db5a[_0xfd42('0x48')]['id']}})[_0xfd42('0x24')](handleEntityNotFound(_0x5b5384,null))[_0xfd42('0x24')](removeEntity(_0x5b5384,null))['catch'](handleError(_0x5b5384,null));};exports[_0xfd42('0x49')]=function(_0x4515be,_0xab5c3b){return db[_0xfd42('0x2c')][_0xfd42('0x49')]()[_0xfd42('0x24')](respondWithResult(_0xab5c3b,null))[_0xfd42('0x42')](handleError(_0xab5c3b,null));};
\ No newline at end of file
+var _0xc9bf=['params','rawAttributes','create','body','find','describe','eml-format','rimraf','request-promise','bluebird','mustache','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','json','offset','undefined','count','limit','reject','save','update','then','destroy','end','stack','name','send','index','fieldName','key','model','map','query','keys','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filters','pick','filter','VIRTUAL','merge','options','includeAll','include','SquareReport','findAll','rows','catch','show'];(function(_0x2c3869,_0x21269c){var _0xf7ef10=function(_0x165435){while(--_0x165435){_0x2c3869['push'](_0x2c3869['shift']());}};_0xf7ef10(++_0x21269c);}(_0xc9bf,0x94));var _0xfc9b=function(_0x16597d,_0x570f93){_0x16597d=_0x16597d-0x0;var _0x1c79bb=_0xc9bf[_0x16597d];return _0x1c79bb;};'use strict';var emlformat=require(_0xfc9b('0x0'));var rimraf=require(_0xfc9b('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0xfc9b('0x2'));var moment=require('moment');var BPromise=require(_0xfc9b('0x3'));var Mustache=require(_0xfc9b('0x4'));var util=require('util');var path=require('path');var sox=require(_0xfc9b('0x5'));var csv=require(_0xfc9b('0x6'));var ejs=require(_0xfc9b('0x7'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xfc9b('0x8'));var squel=require(_0xfc9b('0x9'));var crypto=require(_0xfc9b('0xa'));var jsforce=require(_0xfc9b('0xb'));var deskjs=require(_0xfc9b('0xc'));var toCsv=require(_0xfc9b('0x6'));var querystring=require(_0xfc9b('0xd'));var Papa=require(_0xfc9b('0xe'));var Redis=require('ioredis');var authService=require(_0xfc9b('0xf'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xfc9b('0x10'))(_0xfc9b('0x11'));var utils=require(_0xfc9b('0x12'));var config=require(_0xfc9b('0x13'));var licenseUtil=require(_0xfc9b('0x14'));var db=require(_0xfc9b('0x15'))['db'];function respondWithStatusCode(_0x34d524,_0x577ffb){_0x577ffb=_0x577ffb||0xcc;return function(_0x213cb8){if(_0x213cb8){return _0x34d524['sendStatus'](_0x577ffb);}return _0x34d524[_0xfc9b('0x16')](_0x577ffb)['end']();};}function respondWithResult(_0x140290,_0xa444ec){_0xa444ec=_0xa444ec||0xc8;return function(_0xedb28f){if(_0xedb28f){return _0x140290[_0xfc9b('0x16')](_0xa444ec)[_0xfc9b('0x17')](_0xedb28f);}};}function respondWithFilteredResult(_0x243e84,_0x4bcbeb){return function(_0x5cccbe){if(_0x5cccbe){var _0x47221b=typeof _0x4bcbeb[_0xfc9b('0x18')]===_0xfc9b('0x19')&&typeof _0x4bcbeb['limit']===_0xfc9b('0x19');var _0x1a8747=_0x5cccbe[_0xfc9b('0x1a')];var _0x1a541f=_0x47221b?0x0:_0x4bcbeb[_0xfc9b('0x18')];var _0x5e19da=_0x47221b?_0x5cccbe[_0xfc9b('0x1a')]:_0x4bcbeb[_0xfc9b('0x18')]+_0x4bcbeb[_0xfc9b('0x1b')];var _0x15ff11;if(_0x5e19da>=_0x1a8747){_0x5e19da=_0x1a8747;_0x15ff11=0xc8;}else{_0x15ff11=0xce;}_0x243e84[_0xfc9b('0x16')](_0x15ff11);return _0x243e84['set']('Content-Range',_0x1a541f+'-'+_0x5e19da+'/'+_0x1a8747)[_0xfc9b('0x17')](_0x5cccbe);}return null;};}function patchUpdates(_0x2fe33b){return function(_0x59a8db){try{jsonpatch['apply'](_0x59a8db,_0x2fe33b,!![]);}catch(_0x5698a0){return BPromise[_0xfc9b('0x1c')](_0x5698a0);}return _0x59a8db[_0xfc9b('0x1d')]();};}function saveUpdates(_0x401f93,_0x5bc148){return function(_0x552ad9){if(_0x552ad9){return _0x552ad9[_0xfc9b('0x1e')](_0x401f93)[_0xfc9b('0x1f')](function(_0x4979ab){return _0x4979ab;});}return null;};}function removeEntity(_0x25aa81,_0x3191fd){return function(_0x17d64a){if(_0x17d64a){return _0x17d64a[_0xfc9b('0x20')]()[_0xfc9b('0x1f')](function(){_0x25aa81[_0xfc9b('0x16')](0xcc)[_0xfc9b('0x21')]();});}};}function handleEntityNotFound(_0x567557,_0x58b125){return function(_0x406359){if(!_0x406359){_0x567557['sendStatus'](0x194);}return _0x406359;};}function handleError(_0x2093e4,_0x1d86e9){_0x1d86e9=_0x1d86e9||0x1f4;return function(_0x1bb846){logger['error'](_0x1bb846[_0xfc9b('0x22')]);if(_0x1bb846[_0xfc9b('0x23')]){delete _0x1bb846[_0xfc9b('0x23')];}_0x2093e4[_0xfc9b('0x16')](_0x1d86e9)[_0xfc9b('0x24')](_0x1bb846);};}exports[_0xfc9b('0x25')]=function(_0x3175fb,_0x103bb3){var _0x4d905f={},_0x1e652c={},_0x4e6a39={'count':0x0,'rows':[]};var _0x405dfd=_['map'](db['SquareReport']['rawAttributes'],function(_0x841329){return{'name':_0x841329[_0xfc9b('0x26')],'type':_0x841329['type'][_0xfc9b('0x27')]};});_0x1e652c[_0xfc9b('0x28')]=_[_0xfc9b('0x29')](_0x405dfd,_0xfc9b('0x23'));_0x1e652c[_0xfc9b('0x2a')]=_[_0xfc9b('0x2b')](_0x3175fb[_0xfc9b('0x2a')]);_0x1e652c['filters']=_[_0xfc9b('0x2c')](_0x1e652c[_0xfc9b('0x28')],_0x1e652c[_0xfc9b('0x2a')]);_0x4d905f[_0xfc9b('0x2d')]=_[_0xfc9b('0x2c')](_0x1e652c['model'],qs[_0xfc9b('0x2e')](_0x3175fb[_0xfc9b('0x2a')][_0xfc9b('0x2e')]));_0x4d905f[_0xfc9b('0x2d')]=_0x4d905f[_0xfc9b('0x2d')][_0xfc9b('0x2f')]?_0x4d905f['attributes']:_0x1e652c[_0xfc9b('0x28')];if(!_0x3175fb[_0xfc9b('0x2a')][_0xfc9b('0x30')](_0xfc9b('0x31'))){_0x4d905f[_0xfc9b('0x1b')]=qs[_0xfc9b('0x1b')](_0x3175fb[_0xfc9b('0x2a')]['limit']);_0x4d905f['offset']=qs[_0xfc9b('0x18')](_0x3175fb[_0xfc9b('0x2a')][_0xfc9b('0x18')]);}_0x4d905f['order']=qs[_0xfc9b('0x32')](_0x3175fb['query']['sort']);_0x4d905f[_0xfc9b('0x33')]=qs[_0xfc9b('0x34')](_[_0xfc9b('0x35')](_0x3175fb['query'],_0x1e652c[_0xfc9b('0x34')]),_0x405dfd);if(_0x3175fb[_0xfc9b('0x2a')][_0xfc9b('0x36')]){_0x4d905f[_0xfc9b('0x33')]=_['merge'](_0x4d905f['where'],{'$or':_[_0xfc9b('0x29')](_0x405dfd,function(_0x1e89a6){if(_0x1e89a6['type']!==_0xfc9b('0x37')){var _0x1b4610={};_0x1b4610[_0x1e89a6[_0xfc9b('0x23')]]={'$like':'%'+_0x3175fb[_0xfc9b('0x2a')][_0xfc9b('0x36')]+'%'};return _0x1b4610;}})});}_0x4d905f=_[_0xfc9b('0x38')]({},_0x4d905f,_0x3175fb[_0xfc9b('0x39')]);var _0x5ccaec={'where':_0x4d905f['where']};return db['SquareReport'][_0xfc9b('0x1a')](_0x5ccaec)[_0xfc9b('0x1f')](function(_0x5e343f){_0x4e6a39[_0xfc9b('0x1a')]=_0x5e343f;if(_0x3175fb[_0xfc9b('0x2a')][_0xfc9b('0x3a')]){_0x4d905f[_0xfc9b('0x3b')]=[{'all':!![]}];}return db[_0xfc9b('0x3c')][_0xfc9b('0x3d')](_0x4d905f);})['then'](function(_0x898c55){_0x4e6a39[_0xfc9b('0x3e')]=_0x898c55;return _0x4e6a39;})['then'](respondWithFilteredResult(_0x103bb3,_0x4d905f))[_0xfc9b('0x3f')](handleError(_0x103bb3,null));};exports[_0xfc9b('0x40')]=function(_0x1e6508,_0x4c1755){var _0x985866={'raw':!![],'where':{'id':_0x1e6508[_0xfc9b('0x41')]['id']}},_0x551466={};_0x551466[_0xfc9b('0x28')]=_['keys'](db[_0xfc9b('0x3c')][_0xfc9b('0x42')]);_0x551466['query']=_[_0xfc9b('0x2b')](_0x1e6508[_0xfc9b('0x2a')]);_0x551466[_0xfc9b('0x34')]=_[_0xfc9b('0x2c')](_0x551466['model'],_0x551466[_0xfc9b('0x2a')]);_0x985866[_0xfc9b('0x2d')]=_[_0xfc9b('0x2c')](_0x551466[_0xfc9b('0x28')],qs['fields'](_0x1e6508[_0xfc9b('0x2a')][_0xfc9b('0x2e')]));_0x985866[_0xfc9b('0x2d')]=_0x985866[_0xfc9b('0x2d')]['length']?_0x985866[_0xfc9b('0x2d')]:_0x551466[_0xfc9b('0x28')];if(_0x1e6508['query']['includeAll']){_0x985866[_0xfc9b('0x3b')]=[{'all':!![]}];}_0x985866=_[_0xfc9b('0x38')]({},_0x985866,_0x1e6508[_0xfc9b('0x39')]);return db['SquareReport']['find'](_0x985866)[_0xfc9b('0x1f')](handleEntityNotFound(_0x4c1755,null))[_0xfc9b('0x1f')](respondWithResult(_0x4c1755,null))[_0xfc9b('0x3f')](handleError(_0x4c1755,null));};exports['create']=function(_0x1bc567,_0x549d9d){return db['SquareReport'][_0xfc9b('0x43')](_0x1bc567[_0xfc9b('0x44')],{})['then'](respondWithResult(_0x549d9d,0xc9))['catch'](handleError(_0x549d9d,null));};exports[_0xfc9b('0x1e')]=function(_0x5a84b5,_0x3d843d){if(_0x5a84b5[_0xfc9b('0x44')]['id']){delete _0x5a84b5['body']['id'];}return db[_0xfc9b('0x3c')][_0xfc9b('0x45')]({'where':{'id':_0x5a84b5[_0xfc9b('0x41')]['id']}})[_0xfc9b('0x1f')](handleEntityNotFound(_0x3d843d,null))[_0xfc9b('0x1f')](saveUpdates(_0x5a84b5['body'],null))['then'](respondWithResult(_0x3d843d,null))['catch'](handleError(_0x3d843d,null));};exports[_0xfc9b('0x20')]=function(_0x4d9d67,_0x47ae55){return db[_0xfc9b('0x3c')][_0xfc9b('0x45')]({'where':{'id':_0x4d9d67[_0xfc9b('0x41')]['id']}})['then'](handleEntityNotFound(_0x47ae55,null))[_0xfc9b('0x1f')](removeEntity(_0x47ae55,null))[_0xfc9b('0x3f')](handleError(_0x47ae55,null));};exports[_0xfc9b('0x46')]=function(_0x4e0466,_0x3bcead){return db[_0xfc9b('0x3c')]['describe']()[_0xfc9b('0x1f')](respondWithResult(_0x3bcead,null))[_0xfc9b('0x3f')](handleError(_0x3bcead,null));};
\ No newline at end of file