Built motion from commit 3a7e82ea.|2.6.29
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.controller.js
index 8fca47d..7286f84 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff2a=['keys','find','create','body','describe','rimraf','zip-dir','request-promise','moment','mustache','path','sox','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','offset','undefined','limit','count','set','reject','save','destroy','then','error','stack','name','send','map','JscriptyAnswerReport','rawAttributes','fieldName','type','key','model','filters','intersection','attributes','fields','query','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','options','includeAll','findAll','rows','catch','show','params'];(function(_0x56af36,_0x54dcb4){var _0x514be6=function(_0x155b75){while(--_0x155b75){_0x56af36['push'](_0x56af36['shift']());}};_0x514be6(++_0x54dcb4);}(_0xff2a,0x93));var _0xaff2=function(_0xb0975b,_0x93b0d6){_0xb0975b=_0xb0975b-0x0;var _0x320d30=_0xff2a[_0xb0975b];return _0x320d30;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xaff2('0x0'));var zipdir=require(_0xaff2('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0xaff2('0x2'));var moment=require(_0xaff2('0x3'));var BPromise=require('bluebird');var Mustache=require(_0xaff2('0x4'));var util=require('util');var path=require(_0xaff2('0x5'));var sox=require(_0xaff2('0x6'));var csv=require('to-csv');var ejs=require(_0xaff2('0x7'));var fs=require('fs');var fs_extra=require(_0xaff2('0x8'));var _=require(_0xaff2('0x9'));var squel=require(_0xaff2('0xa'));var crypto=require(_0xaff2('0xb'));var jsforce=require(_0xaff2('0xc'));var deskjs=require(_0xaff2('0xd'));var toCsv=require(_0xaff2('0xe'));var querystring=require(_0xaff2('0xf'));var Papa=require(_0xaff2('0x10'));var Redis=require('ioredis');var authService=require(_0xaff2('0x11'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xaff2('0x12'));var logger=require(_0xaff2('0x13'))(_0xaff2('0x14'));var utils=require(_0xaff2('0x15'));var config=require(_0xaff2('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0xaff2('0x17'))['db'];function respondWithStatusCode(_0x175f2c,_0x18e9bf){_0x18e9bf=_0x18e9bf||0xcc;return function(_0x58930b){if(_0x58930b){return _0x175f2c[_0xaff2('0x18')](_0x18e9bf);}return _0x175f2c[_0xaff2('0x19')](_0x18e9bf)['end']();};}function respondWithResult(_0x3388d0,_0x56b2d7){_0x56b2d7=_0x56b2d7||0xc8;return function(_0x259c5d){if(_0x259c5d){return _0x3388d0['status'](_0x56b2d7)['json'](_0x259c5d);}};}function respondWithFilteredResult(_0x32ec13,_0x5186d4){return function(_0x423844){if(_0x423844){var _0x19029b=typeof _0x5186d4[_0xaff2('0x1a')]===_0xaff2('0x1b')&&typeof _0x5186d4[_0xaff2('0x1c')]==='undefined';var _0xd2adb8=_0x423844[_0xaff2('0x1d')];var _0x28b387=_0x19029b?0x0:_0x5186d4[_0xaff2('0x1a')];var _0x18591a=_0x19029b?_0x423844[_0xaff2('0x1d')]:_0x5186d4[_0xaff2('0x1a')]+_0x5186d4['limit'];var _0x2e35e8;if(_0x18591a>=_0xd2adb8){_0x18591a=_0xd2adb8;_0x2e35e8=0xc8;}else{_0x2e35e8=0xce;}_0x32ec13['status'](_0x2e35e8);return _0x32ec13[_0xaff2('0x1e')]('Content-Range',_0x28b387+'-'+_0x18591a+'/'+_0xd2adb8)['json'](_0x423844);}return null;};}function patchUpdates(_0x353ed0){return function(_0x4e1d46){try{jsonpatch['apply'](_0x4e1d46,_0x353ed0,!![]);}catch(_0x26bfc4){return BPromise[_0xaff2('0x1f')](_0x26bfc4);}return _0x4e1d46[_0xaff2('0x20')]();};}function saveUpdates(_0x2d1be8,_0x3e2e81){return function(_0x366ac5){if(_0x366ac5){return _0x366ac5['update'](_0x2d1be8)['then'](function(_0x3d0176){return _0x3d0176;});}return null;};}function removeEntity(_0x211cd7,_0x545e23){return function(_0x50d111){if(_0x50d111){return _0x50d111[_0xaff2('0x21')]()[_0xaff2('0x22')](function(){_0x211cd7[_0xaff2('0x19')](0xcc)['end']();});}};}function handleEntityNotFound(_0x24ccfb,_0x306eb6){return function(_0x3d3d39){if(!_0x3d3d39){_0x24ccfb[_0xaff2('0x18')](0x194);}return _0x3d3d39;};}function handleError(_0xac61b9,_0x19635b){_0x19635b=_0x19635b||0x1f4;return function(_0x28d59c){logger[_0xaff2('0x23')](_0x28d59c[_0xaff2('0x24')]);if(_0x28d59c[_0xaff2('0x25')]){delete _0x28d59c[_0xaff2('0x25')];}_0xac61b9[_0xaff2('0x19')](_0x19635b)[_0xaff2('0x26')](_0x28d59c);};}exports['index']=function(_0x3ccb90,_0x29a0ca){var _0x58e572={},_0x3bfca4={},_0x3e182f={'count':0x0,'rows':[]};var _0x4d51ff=_[_0xaff2('0x27')](db[_0xaff2('0x28')][_0xaff2('0x29')],function(_0x2b6959){return{'name':_0x2b6959[_0xaff2('0x2a')],'type':_0x2b6959[_0xaff2('0x2b')][_0xaff2('0x2c')]};});_0x3bfca4[_0xaff2('0x2d')]=_[_0xaff2('0x27')](_0x4d51ff,_0xaff2('0x25'));_0x3bfca4['query']=_['keys'](_0x3ccb90['query']);_0x3bfca4[_0xaff2('0x2e')]=_[_0xaff2('0x2f')](_0x3bfca4['model'],_0x3bfca4['query']);_0x58e572[_0xaff2('0x30')]=_[_0xaff2('0x2f')](_0x3bfca4[_0xaff2('0x2d')],qs[_0xaff2('0x31')](_0x3ccb90[_0xaff2('0x32')][_0xaff2('0x31')]));_0x58e572['attributes']=_0x58e572[_0xaff2('0x30')][_0xaff2('0x33')]?_0x58e572[_0xaff2('0x30')]:_0x3bfca4[_0xaff2('0x2d')];if(!_0x3ccb90[_0xaff2('0x32')][_0xaff2('0x34')](_0xaff2('0x35'))){_0x58e572[_0xaff2('0x1c')]=qs[_0xaff2('0x1c')](_0x3ccb90['query']['limit']);_0x58e572[_0xaff2('0x1a')]=qs[_0xaff2('0x1a')](_0x3ccb90[_0xaff2('0x32')][_0xaff2('0x1a')]);}_0x58e572[_0xaff2('0x36')]=qs[_0xaff2('0x37')](_0x3ccb90[_0xaff2('0x32')][_0xaff2('0x37')]);_0x58e572['where']=qs[_0xaff2('0x2e')](_['pick'](_0x3ccb90[_0xaff2('0x32')],_0x3bfca4['filters']),_0x4d51ff);if(_0x3ccb90['query']['filter']){_0x58e572[_0xaff2('0x38')]=_['merge'](_0x58e572[_0xaff2('0x38')],{'$or':_['map'](_0x4d51ff,function(_0x1e08ce){if(_0x1e08ce[_0xaff2('0x2b')]!=='VIRTUAL'){var _0x2d6de0={};_0x2d6de0[_0x1e08ce[_0xaff2('0x25')]]={'$like':'%'+_0x3ccb90['query'][_0xaff2('0x39')]+'%'};return _0x2d6de0;}})});}_0x58e572=_[_0xaff2('0x3a')]({},_0x58e572,_0x3ccb90[_0xaff2('0x3b')]);var _0x2e5a6f={'where':_0x58e572[_0xaff2('0x38')]};return db[_0xaff2('0x28')][_0xaff2('0x1d')](_0x2e5a6f)[_0xaff2('0x22')](function(_0x1e1bfd){_0x3e182f[_0xaff2('0x1d')]=_0x1e1bfd;if(_0x3ccb90[_0xaff2('0x32')][_0xaff2('0x3c')]){_0x58e572['include']=[{'all':!![]}];}return db['JscriptyAnswerReport'][_0xaff2('0x3d')](_0x58e572);})[_0xaff2('0x22')](function(_0x4a1d6f){_0x3e182f[_0xaff2('0x3e')]=_0x4a1d6f;return _0x3e182f;})[_0xaff2('0x22')](respondWithFilteredResult(_0x29a0ca,_0x58e572))[_0xaff2('0x3f')](handleError(_0x29a0ca,null));};exports[_0xaff2('0x40')]=function(_0x56b4ab,_0x4ea1cc){var _0x245f44={'raw':!![],'where':{'id':_0x56b4ab[_0xaff2('0x41')]['id']}},_0x303108={};_0x303108[_0xaff2('0x2d')]=_['keys'](db['JscriptyAnswerReport'][_0xaff2('0x29')]);_0x303108['query']=_[_0xaff2('0x42')](_0x56b4ab[_0xaff2('0x32')]);_0x303108[_0xaff2('0x2e')]=_['intersection'](_0x303108[_0xaff2('0x2d')],_0x303108[_0xaff2('0x32')]);_0x245f44[_0xaff2('0x30')]=_['intersection'](_0x303108[_0xaff2('0x2d')],qs[_0xaff2('0x31')](_0x56b4ab[_0xaff2('0x32')][_0xaff2('0x31')]));_0x245f44['attributes']=_0x245f44['attributes'][_0xaff2('0x33')]?_0x245f44[_0xaff2('0x30')]:_0x303108['model'];if(_0x56b4ab[_0xaff2('0x32')]['includeAll']){_0x245f44['include']=[{'all':!![]}];}_0x245f44=_[_0xaff2('0x3a')]({},_0x245f44,_0x56b4ab['options']);return db['JscriptyAnswerReport'][_0xaff2('0x43')](_0x245f44)[_0xaff2('0x22')](handleEntityNotFound(_0x4ea1cc,null))[_0xaff2('0x22')](respondWithResult(_0x4ea1cc,null))[_0xaff2('0x3f')](handleError(_0x4ea1cc,null));};exports[_0xaff2('0x44')]=function(_0xa4b9c5,_0x4cdcf7){return db['JscriptyAnswerReport'][_0xaff2('0x44')](_0xa4b9c5[_0xaff2('0x45')],{})[_0xaff2('0x22')](respondWithResult(_0x4cdcf7,0xc9))[_0xaff2('0x3f')](handleError(_0x4cdcf7,null));};exports['update']=function(_0xd04518,_0x38f241){if(_0xd04518[_0xaff2('0x45')]['id']){delete _0xd04518[_0xaff2('0x45')]['id'];}return db['JscriptyAnswerReport'][_0xaff2('0x43')]({'where':{'id':_0xd04518[_0xaff2('0x41')]['id']}})[_0xaff2('0x22')](handleEntityNotFound(_0x38f241,null))[_0xaff2('0x22')](saveUpdates(_0xd04518[_0xaff2('0x45')],null))[_0xaff2('0x22')](respondWithResult(_0x38f241,null))[_0xaff2('0x3f')](handleError(_0x38f241,null));};exports['destroy']=function(_0x3e6215,_0x2c3855){return db[_0xaff2('0x28')][_0xaff2('0x43')]({'where':{'id':_0x3e6215[_0xaff2('0x41')]['id']}})[_0xaff2('0x22')](handleEntityNotFound(_0x2c3855,null))['then'](removeEntity(_0x2c3855,null))[_0xaff2('0x3f')](handleError(_0x2c3855,null));};exports['describe']=function(_0x31787e,_0x3e2e75){return db['JscriptyAnswerReport'][_0xaff2('0x46')]()[_0xaff2('0x22')](respondWithResult(_0x3e2e75,null))[_0xaff2('0x3f')](handleError(_0x3e2e75,null));};
\ No newline at end of file
+var _0x2c8f=['then','destroy','error','stack','name','send','index','JscriptyAnswerReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','hasOwnProperty','nolimit','order','sort','where','pick','filter','options','includeAll','include','show','params','length','find','catch','create','body','describe','rimraf','moment','bluebird','mustache','sox','to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','undefined','limit','count','offset','set','Content-Range','reject','save','update'];(function(_0x44ad5d,_0x4341b2){var _0x41bebd=function(_0xc64a03){while(--_0xc64a03){_0x44ad5d['push'](_0x44ad5d['shift']());}};_0x41bebd(++_0x4341b2);}(_0x2c8f,0x192));var _0xf2c8=function(_0x34f8b3,_0xa4189e){_0x34f8b3=_0x34f8b3-0x0;var _0x187030=_0x2c8f[_0x34f8b3];return _0x187030;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xf2c8('0x0'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0xf2c8('0x1'));var BPromise=require(_0xf2c8('0x2'));var Mustache=require(_0xf2c8('0x3'));var util=require('util');var path=require('path');var sox=require(_0xf2c8('0x4'));var csv=require(_0xf2c8('0x5'));var ejs=require(_0xf2c8('0x6'));var fs=require('fs');var fs_extra=require(_0xf2c8('0x7'));var _=require(_0xf2c8('0x8'));var squel=require('squel');var crypto=require(_0xf2c8('0x9'));var jsforce=require(_0xf2c8('0xa'));var deskjs=require(_0xf2c8('0xb'));var toCsv=require(_0xf2c8('0x5'));var querystring=require(_0xf2c8('0xc'));var Papa=require(_0xf2c8('0xd'));var Redis=require('ioredis');var authService=require(_0xf2c8('0xe'));var qs=require(_0xf2c8('0xf'));var as=require(_0xf2c8('0x10'));var hardwareService=require(_0xf2c8('0x11'));var logger=require(_0xf2c8('0x12'))(_0xf2c8('0x13'));var utils=require(_0xf2c8('0x14'));var config=require(_0xf2c8('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0xf2c8('0x16'))['db'];function respondWithStatusCode(_0x5ce572,_0x10bc2c){_0x10bc2c=_0x10bc2c||0xcc;return function(_0x16b7a4){if(_0x16b7a4){return _0x5ce572[_0xf2c8('0x17')](_0x10bc2c);}return _0x5ce572[_0xf2c8('0x18')](_0x10bc2c)[_0xf2c8('0x19')]();};}function respondWithResult(_0x40849c,_0x54dd36){_0x54dd36=_0x54dd36||0xc8;return function(_0x3b86f0){if(_0x3b86f0){return _0x40849c[_0xf2c8('0x18')](_0x54dd36)[_0xf2c8('0x1a')](_0x3b86f0);}};}function respondWithFilteredResult(_0x34f9b1,_0x3ed09e){return function(_0x383af2){if(_0x383af2){var _0x1b8c5b=typeof _0x3ed09e['offset']===_0xf2c8('0x1b')&&typeof _0x3ed09e[_0xf2c8('0x1c')]===_0xf2c8('0x1b');var _0x31b8e0=_0x383af2[_0xf2c8('0x1d')];var _0x52e9d0=_0x1b8c5b?0x0:_0x3ed09e['offset'];var _0x104d9d=_0x1b8c5b?_0x383af2[_0xf2c8('0x1d')]:_0x3ed09e[_0xf2c8('0x1e')]+_0x3ed09e[_0xf2c8('0x1c')];var _0x516d99;if(_0x104d9d>=_0x31b8e0){_0x104d9d=_0x31b8e0;_0x516d99=0xc8;}else{_0x516d99=0xce;}_0x34f9b1[_0xf2c8('0x18')](_0x516d99);return _0x34f9b1[_0xf2c8('0x1f')](_0xf2c8('0x20'),_0x52e9d0+'-'+_0x104d9d+'/'+_0x31b8e0)['json'](_0x383af2);}return null;};}function patchUpdates(_0x4442f9){return function(_0x31008e){try{jsonpatch['apply'](_0x31008e,_0x4442f9,!![]);}catch(_0x5b1e44){return BPromise[_0xf2c8('0x21')](_0x5b1e44);}return _0x31008e[_0xf2c8('0x22')]();};}function saveUpdates(_0x98f9cb,_0x57affa){return function(_0xd2e728){if(_0xd2e728){return _0xd2e728[_0xf2c8('0x23')](_0x98f9cb)[_0xf2c8('0x24')](function(_0x239350){return _0x239350;});}return null;};}function removeEntity(_0x4ba1e0,_0x17956f){return function(_0xe5ff6c){if(_0xe5ff6c){return _0xe5ff6c[_0xf2c8('0x25')]()[_0xf2c8('0x24')](function(){_0x4ba1e0[_0xf2c8('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x93707c,_0x54bbcb){return function(_0x3cd344){if(!_0x3cd344){_0x93707c[_0xf2c8('0x17')](0x194);}return _0x3cd344;};}function handleError(_0x27dc4f,_0x3bb777){_0x3bb777=_0x3bb777||0x1f4;return function(_0x1d2e74){logger[_0xf2c8('0x26')](_0x1d2e74[_0xf2c8('0x27')]);if(_0x1d2e74[_0xf2c8('0x28')]){delete _0x1d2e74[_0xf2c8('0x28')];}_0x27dc4f[_0xf2c8('0x18')](_0x3bb777)[_0xf2c8('0x29')](_0x1d2e74);};}exports[_0xf2c8('0x2a')]=function(_0x311349,_0x4e12a2){var _0x1cb979={},_0x5146e4={},_0x584587={'count':0x0,'rows':[]};var _0x3df45d=_['map'](db[_0xf2c8('0x2b')][_0xf2c8('0x2c')],function(_0x23de17){return{'name':_0x23de17[_0xf2c8('0x2d')],'type':_0x23de17[_0xf2c8('0x2e')][_0xf2c8('0x2f')]};});_0x5146e4[_0xf2c8('0x30')]=_['map'](_0x3df45d,_0xf2c8('0x28'));_0x5146e4[_0xf2c8('0x31')]=_[_0xf2c8('0x32')](_0x311349[_0xf2c8('0x31')]);_0x5146e4[_0xf2c8('0x33')]=_[_0xf2c8('0x34')](_0x5146e4['model'],_0x5146e4[_0xf2c8('0x31')]);_0x1cb979['attributes']=_[_0xf2c8('0x34')](_0x5146e4['model'],qs[_0xf2c8('0x35')](_0x311349[_0xf2c8('0x31')][_0xf2c8('0x35')]));_0x1cb979[_0xf2c8('0x36')]=_0x1cb979[_0xf2c8('0x36')]['length']?_0x1cb979[_0xf2c8('0x36')]:_0x5146e4[_0xf2c8('0x30')];if(!_0x311349['query'][_0xf2c8('0x37')](_0xf2c8('0x38'))){_0x1cb979['limit']=qs[_0xf2c8('0x1c')](_0x311349[_0xf2c8('0x31')][_0xf2c8('0x1c')]);_0x1cb979[_0xf2c8('0x1e')]=qs[_0xf2c8('0x1e')](_0x311349['query']['offset']);}_0x1cb979[_0xf2c8('0x39')]=qs[_0xf2c8('0x3a')](_0x311349[_0xf2c8('0x31')][_0xf2c8('0x3a')]);_0x1cb979[_0xf2c8('0x3b')]=qs[_0xf2c8('0x33')](_[_0xf2c8('0x3c')](_0x311349[_0xf2c8('0x31')],_0x5146e4['filters']),_0x3df45d);if(_0x311349[_0xf2c8('0x31')][_0xf2c8('0x3d')]){_0x1cb979[_0xf2c8('0x3b')]=_['merge'](_0x1cb979['where'],{'$or':_['map'](_0x3df45d,function(_0x5e646e){if(_0x5e646e[_0xf2c8('0x2e')]!=='VIRTUAL'){var _0x219318={};_0x219318[_0x5e646e['name']]={'$like':'%'+_0x311349[_0xf2c8('0x31')]['filter']+'%'};return _0x219318;}})});}_0x1cb979=_['merge']({},_0x1cb979,_0x311349[_0xf2c8('0x3e')]);var _0x523f92={'where':_0x1cb979['where']};return db[_0xf2c8('0x2b')][_0xf2c8('0x1d')](_0x523f92)['then'](function(_0x1f4115){_0x584587[_0xf2c8('0x1d')]=_0x1f4115;if(_0x311349[_0xf2c8('0x31')][_0xf2c8('0x3f')]){_0x1cb979[_0xf2c8('0x40')]=[{'all':!![]}];}return db[_0xf2c8('0x2b')]['findAll'](_0x1cb979);})['then'](function(_0x200920){_0x584587['rows']=_0x200920;return _0x584587;})[_0xf2c8('0x24')](respondWithFilteredResult(_0x4e12a2,_0x1cb979))['catch'](handleError(_0x4e12a2,null));};exports[_0xf2c8('0x41')]=function(_0x580def,_0x3e70eb){var _0x295910={'raw':!![],'where':{'id':_0x580def[_0xf2c8('0x42')]['id']}},_0x251e4c={};_0x251e4c['model']=_[_0xf2c8('0x32')](db[_0xf2c8('0x2b')]['rawAttributes']);_0x251e4c[_0xf2c8('0x31')]=_[_0xf2c8('0x32')](_0x580def[_0xf2c8('0x31')]);_0x251e4c[_0xf2c8('0x33')]=_[_0xf2c8('0x34')](_0x251e4c[_0xf2c8('0x30')],_0x251e4c[_0xf2c8('0x31')]);_0x295910['attributes']=_[_0xf2c8('0x34')](_0x251e4c[_0xf2c8('0x30')],qs[_0xf2c8('0x35')](_0x580def[_0xf2c8('0x31')]['fields']));_0x295910['attributes']=_0x295910[_0xf2c8('0x36')][_0xf2c8('0x43')]?_0x295910[_0xf2c8('0x36')]:_0x251e4c['model'];if(_0x580def[_0xf2c8('0x31')][_0xf2c8('0x3f')]){_0x295910['include']=[{'all':!![]}];}_0x295910=_['merge']({},_0x295910,_0x580def[_0xf2c8('0x3e')]);return db[_0xf2c8('0x2b')][_0xf2c8('0x44')](_0x295910)[_0xf2c8('0x24')](handleEntityNotFound(_0x3e70eb,null))['then'](respondWithResult(_0x3e70eb,null))[_0xf2c8('0x45')](handleError(_0x3e70eb,null));};exports[_0xf2c8('0x46')]=function(_0x18bbd9,_0x598997){return db[_0xf2c8('0x2b')][_0xf2c8('0x46')](_0x18bbd9[_0xf2c8('0x47')],{})['then'](respondWithResult(_0x598997,0xc9))[_0xf2c8('0x45')](handleError(_0x598997,null));};exports[_0xf2c8('0x23')]=function(_0x24d4a2,_0x3d90f5){if(_0x24d4a2[_0xf2c8('0x47')]['id']){delete _0x24d4a2['body']['id'];}return db[_0xf2c8('0x2b')]['find']({'where':{'id':_0x24d4a2['params']['id']}})[_0xf2c8('0x24')](handleEntityNotFound(_0x3d90f5,null))[_0xf2c8('0x24')](saveUpdates(_0x24d4a2[_0xf2c8('0x47')],null))[_0xf2c8('0x24')](respondWithResult(_0x3d90f5,null))[_0xf2c8('0x45')](handleError(_0x3d90f5,null));};exports['destroy']=function(_0x1c7fa5,_0x134077){return db[_0xf2c8('0x2b')][_0xf2c8('0x44')]({'where':{'id':_0x1c7fa5[_0xf2c8('0x42')]['id']}})[_0xf2c8('0x24')](handleEntityNotFound(_0x134077,null))['then'](removeEntity(_0x134077,null))['catch'](handleError(_0x134077,null));};exports[_0xf2c8('0x48')]=function(_0x334285,_0x372296){return db[_0xf2c8('0x2b')][_0xf2c8('0x48')]()[_0xf2c8('0x24')](respondWithResult(_0x372296,null))[_0xf2c8('0x45')](handleError(_0x372296,null));};
\ No newline at end of file