Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intServicenowField / intServicenowField.controller.js
index ab2bd75..931c8b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdad6=['rows','catch','show','params','keys','options','find','create','body','rimraf','zip-dir','fast-json-patch','bluebird','mustache','util','sox','fs-extra','lodash','squel','jsforce','desk.js','to-csv','papaparse','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','undefined','count','offset','limit','set','Content-Range','apply','save','update','then','destroy','end','error','stack','name','send','map','ServicenowField','rawAttributes','fieldName','type','model','query','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','pick','filter','merge','VIRTUAL','includeAll','include','findAll'];(function(_0x20ca12,_0x137790){var _0x432fc8=function(_0x16fd10){while(--_0x16fd10){_0x20ca12['push'](_0x20ca12['shift']());}};_0x432fc8(++_0x137790);}(_0xdad6,0x1b3));var _0x6dad=function(_0x4ac5be,_0x3aa7f1){_0x4ac5be=_0x4ac5be-0x0;var _0x3b3187=_0xdad6[_0x4ac5be];return _0x3b3187;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x6dad('0x0'));var zipdir=require(_0x6dad('0x1'));var jsonpatch=require(_0x6dad('0x2'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x6dad('0x3'));var Mustache=require(_0x6dad('0x4'));var util=require(_0x6dad('0x5'));var path=require('path');var sox=require(_0x6dad('0x6'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x6dad('0x7'));var _=require(_0x6dad('0x8'));var squel=require(_0x6dad('0x9'));var crypto=require('crypto');var jsforce=require(_0x6dad('0xa'));var deskjs=require(_0x6dad('0xb'));var toCsv=require(_0x6dad('0xc'));var querystring=require('querystring');var Papa=require(_0x6dad('0xd'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x6dad('0xe'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x6dad('0xf'));var logger=require(_0x6dad('0x10'))(_0x6dad('0x11'));var utils=require(_0x6dad('0x12'));var config=require(_0x6dad('0x13'));var licenseUtil=require(_0x6dad('0x14'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x5b5fa7,_0x977ce1){_0x977ce1=_0x977ce1||0xcc;return function(_0x25604e){if(_0x25604e){return _0x5b5fa7[_0x6dad('0x15')](_0x977ce1);}return _0x5b5fa7[_0x6dad('0x16')](_0x977ce1)['end']();};}function respondWithResult(_0x54bfec,_0x50a783){_0x50a783=_0x50a783||0xc8;return function(_0x293573){if(_0x293573){return _0x54bfec[_0x6dad('0x16')](_0x50a783)[_0x6dad('0x17')](_0x293573);}};}function respondWithFilteredResult(_0x586236,_0x5acf49){return function(_0x2ba831){if(_0x2ba831){var _0x5d76d8=typeof _0x5acf49['offset']===_0x6dad('0x18')&&typeof _0x5acf49['limit']===_0x6dad('0x18');var _0x4e8475=_0x2ba831[_0x6dad('0x19')];var _0x461ecd=_0x5d76d8?0x0:_0x5acf49[_0x6dad('0x1a')];var _0x3ec802=_0x5d76d8?_0x2ba831[_0x6dad('0x19')]:_0x5acf49[_0x6dad('0x1a')]+_0x5acf49[_0x6dad('0x1b')];var _0x25abea;if(_0x3ec802>=_0x4e8475){_0x3ec802=_0x4e8475;_0x25abea=0xc8;}else{_0x25abea=0xce;}_0x586236[_0x6dad('0x16')](_0x25abea);return _0x586236[_0x6dad('0x1c')](_0x6dad('0x1d'),_0x461ecd+'-'+_0x3ec802+'/'+_0x4e8475)[_0x6dad('0x17')](_0x2ba831);}return null;};}function patchUpdates(_0x32cce6){return function(_0xfe1d80){try{jsonpatch[_0x6dad('0x1e')](_0xfe1d80,_0x32cce6,!![]);}catch(_0x41befb){return BPromise['reject'](_0x41befb);}return _0xfe1d80[_0x6dad('0x1f')]();};}function saveUpdates(_0x510df5,_0x548189){return function(_0x182b01){if(_0x182b01){return _0x182b01[_0x6dad('0x20')](_0x510df5)[_0x6dad('0x21')](function(_0x35c02b){return _0x35c02b;});}return null;};}function removeEntity(_0x5a996f,_0xf712a6){return function(_0x167259){if(_0x167259){return _0x167259[_0x6dad('0x22')]()[_0x6dad('0x21')](function(){_0x5a996f['status'](0xcc)[_0x6dad('0x23')]();});}};}function handleEntityNotFound(_0x27c338,_0x331254){return function(_0x327489){if(!_0x327489){_0x27c338[_0x6dad('0x15')](0x194);}return _0x327489;};}function handleError(_0x536e91,_0x3f3261){_0x3f3261=_0x3f3261||0x1f4;return function(_0x5607a1){logger[_0x6dad('0x24')](_0x5607a1[_0x6dad('0x25')]);if(_0x5607a1[_0x6dad('0x26')]){delete _0x5607a1[_0x6dad('0x26')];}_0x536e91[_0x6dad('0x16')](_0x3f3261)[_0x6dad('0x27')](_0x5607a1);};}exports['index']=function(_0x59b746,_0x2d96f0){var _0x400af4={},_0x37fcdb={},_0x49f4ad={'count':0x0,'rows':[]};var _0x403071=_[_0x6dad('0x28')](db[_0x6dad('0x29')][_0x6dad('0x2a')],function(_0x2d2cd8){return{'name':_0x2d2cd8[_0x6dad('0x2b')],'type':_0x2d2cd8[_0x6dad('0x2c')]['key']};});_0x37fcdb[_0x6dad('0x2d')]=_[_0x6dad('0x28')](_0x403071,_0x6dad('0x26'));_0x37fcdb[_0x6dad('0x2e')]=_['keys'](_0x59b746['query']);_0x37fcdb[_0x6dad('0x2f')]=_[_0x6dad('0x30')](_0x37fcdb[_0x6dad('0x2d')],_0x37fcdb[_0x6dad('0x2e')]);_0x400af4[_0x6dad('0x31')]=_[_0x6dad('0x30')](_0x37fcdb[_0x6dad('0x2d')],qs[_0x6dad('0x32')](_0x59b746[_0x6dad('0x2e')]['fields']));_0x400af4[_0x6dad('0x31')]=_0x400af4[_0x6dad('0x31')][_0x6dad('0x33')]?_0x400af4[_0x6dad('0x31')]:_0x37fcdb[_0x6dad('0x2d')];if(!_0x59b746[_0x6dad('0x2e')][_0x6dad('0x34')]('nolimit')){_0x400af4[_0x6dad('0x1b')]=qs[_0x6dad('0x1b')](_0x59b746[_0x6dad('0x2e')][_0x6dad('0x1b')]);_0x400af4['offset']=qs[_0x6dad('0x1a')](_0x59b746['query'][_0x6dad('0x1a')]);}_0x400af4['order']=qs[_0x6dad('0x35')](_0x59b746['query']['sort']);_0x400af4[_0x6dad('0x36')]=qs[_0x6dad('0x2f')](_[_0x6dad('0x37')](_0x59b746[_0x6dad('0x2e')],_0x37fcdb[_0x6dad('0x2f')]),_0x403071);if(_0x59b746[_0x6dad('0x2e')][_0x6dad('0x38')]){_0x400af4[_0x6dad('0x36')]=_[_0x6dad('0x39')](_0x400af4['where'],{'$or':_[_0x6dad('0x28')](_0x403071,function(_0xf53414){if(_0xf53414[_0x6dad('0x2c')]!==_0x6dad('0x3a')){var _0x123208={};_0x123208[_0xf53414[_0x6dad('0x26')]]={'$like':'%'+_0x59b746[_0x6dad('0x2e')][_0x6dad('0x38')]+'%'};return _0x123208;}})});}_0x400af4=_[_0x6dad('0x39')]({},_0x400af4,_0x59b746['options']);var _0x27bf5d={'where':_0x400af4[_0x6dad('0x36')]};return db[_0x6dad('0x29')][_0x6dad('0x19')](_0x27bf5d)[_0x6dad('0x21')](function(_0x43ff4b){_0x49f4ad[_0x6dad('0x19')]=_0x43ff4b;if(_0x59b746[_0x6dad('0x2e')][_0x6dad('0x3b')]){_0x400af4[_0x6dad('0x3c')]=[{'all':!![]}];}return db[_0x6dad('0x29')][_0x6dad('0x3d')](_0x400af4);})[_0x6dad('0x21')](function(_0x1746ae){_0x49f4ad[_0x6dad('0x3e')]=_0x1746ae;return _0x49f4ad;})[_0x6dad('0x21')](respondWithFilteredResult(_0x2d96f0,_0x400af4))[_0x6dad('0x3f')](handleError(_0x2d96f0,null));};exports[_0x6dad('0x40')]=function(_0x3324c0,_0x30eb9a){var _0x1451c5={'raw':!![],'where':{'id':_0x3324c0[_0x6dad('0x41')]['id']}},_0x454334={};_0x454334['model']=_[_0x6dad('0x42')](db[_0x6dad('0x29')][_0x6dad('0x2a')]);_0x454334['query']=_['keys'](_0x3324c0[_0x6dad('0x2e')]);_0x454334[_0x6dad('0x2f')]=_[_0x6dad('0x30')](_0x454334[_0x6dad('0x2d')],_0x454334[_0x6dad('0x2e')]);_0x1451c5['attributes']=_['intersection'](_0x454334[_0x6dad('0x2d')],qs[_0x6dad('0x32')](_0x3324c0['query']['fields']));_0x1451c5[_0x6dad('0x31')]=_0x1451c5[_0x6dad('0x31')][_0x6dad('0x33')]?_0x1451c5[_0x6dad('0x31')]:_0x454334['model'];if(_0x3324c0[_0x6dad('0x2e')][_0x6dad('0x3b')]){_0x1451c5['include']=[{'all':!![]}];}_0x1451c5=_[_0x6dad('0x39')]({},_0x1451c5,_0x3324c0[_0x6dad('0x43')]);return db[_0x6dad('0x29')][_0x6dad('0x44')](_0x1451c5)[_0x6dad('0x21')](handleEntityNotFound(_0x30eb9a,null))[_0x6dad('0x21')](respondWithResult(_0x30eb9a,null))[_0x6dad('0x3f')](handleError(_0x30eb9a,null));};exports[_0x6dad('0x45')]=function(_0x6cfb0e,_0x5c462e){return db[_0x6dad('0x29')][_0x6dad('0x45')](_0x6cfb0e['body'],{})[_0x6dad('0x21')](respondWithResult(_0x5c462e,0xc9))[_0x6dad('0x3f')](handleError(_0x5c462e,null));};exports[_0x6dad('0x20')]=function(_0x5c8b5b,_0x43cc6f){if(_0x5c8b5b[_0x6dad('0x46')]['id']){delete _0x5c8b5b[_0x6dad('0x46')]['id'];}return db[_0x6dad('0x29')]['find']({'where':{'id':_0x5c8b5b[_0x6dad('0x41')]['id']}})[_0x6dad('0x21')](handleEntityNotFound(_0x43cc6f,null))[_0x6dad('0x21')](saveUpdates(_0x5c8b5b[_0x6dad('0x46')],null))[_0x6dad('0x21')](respondWithResult(_0x43cc6f,null))[_0x6dad('0x3f')](handleError(_0x43cc6f,null));};exports[_0x6dad('0x22')]=function(_0x2d7b4e,_0x5e8e98){return db[_0x6dad('0x29')]['find']({'where':{'id':_0x2d7b4e[_0x6dad('0x41')]['id']}})[_0x6dad('0x21')](handleEntityNotFound(_0x5e8e98,null))['then'](removeEntity(_0x5e8e98,null))['catch'](handleError(_0x5e8e98,null));};
\ No newline at end of file
+var _0xb3ce=['api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','update','then','destroy','error','stack','name','send','index','rawAttributes','fieldName','type','key','model','map','keys','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','VIRTUAL','filter','merge','options','ServicenowField','includeAll','include','rows','catch','show','find','create','body','params','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','querystring','papaparse','../../components/parsers/advancedSearch','../../config/license/hardware'];(function(_0x680515,_0x43dc28){var _0x5a4a8e=function(_0x2424a5){while(--_0x2424a5){_0x680515['push'](_0x680515['shift']());}};_0x5a4a8e(++_0x43dc28);}(_0xb3ce,0x15f));var _0xeb3c=function(_0x4f027d,_0x3f9587){_0x4f027d=_0x4f027d-0x0;var _0xc46890=_0xb3ce[_0x4f027d];return _0xc46890;};'use strict';var emlformat=require(_0xeb3c('0x0'));var rimraf=require(_0xeb3c('0x1'));var zipdir=require(_0xeb3c('0x2'));var jsonpatch=require(_0xeb3c('0x3'));var rp=require(_0xeb3c('0x4'));var moment=require('moment');var BPromise=require(_0xeb3c('0x5'));var Mustache=require('mustache');var util=require(_0xeb3c('0x6'));var path=require(_0xeb3c('0x7'));var sox=require(_0xeb3c('0x8'));var csv=require(_0xeb3c('0x9'));var ejs=require(_0xeb3c('0xa'));var fs=require('fs');var fs_extra=require(_0xeb3c('0xb'));var _=require(_0xeb3c('0xc'));var squel=require(_0xeb3c('0xd'));var crypto=require('crypto');var jsforce=require(_0xeb3c('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xeb3c('0x9'));var querystring=require(_0xeb3c('0xf'));var Papa=require(_0xeb3c('0x10'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xeb3c('0x11'));var hardwareService=require(_0xeb3c('0x12'));var logger=require('../../config/logger')(_0xeb3c('0x13'));var utils=require(_0xeb3c('0x14'));var config=require(_0xeb3c('0x15'));var licenseUtil=require(_0xeb3c('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1d8938,_0x11af97){_0x11af97=_0x11af97||0xcc;return function(_0x196e06){if(_0x196e06){return _0x1d8938[_0xeb3c('0x17')](_0x11af97);}return _0x1d8938[_0xeb3c('0x18')](_0x11af97)[_0xeb3c('0x19')]();};}function respondWithResult(_0x14c89a,_0x198aee){_0x198aee=_0x198aee||0xc8;return function(_0x3ae160){if(_0x3ae160){return _0x14c89a[_0xeb3c('0x18')](_0x198aee)[_0xeb3c('0x1a')](_0x3ae160);}};}function respondWithFilteredResult(_0x1b89f3,_0x14a4ae){return function(_0x99e85d){if(_0x99e85d){var _0x70184d=typeof _0x14a4ae[_0xeb3c('0x1b')]===_0xeb3c('0x1c')&&typeof _0x14a4ae[_0xeb3c('0x1d')]==='undefined';var _0x1c50a3=_0x99e85d[_0xeb3c('0x1e')];var _0x59cde3=_0x70184d?0x0:_0x14a4ae[_0xeb3c('0x1b')];var _0x4713b7=_0x70184d?_0x99e85d[_0xeb3c('0x1e')]:_0x14a4ae[_0xeb3c('0x1b')]+_0x14a4ae[_0xeb3c('0x1d')];var _0x20bd8d;if(_0x4713b7>=_0x1c50a3){_0x4713b7=_0x1c50a3;_0x20bd8d=0xc8;}else{_0x20bd8d=0xce;}_0x1b89f3[_0xeb3c('0x18')](_0x20bd8d);return _0x1b89f3['set'](_0xeb3c('0x1f'),_0x59cde3+'-'+_0x4713b7+'/'+_0x1c50a3)['json'](_0x99e85d);}return null;};}function patchUpdates(_0x1d53f3){return function(_0x10f781){try{jsonpatch[_0xeb3c('0x20')](_0x10f781,_0x1d53f3,!![]);}catch(_0x2109db){return BPromise['reject'](_0x2109db);}return _0x10f781['save']();};}function saveUpdates(_0x5ef05d,_0x2cd011){return function(_0x1104ed){if(_0x1104ed){return _0x1104ed[_0xeb3c('0x21')](_0x5ef05d)[_0xeb3c('0x22')](function(_0x8f4252){return _0x8f4252;});}return null;};}function removeEntity(_0xe6bac6,_0xf09294){return function(_0x59e7d1){if(_0x59e7d1){return _0x59e7d1[_0xeb3c('0x23')]()['then'](function(){_0xe6bac6[_0xeb3c('0x18')](0xcc)[_0xeb3c('0x19')]();});}};}function handleEntityNotFound(_0x267586,_0xd33c16){return function(_0x30f5d0){if(!_0x30f5d0){_0x267586['sendStatus'](0x194);}return _0x30f5d0;};}function handleError(_0x26adc8,_0xbcc19e){_0xbcc19e=_0xbcc19e||0x1f4;return function(_0x417647){logger[_0xeb3c('0x24')](_0x417647[_0xeb3c('0x25')]);if(_0x417647['name']){delete _0x417647[_0xeb3c('0x26')];}_0x26adc8[_0xeb3c('0x18')](_0xbcc19e)[_0xeb3c('0x27')](_0x417647);};}exports[_0xeb3c('0x28')]=function(_0x222daf,_0x20260a){var _0x591e8d={},_0x5bd2fb={},_0x15a578={'count':0x0,'rows':[]};var _0x3a514c=_['map'](db['ServicenowField'][_0xeb3c('0x29')],function(_0x43b0d5){return{'name':_0x43b0d5[_0xeb3c('0x2a')],'type':_0x43b0d5[_0xeb3c('0x2b')][_0xeb3c('0x2c')]};});_0x5bd2fb[_0xeb3c('0x2d')]=_[_0xeb3c('0x2e')](_0x3a514c,_0xeb3c('0x26'));_0x5bd2fb['query']=_[_0xeb3c('0x2f')](_0x222daf[_0xeb3c('0x30')]);_0x5bd2fb['filters']=_[_0xeb3c('0x31')](_0x5bd2fb['model'],_0x5bd2fb[_0xeb3c('0x30')]);_0x591e8d[_0xeb3c('0x32')]=_['intersection'](_0x5bd2fb[_0xeb3c('0x2d')],qs[_0xeb3c('0x33')](_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x33')]));_0x591e8d[_0xeb3c('0x32')]=_0x591e8d['attributes'][_0xeb3c('0x34')]?_0x591e8d[_0xeb3c('0x32')]:_0x5bd2fb[_0xeb3c('0x2d')];if(!_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x35')](_0xeb3c('0x36'))){_0x591e8d['limit']=qs[_0xeb3c('0x1d')](_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x1d')]);_0x591e8d[_0xeb3c('0x1b')]=qs[_0xeb3c('0x1b')](_0x222daf['query'][_0xeb3c('0x1b')]);}_0x591e8d[_0xeb3c('0x37')]=qs[_0xeb3c('0x38')](_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x38')]);_0x591e8d[_0xeb3c('0x39')]=qs[_0xeb3c('0x3a')](_[_0xeb3c('0x3b')](_0x222daf[_0xeb3c('0x30')],_0x5bd2fb[_0xeb3c('0x3a')]),_0x3a514c);if(_0x222daf[_0xeb3c('0x30')]['filter']){_0x591e8d[_0xeb3c('0x39')]=_['merge'](_0x591e8d['where'],{'$or':_[_0xeb3c('0x2e')](_0x3a514c,function(_0x5719dd){if(_0x5719dd[_0xeb3c('0x2b')]!==_0xeb3c('0x3c')){var _0x2baf02={};_0x2baf02[_0x5719dd[_0xeb3c('0x26')]]={'$like':'%'+_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x3d')]+'%'};return _0x2baf02;}})});}_0x591e8d=_[_0xeb3c('0x3e')]({},_0x591e8d,_0x222daf[_0xeb3c('0x3f')]);var _0x3951a6={'where':_0x591e8d[_0xeb3c('0x39')]};return db[_0xeb3c('0x40')][_0xeb3c('0x1e')](_0x3951a6)[_0xeb3c('0x22')](function(_0xfacc65){_0x15a578[_0xeb3c('0x1e')]=_0xfacc65;if(_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x41')]){_0x591e8d[_0xeb3c('0x42')]=[{'all':!![]}];}return db[_0xeb3c('0x40')]['findAll'](_0x591e8d);})[_0xeb3c('0x22')](function(_0x4c77eb){_0x15a578[_0xeb3c('0x43')]=_0x4c77eb;return _0x15a578;})['then'](respondWithFilteredResult(_0x20260a,_0x591e8d))[_0xeb3c('0x44')](handleError(_0x20260a,null));};exports[_0xeb3c('0x45')]=function(_0x1a33d0,_0x1823ed){var _0xf58eb1={'raw':!![],'where':{'id':_0x1a33d0['params']['id']}},_0xd82d16={};_0xd82d16[_0xeb3c('0x2d')]=_[_0xeb3c('0x2f')](db[_0xeb3c('0x40')][_0xeb3c('0x29')]);_0xd82d16['query']=_['keys'](_0x1a33d0['query']);_0xd82d16[_0xeb3c('0x3a')]=_[_0xeb3c('0x31')](_0xd82d16[_0xeb3c('0x2d')],_0xd82d16[_0xeb3c('0x30')]);_0xf58eb1[_0xeb3c('0x32')]=_[_0xeb3c('0x31')](_0xd82d16[_0xeb3c('0x2d')],qs[_0xeb3c('0x33')](_0x1a33d0[_0xeb3c('0x30')][_0xeb3c('0x33')]));_0xf58eb1['attributes']=_0xf58eb1[_0xeb3c('0x32')][_0xeb3c('0x34')]?_0xf58eb1[_0xeb3c('0x32')]:_0xd82d16[_0xeb3c('0x2d')];if(_0x1a33d0[_0xeb3c('0x30')][_0xeb3c('0x41')]){_0xf58eb1[_0xeb3c('0x42')]=[{'all':!![]}];}_0xf58eb1=_[_0xeb3c('0x3e')]({},_0xf58eb1,_0x1a33d0[_0xeb3c('0x3f')]);return db[_0xeb3c('0x40')][_0xeb3c('0x46')](_0xf58eb1)['then'](handleEntityNotFound(_0x1823ed,null))[_0xeb3c('0x22')](respondWithResult(_0x1823ed,null))['catch'](handleError(_0x1823ed,null));};exports['create']=function(_0x4fdac9,_0x1b4a59){return db[_0xeb3c('0x40')][_0xeb3c('0x47')](_0x4fdac9['body'],{})[_0xeb3c('0x22')](respondWithResult(_0x1b4a59,0xc9))[_0xeb3c('0x44')](handleError(_0x1b4a59,null));};exports[_0xeb3c('0x21')]=function(_0x52eafe,_0xdb2420){if(_0x52eafe['body']['id']){delete _0x52eafe[_0xeb3c('0x48')]['id'];}return db['ServicenowField'][_0xeb3c('0x46')]({'where':{'id':_0x52eafe[_0xeb3c('0x49')]['id']}})[_0xeb3c('0x22')](handleEntityNotFound(_0xdb2420,null))['then'](saveUpdates(_0x52eafe['body'],null))[_0xeb3c('0x22')](respondWithResult(_0xdb2420,null))[_0xeb3c('0x44')](handleError(_0xdb2420,null));};exports[_0xeb3c('0x23')]=function(_0x47b357,_0x2c2c41){return db[_0xeb3c('0x40')]['find']({'where':{'id':_0x47b357[_0xeb3c('0x49')]['id']}})[_0xeb3c('0x22')](handleEntityNotFound(_0x2c2c41,null))[_0xeb3c('0x22')](removeEntity(_0x2c2c41,null))['catch'](handleError(_0x2c2c41,null));};
\ No newline at end of file