Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / openchannelApplication / openchannelApplication.controller.js
index 8a31e27..b76c775 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf4c9=['../../mysqldb','sendStatus','status','end','json','limit','undefined','offset','set','Content-Range','apply','update','then','destroy','error','stack','name','send','index','map','OpenchannelApplication','rawAttributes','fieldName','type','key','model','query','keys','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','merge','filter','options','count','includeAll','include','rows','catch','show','params','create','body','find','eml-format','zip-dir','fast-json-patch','request-promise','moment','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util'];(function(_0x5a83fc,_0x56d2d1){var _0x279347=function(_0x5c9f2b){while(--_0x5c9f2b){_0x5a83fc['push'](_0x5a83fc['shift']());}};_0x279347(++_0x56d2d1);}(_0xf4c9,0xd2));var _0x9f4c=function(_0x4fbfd9,_0x3ab91a){_0x4fbfd9=_0x4fbfd9-0x0;var _0x31dc94=_0xf4c9[_0x4fbfd9];return _0x31dc94;};'use strict';var emlformat=require(_0x9f4c('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x9f4c('0x1'));var jsonpatch=require(_0x9f4c('0x2'));var rp=require(_0x9f4c('0x3'));var moment=require(_0x9f4c('0x4'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x9f4c('0x5'));var path=require(_0x9f4c('0x6'));var sox=require(_0x9f4c('0x7'));var csv=require(_0x9f4c('0x8'));var ejs=require(_0x9f4c('0x9'));var fs=require('fs');var fs_extra=require(_0x9f4c('0xa'));var _=require(_0x9f4c('0xb'));var squel=require(_0x9f4c('0xc'));var crypto=require(_0x9f4c('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x9f4c('0xe'));var toCsv=require('to-csv');var querystring=require(_0x9f4c('0xf'));var Papa=require(_0x9f4c('0x10'));var Redis=require(_0x9f4c('0x11'));var authService=require(_0x9f4c('0x12'));var qs=require(_0x9f4c('0x13'));var as=require(_0x9f4c('0x14'));var hardwareService=require(_0x9f4c('0x15'));var logger=require(_0x9f4c('0x16'))(_0x9f4c('0x17'));var utils=require(_0x9f4c('0x18'));var config=require(_0x9f4c('0x19'));var licenseUtil=require(_0x9f4c('0x1a'));var db=require(_0x9f4c('0x1b'))['db'];function respondWithStatusCode(_0x58c514,_0x1f88e3){_0x1f88e3=_0x1f88e3||0xcc;return function(_0x4d1458){if(_0x4d1458){return _0x58c514[_0x9f4c('0x1c')](_0x1f88e3);}return _0x58c514[_0x9f4c('0x1d')](_0x1f88e3)[_0x9f4c('0x1e')]();};}function respondWithResult(_0x558e36,_0x3428e4){_0x3428e4=_0x3428e4||0xc8;return function(_0x4033d9){if(_0x4033d9){return _0x558e36['status'](_0x3428e4)[_0x9f4c('0x1f')](_0x4033d9);}};}function respondWithFilteredResult(_0x470e11,_0x3078b2){return function(_0xeb523a){if(_0xeb523a){var _0x8f9d2c=typeof _0x3078b2['offset']==='undefined'&&typeof _0x3078b2[_0x9f4c('0x20')]===_0x9f4c('0x21');var _0x4dc545=_0xeb523a['count'];var _0x404159=_0x8f9d2c?0x0:_0x3078b2[_0x9f4c('0x22')];var _0x1ed809=_0x8f9d2c?_0xeb523a['count']:_0x3078b2[_0x9f4c('0x22')]+_0x3078b2['limit'];var _0x247eb8;if(_0x1ed809>=_0x4dc545){_0x1ed809=_0x4dc545;_0x247eb8=0xc8;}else{_0x247eb8=0xce;}_0x470e11['status'](_0x247eb8);return _0x470e11[_0x9f4c('0x23')](_0x9f4c('0x24'),_0x404159+'-'+_0x1ed809+'/'+_0x4dc545)[_0x9f4c('0x1f')](_0xeb523a);}return null;};}function patchUpdates(_0x146608){return function(_0x58adc4){try{jsonpatch[_0x9f4c('0x25')](_0x58adc4,_0x146608,!![]);}catch(_0x4a159c){return BPromise['reject'](_0x4a159c);}return _0x58adc4['save']();};}function saveUpdates(_0x287405,_0x1e2d27){return function(_0x23db82){if(_0x23db82){return _0x23db82[_0x9f4c('0x26')](_0x287405)[_0x9f4c('0x27')](function(_0x301200){return _0x301200;});}return null;};}function removeEntity(_0x228516,_0x5bbe3c){return function(_0x4458c8){if(_0x4458c8){return _0x4458c8[_0x9f4c('0x28')]()[_0x9f4c('0x27')](function(){_0x228516['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x5c4e56,_0xec2657){return function(_0xa4ac1b){if(!_0xa4ac1b){_0x5c4e56['sendStatus'](0x194);}return _0xa4ac1b;};}function handleError(_0x54598f,_0xbebfc0){_0xbebfc0=_0xbebfc0||0x1f4;return function(_0x47f775){logger[_0x9f4c('0x29')](_0x47f775[_0x9f4c('0x2a')]);if(_0x47f775['name']){delete _0x47f775[_0x9f4c('0x2b')];}_0x54598f['status'](_0xbebfc0)[_0x9f4c('0x2c')](_0x47f775);};}exports[_0x9f4c('0x2d')]=function(_0x474c8e,_0x26875e){var _0x2f3020={},_0x30f715={},_0x178c82={'count':0x0,'rows':[]};var _0x4da0c2=_[_0x9f4c('0x2e')](db[_0x9f4c('0x2f')][_0x9f4c('0x30')],function(_0x127d22){return{'name':_0x127d22[_0x9f4c('0x31')],'type':_0x127d22[_0x9f4c('0x32')][_0x9f4c('0x33')]};});_0x30f715[_0x9f4c('0x34')]=_['map'](_0x4da0c2,_0x9f4c('0x2b'));_0x30f715[_0x9f4c('0x35')]=_[_0x9f4c('0x36')](_0x474c8e[_0x9f4c('0x35')]);_0x30f715[_0x9f4c('0x37')]=_['intersection'](_0x30f715[_0x9f4c('0x34')],_0x30f715[_0x9f4c('0x35')]);_0x2f3020[_0x9f4c('0x38')]=_[_0x9f4c('0x39')](_0x30f715[_0x9f4c('0x34')],qs[_0x9f4c('0x3a')](_0x474c8e[_0x9f4c('0x35')][_0x9f4c('0x3a')]));_0x2f3020['attributes']=_0x2f3020[_0x9f4c('0x38')][_0x9f4c('0x3b')]?_0x2f3020[_0x9f4c('0x38')]:_0x30f715[_0x9f4c('0x34')];if(!_0x474c8e[_0x9f4c('0x35')][_0x9f4c('0x3c')](_0x9f4c('0x3d'))){_0x2f3020['limit']=qs[_0x9f4c('0x20')](_0x474c8e['query']['limit']);_0x2f3020['offset']=qs['offset'](_0x474c8e[_0x9f4c('0x35')][_0x9f4c('0x22')]);}_0x2f3020[_0x9f4c('0x3e')]=qs[_0x9f4c('0x3f')](_0x474c8e[_0x9f4c('0x35')][_0x9f4c('0x3f')]);_0x2f3020[_0x9f4c('0x40')]=qs[_0x9f4c('0x37')](_[_0x9f4c('0x41')](_0x474c8e[_0x9f4c('0x35')],_0x30f715[_0x9f4c('0x37')]),_0x4da0c2);if(_0x474c8e[_0x9f4c('0x35')]['filter']){_0x2f3020[_0x9f4c('0x40')]=_[_0x9f4c('0x42')](_0x2f3020[_0x9f4c('0x40')],{'$or':_[_0x9f4c('0x2e')](_0x4da0c2,function(_0x1e2f6b){if(_0x1e2f6b[_0x9f4c('0x32')]!=='VIRTUAL'){var _0x5f030c={};_0x5f030c[_0x1e2f6b[_0x9f4c('0x2b')]]={'$like':'%'+_0x474c8e['query'][_0x9f4c('0x43')]+'%'};return _0x5f030c;}})});}_0x2f3020=_[_0x9f4c('0x42')]({},_0x2f3020,_0x474c8e[_0x9f4c('0x44')]);var _0x2140d1={'where':_0x2f3020[_0x9f4c('0x40')]};return db['OpenchannelApplication'][_0x9f4c('0x45')](_0x2140d1)[_0x9f4c('0x27')](function(_0x77a780){_0x178c82[_0x9f4c('0x45')]=_0x77a780;if(_0x474c8e['query'][_0x9f4c('0x46')]){_0x2f3020[_0x9f4c('0x47')]=[{'all':!![]}];}return db[_0x9f4c('0x2f')]['findAll'](_0x2f3020);})[_0x9f4c('0x27')](function(_0x1cdc42){_0x178c82[_0x9f4c('0x48')]=_0x1cdc42;return _0x178c82;})[_0x9f4c('0x27')](respondWithFilteredResult(_0x26875e,_0x2f3020))[_0x9f4c('0x49')](handleError(_0x26875e,null));};exports[_0x9f4c('0x4a')]=function(_0x2e29cc,_0x1e0533){var _0x560305={'raw':!![],'where':{'id':_0x2e29cc[_0x9f4c('0x4b')]['id']}},_0x3002c2={};_0x3002c2[_0x9f4c('0x34')]=_[_0x9f4c('0x36')](db['OpenchannelApplication']['rawAttributes']);_0x3002c2[_0x9f4c('0x35')]=_['keys'](_0x2e29cc[_0x9f4c('0x35')]);_0x3002c2[_0x9f4c('0x37')]=_[_0x9f4c('0x39')](_0x3002c2['model'],_0x3002c2[_0x9f4c('0x35')]);_0x560305['attributes']=_[_0x9f4c('0x39')](_0x3002c2[_0x9f4c('0x34')],qs[_0x9f4c('0x3a')](_0x2e29cc['query']['fields']));_0x560305[_0x9f4c('0x38')]=_0x560305[_0x9f4c('0x38')][_0x9f4c('0x3b')]?_0x560305[_0x9f4c('0x38')]:_0x3002c2[_0x9f4c('0x34')];if(_0x2e29cc[_0x9f4c('0x35')][_0x9f4c('0x46')]){_0x560305[_0x9f4c('0x47')]=[{'all':!![]}];}_0x560305=_['merge']({},_0x560305,_0x2e29cc['options']);return db[_0x9f4c('0x2f')]['find'](_0x560305)[_0x9f4c('0x27')](handleEntityNotFound(_0x1e0533,null))[_0x9f4c('0x27')](respondWithResult(_0x1e0533,null))['catch'](handleError(_0x1e0533,null));};exports[_0x9f4c('0x4c')]=function(_0x1dc9ab,_0x311cdf){return db[_0x9f4c('0x2f')]['create'](_0x1dc9ab[_0x9f4c('0x4d')],{})['then'](respondWithResult(_0x311cdf,0xc9))[_0x9f4c('0x49')](handleError(_0x311cdf,null));};exports[_0x9f4c('0x26')]=function(_0x2a262a,_0xf46acc){if(_0x2a262a['body']['id']){delete _0x2a262a[_0x9f4c('0x4d')]['id'];}return db[_0x9f4c('0x2f')]['find']({'where':{'id':_0x2a262a[_0x9f4c('0x4b')]['id']}})[_0x9f4c('0x27')](handleEntityNotFound(_0xf46acc,null))['then'](saveUpdates(_0x2a262a[_0x9f4c('0x4d')],null))[_0x9f4c('0x27')](respondWithResult(_0xf46acc,null))['catch'](handleError(_0xf46acc,null));};exports['destroy']=function(_0x1014f1,_0x382122){return db[_0x9f4c('0x2f')][_0x9f4c('0x4e')]({'where':{'id':_0x1014f1[_0x9f4c('0x4b')]['id']}})[_0x9f4c('0x27')](handleEntityNotFound(_0x382122,null))[_0x9f4c('0x27')](removeEntity(_0x382122,null))['catch'](handleError(_0x382122,null));};
\ No newline at end of file
+var _0xe211=['fields','attributes','length','hasOwnProperty','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','rows','catch','show','params','keys','find','create','body','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','offset','undefined','limit','count','set','Content-Range','json','reject','save','update','then','destroy','sendStatus','error','name','send','index','map','OpenchannelApplication','rawAttributes','fieldName','type','key','model','query','filters','intersection'];(function(_0x28d78c,_0x21d5b1){var _0x13d1ad=function(_0x58b74a){while(--_0x58b74a){_0x28d78c['push'](_0x28d78c['shift']());}};_0x13d1ad(++_0x21d5b1);}(_0xe211,0x1e9));var _0x1e21=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe211[_0x3dd15e];return _0x231fd0;};'use strict';var emlformat=require(_0x1e21('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x1e21('0x1'));var jsonpatch=require(_0x1e21('0x2'));var rp=require(_0x1e21('0x3'));var moment=require(_0x1e21('0x4'));var BPromise=require(_0x1e21('0x5'));var Mustache=require(_0x1e21('0x6'));var util=require(_0x1e21('0x7'));var path=require(_0x1e21('0x8'));var sox=require(_0x1e21('0x9'));var csv=require(_0x1e21('0xa'));var ejs=require(_0x1e21('0xb'));var fs=require('fs');var fs_extra=require(_0x1e21('0xc'));var _=require(_0x1e21('0xd'));var squel=require(_0x1e21('0xe'));var crypto=require(_0x1e21('0xf'));var jsforce=require(_0x1e21('0x10'));var deskjs=require(_0x1e21('0x11'));var toCsv=require('to-csv');var querystring=require(_0x1e21('0x12'));var Papa=require(_0x1e21('0x13'));var Redis=require(_0x1e21('0x14'));var authService=require(_0x1e21('0x15'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x1e21('0x16'))(_0x1e21('0x17'));var utils=require(_0x1e21('0x18'));var config=require(_0x1e21('0x19'));var licenseUtil=require(_0x1e21('0x1a'));var db=require(_0x1e21('0x1b'))['db'];function respondWithStatusCode(_0x1d6df8,_0x5c84d7){_0x5c84d7=_0x5c84d7||0xcc;return function(_0x56331d){if(_0x56331d){return _0x1d6df8['sendStatus'](_0x5c84d7);}return _0x1d6df8[_0x1e21('0x1c')](_0x5c84d7)[_0x1e21('0x1d')]();};}function respondWithResult(_0x178edd,_0x5ba7cb){_0x5ba7cb=_0x5ba7cb||0xc8;return function(_0xaf82a2){if(_0xaf82a2){return _0x178edd['status'](_0x5ba7cb)['json'](_0xaf82a2);}};}function respondWithFilteredResult(_0x4df0ed,_0x432654){return function(_0xe4559d){if(_0xe4559d){var _0x217311=typeof _0x432654[_0x1e21('0x1e')]===_0x1e21('0x1f')&&typeof _0x432654[_0x1e21('0x20')]==='undefined';var _0x203205=_0xe4559d[_0x1e21('0x21')];var _0x46cccd=_0x217311?0x0:_0x432654[_0x1e21('0x1e')];var _0xc0a161=_0x217311?_0xe4559d[_0x1e21('0x21')]:_0x432654[_0x1e21('0x1e')]+_0x432654[_0x1e21('0x20')];var _0x4889ff;if(_0xc0a161>=_0x203205){_0xc0a161=_0x203205;_0x4889ff=0xc8;}else{_0x4889ff=0xce;}_0x4df0ed[_0x1e21('0x1c')](_0x4889ff);return _0x4df0ed[_0x1e21('0x22')](_0x1e21('0x23'),_0x46cccd+'-'+_0xc0a161+'/'+_0x203205)[_0x1e21('0x24')](_0xe4559d);}return null;};}function patchUpdates(_0x2e5a4f){return function(_0x4b200b){try{jsonpatch['apply'](_0x4b200b,_0x2e5a4f,!![]);}catch(_0x451f88){return BPromise[_0x1e21('0x25')](_0x451f88);}return _0x4b200b[_0x1e21('0x26')]();};}function saveUpdates(_0x360e84,_0x27adf4){return function(_0x3caf5c){if(_0x3caf5c){return _0x3caf5c[_0x1e21('0x27')](_0x360e84)[_0x1e21('0x28')](function(_0x532efb){return _0x532efb;});}return null;};}function removeEntity(_0x129107,_0x43e490){return function(_0x5c1420){if(_0x5c1420){return _0x5c1420[_0x1e21('0x29')]()[_0x1e21('0x28')](function(){_0x129107[_0x1e21('0x1c')](0xcc)[_0x1e21('0x1d')]();});}};}function handleEntityNotFound(_0x96de4f,_0x35630f){return function(_0x1bdd76){if(!_0x1bdd76){_0x96de4f[_0x1e21('0x2a')](0x194);}return _0x1bdd76;};}function handleError(_0x5ba069,_0x1e3c14){_0x1e3c14=_0x1e3c14||0x1f4;return function(_0x542494){logger[_0x1e21('0x2b')](_0x542494['stack']);if(_0x542494[_0x1e21('0x2c')]){delete _0x542494['name'];}_0x5ba069[_0x1e21('0x1c')](_0x1e3c14)[_0x1e21('0x2d')](_0x542494);};}exports[_0x1e21('0x2e')]=function(_0x880a64,_0x19f553){var _0x161f3d={},_0x197cee={},_0x2bb329={'count':0x0,'rows':[]};var _0x5c1693=_[_0x1e21('0x2f')](db[_0x1e21('0x30')][_0x1e21('0x31')],function(_0x2583f3){return{'name':_0x2583f3[_0x1e21('0x32')],'type':_0x2583f3[_0x1e21('0x33')][_0x1e21('0x34')]};});_0x197cee[_0x1e21('0x35')]=_[_0x1e21('0x2f')](_0x5c1693,_0x1e21('0x2c'));_0x197cee[_0x1e21('0x36')]=_['keys'](_0x880a64[_0x1e21('0x36')]);_0x197cee[_0x1e21('0x37')]=_['intersection'](_0x197cee['model'],_0x197cee['query']);_0x161f3d['attributes']=_[_0x1e21('0x38')](_0x197cee[_0x1e21('0x35')],qs[_0x1e21('0x39')](_0x880a64[_0x1e21('0x36')][_0x1e21('0x39')]));_0x161f3d['attributes']=_0x161f3d[_0x1e21('0x3a')][_0x1e21('0x3b')]?_0x161f3d[_0x1e21('0x3a')]:_0x197cee[_0x1e21('0x35')];if(!_0x880a64['query'][_0x1e21('0x3c')]('nolimit')){_0x161f3d[_0x1e21('0x20')]=qs[_0x1e21('0x20')](_0x880a64[_0x1e21('0x36')]['limit']);_0x161f3d['offset']=qs[_0x1e21('0x1e')](_0x880a64[_0x1e21('0x36')][_0x1e21('0x1e')]);}_0x161f3d['order']=qs['sort'](_0x880a64[_0x1e21('0x36')][_0x1e21('0x3d')]);_0x161f3d[_0x1e21('0x3e')]=qs['filters'](_[_0x1e21('0x3f')](_0x880a64[_0x1e21('0x36')],_0x197cee['filters']),_0x5c1693);if(_0x880a64[_0x1e21('0x36')][_0x1e21('0x40')]){_0x161f3d[_0x1e21('0x3e')]=_[_0x1e21('0x41')](_0x161f3d['where'],{'$or':_[_0x1e21('0x2f')](_0x5c1693,function(_0x1a4550){if(_0x1a4550['type']!==_0x1e21('0x42')){var _0x50cd37={};_0x50cd37[_0x1a4550['name']]={'$like':'%'+_0x880a64[_0x1e21('0x36')][_0x1e21('0x40')]+'%'};return _0x50cd37;}})});}_0x161f3d=_['merge']({},_0x161f3d,_0x880a64[_0x1e21('0x43')]);var _0x70983a={'where':_0x161f3d[_0x1e21('0x3e')]};return db['OpenchannelApplication'][_0x1e21('0x21')](_0x70983a)[_0x1e21('0x28')](function(_0x1805f7){_0x2bb329[_0x1e21('0x21')]=_0x1805f7;if(_0x880a64['query'][_0x1e21('0x44')]){_0x161f3d[_0x1e21('0x45')]=[{'all':!![]}];}return db[_0x1e21('0x30')]['findAll'](_0x161f3d);})[_0x1e21('0x28')](function(_0x120c0c){_0x2bb329[_0x1e21('0x46')]=_0x120c0c;return _0x2bb329;})[_0x1e21('0x28')](respondWithFilteredResult(_0x19f553,_0x161f3d))[_0x1e21('0x47')](handleError(_0x19f553,null));};exports[_0x1e21('0x48')]=function(_0x538f79,_0x7ede4){var _0xd4fdf8={'raw':!![],'where':{'id':_0x538f79[_0x1e21('0x49')]['id']}},_0x30f4e4={};_0x30f4e4[_0x1e21('0x35')]=_['keys'](db[_0x1e21('0x30')][_0x1e21('0x31')]);_0x30f4e4[_0x1e21('0x36')]=_[_0x1e21('0x4a')](_0x538f79['query']);_0x30f4e4['filters']=_[_0x1e21('0x38')](_0x30f4e4['model'],_0x30f4e4['query']);_0xd4fdf8['attributes']=_[_0x1e21('0x38')](_0x30f4e4[_0x1e21('0x35')],qs[_0x1e21('0x39')](_0x538f79['query'][_0x1e21('0x39')]));_0xd4fdf8[_0x1e21('0x3a')]=_0xd4fdf8[_0x1e21('0x3a')][_0x1e21('0x3b')]?_0xd4fdf8[_0x1e21('0x3a')]:_0x30f4e4[_0x1e21('0x35')];if(_0x538f79[_0x1e21('0x36')][_0x1e21('0x44')]){_0xd4fdf8['include']=[{'all':!![]}];}_0xd4fdf8=_[_0x1e21('0x41')]({},_0xd4fdf8,_0x538f79[_0x1e21('0x43')]);return db[_0x1e21('0x30')][_0x1e21('0x4b')](_0xd4fdf8)[_0x1e21('0x28')](handleEntityNotFound(_0x7ede4,null))[_0x1e21('0x28')](respondWithResult(_0x7ede4,null))[_0x1e21('0x47')](handleError(_0x7ede4,null));};exports[_0x1e21('0x4c')]=function(_0x1d50f7,_0x462ed3){return db['OpenchannelApplication'][_0x1e21('0x4c')](_0x1d50f7[_0x1e21('0x4d')],{})['then'](respondWithResult(_0x462ed3,0xc9))[_0x1e21('0x47')](handleError(_0x462ed3,null));};exports[_0x1e21('0x27')]=function(_0x502c02,_0x61240d){if(_0x502c02[_0x1e21('0x4d')]['id']){delete _0x502c02[_0x1e21('0x4d')]['id'];}return db[_0x1e21('0x30')][_0x1e21('0x4b')]({'where':{'id':_0x502c02['params']['id']}})[_0x1e21('0x28')](handleEntityNotFound(_0x61240d,null))[_0x1e21('0x28')](saveUpdates(_0x502c02['body'],null))['then'](respondWithResult(_0x61240d,null))[_0x1e21('0x47')](handleError(_0x61240d,null));};exports['destroy']=function(_0x39d4a4,_0x572b6b){return db[_0x1e21('0x30')][_0x1e21('0x4b')]({'where':{'id':_0x39d4a4[_0x1e21('0x49')]['id']}})[_0x1e21('0x28')](handleEntityNotFound(_0x572b6b,null))[_0x1e21('0x28')](removeEntity(_0x572b6b,null))['catch'](handleError(_0x572b6b,null));};
\ No newline at end of file