Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intServicenowField / intServicenowField.controller.js
index 4f4382a..a12065a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa9e0=['sort','where','pick','filter','VIRTUAL','merge','options','include','findAll','catch','params','includeAll','create','body','find','html-pdf','eml-format','rimraf','request-promise','bluebird','mustache','util','path','sox','ejs','lodash','squel','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../mysqldb','sendStatus','status','json','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','end','error','name','send','index','map','ServicenowField','rawAttributes','fieldName','type','key','query','keys','filters','intersection','model','attributes','fields','length','hasOwnProperty','limit'];(function(_0x3f1fe7,_0x103fed){var _0x170075=function(_0x4d16af){while(--_0x4d16af){_0x3f1fe7['push'](_0x3f1fe7['shift']());}};_0x170075(++_0x103fed);}(_0xa9e0,0x123));var _0x0a9e=function(_0x5b561d,_0x422b7c){_0x5b561d=_0x5b561d-0x0;var _0x431060=_0xa9e0[_0x5b561d];return _0x431060;};'use strict';var pdf=require(_0x0a9e('0x0'));var emlformat=require(_0x0a9e('0x1'));var rimraf=require(_0x0a9e('0x2'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x0a9e('0x3'));var moment=require('moment');var BPromise=require(_0x0a9e('0x4'));var Mustache=require(_0x0a9e('0x5'));var util=require(_0x0a9e('0x6'));var path=require(_0x0a9e('0x7'));var sox=require(_0x0a9e('0x8'));var csv=require('to-csv');var ejs=require(_0x0a9e('0x9'));var fs=require('fs');var _=require(_0x0a9e('0xa'));var squel=require(_0x0a9e('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x0a9e('0xc'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x0a9e('0xd'));var Redis=require(_0x0a9e('0xe'));var authService=require(_0x0a9e('0xf'));var qs=require(_0x0a9e('0x10'));var as=require(_0x0a9e('0x11'));var hardwareService=require(_0x0a9e('0x12'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require('../../config/environment');var db=require(_0x0a9e('0x13'))['db'];function respondWithStatusCode(_0x36471c,_0xd5b662){_0xd5b662=_0xd5b662||0xcc;return function(_0x26d672){if(_0x26d672){return _0x36471c[_0x0a9e('0x14')](_0xd5b662);}return _0x36471c[_0x0a9e('0x15')](_0xd5b662)['end']();};}function respondWithResult(_0x4283ce,_0x239b12){_0x239b12=_0x239b12||0xc8;return function(_0x2b4227){if(_0x2b4227){return _0x4283ce[_0x0a9e('0x15')](_0x239b12)[_0x0a9e('0x16')](_0x2b4227);}};}function respondWithFilteredResult(_0x4d5611,_0x52a03d){return function(_0x22dccb){if(_0x22dccb){var _0x5d0880=_0x22dccb[_0x0a9e('0x17')],_0x1985b6=_0x52a03d['offset'],_0x519dfd=_0x52a03d[_0x0a9e('0x18')]+_0x52a03d['limit'],_0x16033c;if(_0x519dfd>=_0x5d0880){_0x519dfd=_0x5d0880;_0x16033c=0xc8;}else{_0x16033c=0xce;}_0x4d5611[_0x0a9e('0x15')](_0x16033c);return _0x4d5611[_0x0a9e('0x19')](_0x0a9e('0x1a'),_0x1985b6+'-'+_0x519dfd+'/'+_0x5d0880)[_0x0a9e('0x16')](_0x22dccb);}return null;};}function patchUpdates(_0x31b1ca){return function(_0x2eb11f){try{jsonpatch[_0x0a9e('0x1b')](_0x2eb11f,_0x31b1ca,!![]);}catch(_0x20559e){return BPromise[_0x0a9e('0x1c')](_0x20559e);}return _0x2eb11f[_0x0a9e('0x1d')]();};}function saveUpdates(_0x1c696a,_0x105080){return function(_0x4bb1e3){if(_0x4bb1e3){return _0x4bb1e3[_0x0a9e('0x1e')](_0x1c696a)[_0x0a9e('0x1f')](function(_0x53682f){return _0x53682f;});}return null;};}function removeEntity(_0x20f109,_0x5a09ef){return function(_0x588269){if(_0x588269){return _0x588269[_0x0a9e('0x20')]()[_0x0a9e('0x1f')](function(){_0x20f109[_0x0a9e('0x15')](0xcc)[_0x0a9e('0x21')]();});}};}function handleEntityNotFound(_0x4abc77,_0xfb6e48){return function(_0x2fb0e4){if(!_0x2fb0e4){_0x4abc77[_0x0a9e('0x14')](0x194);}return _0x2fb0e4;};}function handleError(_0x4d00e6,_0x370d86){_0x370d86=_0x370d86||0x1f4;return function(_0x42ac8f){logger[_0x0a9e('0x22')](_0x42ac8f['stack']);if(_0x42ac8f['name']){delete _0x42ac8f[_0x0a9e('0x23')];}_0x4d00e6[_0x0a9e('0x15')](_0x370d86)[_0x0a9e('0x24')](_0x42ac8f);};}exports[_0x0a9e('0x25')]=function(_0x526cf3,_0x384319){var _0x479bc4={},_0x45a1e7={},_0x5bfb33={'count':0x0,'rows':[]};var _0x1dc186=_[_0x0a9e('0x26')](db[_0x0a9e('0x27')][_0x0a9e('0x28')],function(_0x140511){return{'name':_0x140511[_0x0a9e('0x29')],'type':_0x140511[_0x0a9e('0x2a')][_0x0a9e('0x2b')]};});_0x45a1e7['model']=_[_0x0a9e('0x26')](_0x1dc186,_0x0a9e('0x23'));_0x45a1e7[_0x0a9e('0x2c')]=_[_0x0a9e('0x2d')](_0x526cf3['query']);_0x45a1e7[_0x0a9e('0x2e')]=_[_0x0a9e('0x2f')](_0x45a1e7[_0x0a9e('0x30')],_0x45a1e7[_0x0a9e('0x2c')]);_0x479bc4[_0x0a9e('0x31')]=_[_0x0a9e('0x2f')](_0x45a1e7[_0x0a9e('0x30')],qs[_0x0a9e('0x32')](_0x526cf3[_0x0a9e('0x2c')]['fields']));_0x479bc4[_0x0a9e('0x31')]=_0x479bc4['attributes'][_0x0a9e('0x33')]?_0x479bc4[_0x0a9e('0x31')]:_0x45a1e7[_0x0a9e('0x30')];if(!_0x526cf3[_0x0a9e('0x2c')][_0x0a9e('0x34')]('nolimit')){_0x479bc4[_0x0a9e('0x35')]=qs[_0x0a9e('0x35')](_0x526cf3[_0x0a9e('0x2c')][_0x0a9e('0x35')]);_0x479bc4[_0x0a9e('0x18')]=qs[_0x0a9e('0x18')](_0x526cf3[_0x0a9e('0x2c')][_0x0a9e('0x18')]);}_0x479bc4['order']=qs[_0x0a9e('0x36')](_0x526cf3['query'][_0x0a9e('0x36')]);_0x479bc4[_0x0a9e('0x37')]=qs[_0x0a9e('0x2e')](_[_0x0a9e('0x38')](_0x526cf3['query'],_0x45a1e7[_0x0a9e('0x2e')]),_0x1dc186);if(_0x526cf3[_0x0a9e('0x2c')][_0x0a9e('0x39')]){_0x479bc4[_0x0a9e('0x37')]=_['merge'](_0x479bc4['where'],{'$or':_[_0x0a9e('0x26')](_0x1dc186,function(_0x5640eb){if(_0x5640eb[_0x0a9e('0x2a')]!==_0x0a9e('0x3a')){var _0x381c37={};_0x381c37[_0x5640eb[_0x0a9e('0x23')]]={'$like':'%'+_0x526cf3['query'][_0x0a9e('0x39')]+'%'};return _0x381c37;}})});}_0x479bc4=_[_0x0a9e('0x3b')]({},_0x479bc4,_0x526cf3[_0x0a9e('0x3c')]);var _0x533942={'where':_0x479bc4[_0x0a9e('0x37')]};return db[_0x0a9e('0x27')][_0x0a9e('0x17')](_0x533942)['then'](function(_0x546ef8){_0x5bfb33[_0x0a9e('0x17')]=_0x546ef8;if(_0x526cf3[_0x0a9e('0x2c')]['includeAll']){_0x479bc4[_0x0a9e('0x3d')]=[{'all':!![]}];}return db[_0x0a9e('0x27')][_0x0a9e('0x3e')](_0x479bc4);})[_0x0a9e('0x1f')](function(_0x4b38d9){_0x5bfb33['rows']=_0x4b38d9;return _0x5bfb33;})[_0x0a9e('0x1f')](respondWithFilteredResult(_0x384319,_0x479bc4))[_0x0a9e('0x3f')](handleError(_0x384319,null));};exports['show']=function(_0x183991,_0x1dec2e){var _0x1459bb={'raw':!![],'where':{'id':_0x183991[_0x0a9e('0x40')]['id']}},_0x5b4f5e={};_0x5b4f5e[_0x0a9e('0x30')]=_[_0x0a9e('0x2d')](db[_0x0a9e('0x27')][_0x0a9e('0x28')]);_0x5b4f5e[_0x0a9e('0x2c')]=_[_0x0a9e('0x2d')](_0x183991[_0x0a9e('0x2c')]);_0x5b4f5e[_0x0a9e('0x2e')]=_[_0x0a9e('0x2f')](_0x5b4f5e[_0x0a9e('0x30')],_0x5b4f5e[_0x0a9e('0x2c')]);_0x1459bb[_0x0a9e('0x31')]=_[_0x0a9e('0x2f')](_0x5b4f5e[_0x0a9e('0x30')],qs['fields'](_0x183991['query'][_0x0a9e('0x32')]));_0x1459bb[_0x0a9e('0x31')]=_0x1459bb[_0x0a9e('0x31')][_0x0a9e('0x33')]?_0x1459bb[_0x0a9e('0x31')]:_0x5b4f5e[_0x0a9e('0x30')];if(_0x183991[_0x0a9e('0x2c')][_0x0a9e('0x41')]){_0x1459bb[_0x0a9e('0x3d')]=[{'all':!![]}];}_0x1459bb=_[_0x0a9e('0x3b')]({},_0x1459bb,_0x183991[_0x0a9e('0x3c')]);return db[_0x0a9e('0x27')]['find'](_0x1459bb)[_0x0a9e('0x1f')](handleEntityNotFound(_0x1dec2e,null))[_0x0a9e('0x1f')](respondWithResult(_0x1dec2e,null))[_0x0a9e('0x3f')](handleError(_0x1dec2e,null));};exports[_0x0a9e('0x42')]=function(_0x2e8caf,_0xbe9d19){return db[_0x0a9e('0x27')][_0x0a9e('0x42')](_0x2e8caf['body'],{})[_0x0a9e('0x1f')](respondWithResult(_0xbe9d19,0xc9))['catch'](handleError(_0xbe9d19,null));};exports[_0x0a9e('0x1e')]=function(_0x476688,_0x8d6dd1){if(_0x476688['body']['id']){delete _0x476688[_0x0a9e('0x43')]['id'];}return db[_0x0a9e('0x27')][_0x0a9e('0x44')]({'where':{'id':_0x476688[_0x0a9e('0x40')]['id']}})[_0x0a9e('0x1f')](handleEntityNotFound(_0x8d6dd1,null))[_0x0a9e('0x1f')](saveUpdates(_0x476688[_0x0a9e('0x43')],null))['then'](respondWithResult(_0x8d6dd1,null))[_0x0a9e('0x3f')](handleError(_0x8d6dd1,null));};exports[_0x0a9e('0x20')]=function(_0x1b5e80,_0x16f976){return db[_0x0a9e('0x27')][_0x0a9e('0x44')]({'where':{'id':_0x1b5e80[_0x0a9e('0x40')]['id']}})[_0x0a9e('0x1f')](handleEntityNotFound(_0x16f976,null))[_0x0a9e('0x1f')](removeEntity(_0x16f976,null))['catch'](handleError(_0x16f976,null));};
\ No newline at end of file
+var _0xbb89=['../../config/license/util','sendStatus','status','limit','undefined','count','offset','json','apply','reject','save','update','destroy','end','error','stack','name','send','index','ServicenowField','fieldName','type','key','model','map','query','keys','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','merge','VIRTUAL','filter','options','then','includeAll','include','findAll','rows','catch','params','find','create','body','zip-dir','fast-json-patch','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','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'];(function(_0x236023,_0xa7f6b6){var _0x5ef19f=function(_0x4e3dfa){while(--_0x4e3dfa){_0x236023['push'](_0x236023['shift']());}};_0x5ef19f(++_0xa7f6b6);}(_0xbb89,0x168));var _0x9bb8=function(_0x2be8c2,_0x14a4b5){_0x2be8c2=_0x2be8c2-0x0;var _0x97f531=_0xbb89[_0x2be8c2];return _0x97f531;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x9bb8('0x0'));var jsonpatch=require(_0x9bb8('0x1'));var rp=require('request-promise');var moment=require(_0x9bb8('0x2'));var BPromise=require('bluebird');var Mustache=require(_0x9bb8('0x3'));var util=require(_0x9bb8('0x4'));var path=require(_0x9bb8('0x5'));var sox=require(_0x9bb8('0x6'));var csv=require(_0x9bb8('0x7'));var ejs=require(_0x9bb8('0x8'));var fs=require('fs');var fs_extra=require(_0x9bb8('0x9'));var _=require(_0x9bb8('0xa'));var squel=require(_0x9bb8('0xb'));var crypto=require(_0x9bb8('0xc'));var jsforce=require(_0x9bb8('0xd'));var deskjs=require(_0x9bb8('0xe'));var toCsv=require('to-csv');var querystring=require(_0x9bb8('0xf'));var Papa=require(_0x9bb8('0x10'));var Redis=require('ioredis');var authService=require(_0x9bb8('0x11'));var qs=require(_0x9bb8('0x12'));var as=require(_0x9bb8('0x13'));var hardwareService=require(_0x9bb8('0x14'));var logger=require(_0x9bb8('0x15'))(_0x9bb8('0x16'));var utils=require(_0x9bb8('0x17'));var config=require(_0x9bb8('0x18'));var licenseUtil=require(_0x9bb8('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x9a0b0a,_0x5c083b){_0x5c083b=_0x5c083b||0xcc;return function(_0x46ff07){if(_0x46ff07){return _0x9a0b0a[_0x9bb8('0x1a')](_0x5c083b);}return _0x9a0b0a[_0x9bb8('0x1b')](_0x5c083b)['end']();};}function respondWithResult(_0x2b227a,_0x39e6bc){_0x39e6bc=_0x39e6bc||0xc8;return function(_0x3d9491){if(_0x3d9491){return _0x2b227a[_0x9bb8('0x1b')](_0x39e6bc)['json'](_0x3d9491);}};}function respondWithFilteredResult(_0x49b2df,_0x215ee9){return function(_0x2e10cf){if(_0x2e10cf){var _0x51a711=typeof _0x215ee9['offset']==='undefined'&&typeof _0x215ee9[_0x9bb8('0x1c')]===_0x9bb8('0x1d');var _0x3ea294=_0x2e10cf[_0x9bb8('0x1e')];var _0x3f405f=_0x51a711?0x0:_0x215ee9['offset'];var _0x4194b8=_0x51a711?_0x2e10cf[_0x9bb8('0x1e')]:_0x215ee9[_0x9bb8('0x1f')]+_0x215ee9[_0x9bb8('0x1c')];var _0xcc0f36;if(_0x4194b8>=_0x3ea294){_0x4194b8=_0x3ea294;_0xcc0f36=0xc8;}else{_0xcc0f36=0xce;}_0x49b2df[_0x9bb8('0x1b')](_0xcc0f36);return _0x49b2df['set']('Content-Range',_0x3f405f+'-'+_0x4194b8+'/'+_0x3ea294)[_0x9bb8('0x20')](_0x2e10cf);}return null;};}function patchUpdates(_0x5df77f){return function(_0x5d1908){try{jsonpatch[_0x9bb8('0x21')](_0x5d1908,_0x5df77f,!![]);}catch(_0x178fdb){return BPromise[_0x9bb8('0x22')](_0x178fdb);}return _0x5d1908[_0x9bb8('0x23')]();};}function saveUpdates(_0x1ef849,_0x2a365c){return function(_0x488236){if(_0x488236){return _0x488236[_0x9bb8('0x24')](_0x1ef849)['then'](function(_0x576eca){return _0x576eca;});}return null;};}function removeEntity(_0x2cf285,_0x296554){return function(_0x50111c){if(_0x50111c){return _0x50111c[_0x9bb8('0x25')]()['then'](function(){_0x2cf285['status'](0xcc)[_0x9bb8('0x26')]();});}};}function handleEntityNotFound(_0x48abef,_0x1b3a89){return function(_0x14df19){if(!_0x14df19){_0x48abef[_0x9bb8('0x1a')](0x194);}return _0x14df19;};}function handleError(_0x3e74cc,_0x5048c9){_0x5048c9=_0x5048c9||0x1f4;return function(_0x437eee){logger[_0x9bb8('0x27')](_0x437eee[_0x9bb8('0x28')]);if(_0x437eee[_0x9bb8('0x29')]){delete _0x437eee[_0x9bb8('0x29')];}_0x3e74cc['status'](_0x5048c9)[_0x9bb8('0x2a')](_0x437eee);};}exports[_0x9bb8('0x2b')]=function(_0x46f5f9,_0xfdda80){var _0xebefe0={},_0x3eae6f={},_0x2066f3={'count':0x0,'rows':[]};var _0x4b7df2=_['map'](db[_0x9bb8('0x2c')]['rawAttributes'],function(_0x3d6511){return{'name':_0x3d6511[_0x9bb8('0x2d')],'type':_0x3d6511[_0x9bb8('0x2e')][_0x9bb8('0x2f')]};});_0x3eae6f[_0x9bb8('0x30')]=_[_0x9bb8('0x31')](_0x4b7df2,'name');_0x3eae6f[_0x9bb8('0x32')]=_[_0x9bb8('0x33')](_0x46f5f9['query']);_0x3eae6f['filters']=_[_0x9bb8('0x34')](_0x3eae6f['model'],_0x3eae6f[_0x9bb8('0x32')]);_0xebefe0[_0x9bb8('0x35')]=_[_0x9bb8('0x34')](_0x3eae6f[_0x9bb8('0x30')],qs[_0x9bb8('0x36')](_0x46f5f9[_0x9bb8('0x32')]['fields']));_0xebefe0[_0x9bb8('0x35')]=_0xebefe0[_0x9bb8('0x35')][_0x9bb8('0x37')]?_0xebefe0[_0x9bb8('0x35')]:_0x3eae6f[_0x9bb8('0x30')];if(!_0x46f5f9[_0x9bb8('0x32')][_0x9bb8('0x38')](_0x9bb8('0x39'))){_0xebefe0['limit']=qs[_0x9bb8('0x1c')](_0x46f5f9[_0x9bb8('0x32')][_0x9bb8('0x1c')]);_0xebefe0['offset']=qs[_0x9bb8('0x1f')](_0x46f5f9[_0x9bb8('0x32')]['offset']);}_0xebefe0[_0x9bb8('0x3a')]=qs[_0x9bb8('0x3b')](_0x46f5f9['query'][_0x9bb8('0x3b')]);_0xebefe0[_0x9bb8('0x3c')]=qs[_0x9bb8('0x3d')](_[_0x9bb8('0x3e')](_0x46f5f9[_0x9bb8('0x32')],_0x3eae6f[_0x9bb8('0x3d')]),_0x4b7df2);if(_0x46f5f9[_0x9bb8('0x32')]['filter']){_0xebefe0[_0x9bb8('0x3c')]=_[_0x9bb8('0x3f')](_0xebefe0[_0x9bb8('0x3c')],{'$or':_[_0x9bb8('0x31')](_0x4b7df2,function(_0xc85743){if(_0xc85743[_0x9bb8('0x2e')]!==_0x9bb8('0x40')){var _0x1c915d={};_0x1c915d[_0xc85743[_0x9bb8('0x29')]]={'$like':'%'+_0x46f5f9[_0x9bb8('0x32')][_0x9bb8('0x41')]+'%'};return _0x1c915d;}})});}_0xebefe0=_[_0x9bb8('0x3f')]({},_0xebefe0,_0x46f5f9[_0x9bb8('0x42')]);var _0x15b619={'where':_0xebefe0['where']};return db[_0x9bb8('0x2c')]['count'](_0x15b619)[_0x9bb8('0x43')](function(_0x346f5a){_0x2066f3[_0x9bb8('0x1e')]=_0x346f5a;if(_0x46f5f9['query'][_0x9bb8('0x44')]){_0xebefe0[_0x9bb8('0x45')]=[{'all':!![]}];}return db[_0x9bb8('0x2c')][_0x9bb8('0x46')](_0xebefe0);})['then'](function(_0x2a9867){_0x2066f3[_0x9bb8('0x47')]=_0x2a9867;return _0x2066f3;})['then'](respondWithFilteredResult(_0xfdda80,_0xebefe0))[_0x9bb8('0x48')](handleError(_0xfdda80,null));};exports['show']=function(_0x2b2046,_0x4a8165){var _0x3f8e6b={'raw':!![],'where':{'id':_0x2b2046[_0x9bb8('0x49')]['id']}},_0x579066={};_0x579066['model']=_['keys'](db['ServicenowField']['rawAttributes']);_0x579066[_0x9bb8('0x32')]=_[_0x9bb8('0x33')](_0x2b2046['query']);_0x579066['filters']=_['intersection'](_0x579066[_0x9bb8('0x30')],_0x579066[_0x9bb8('0x32')]);_0x3f8e6b[_0x9bb8('0x35')]=_[_0x9bb8('0x34')](_0x579066[_0x9bb8('0x30')],qs[_0x9bb8('0x36')](_0x2b2046['query'][_0x9bb8('0x36')]));_0x3f8e6b[_0x9bb8('0x35')]=_0x3f8e6b['attributes'][_0x9bb8('0x37')]?_0x3f8e6b['attributes']:_0x579066[_0x9bb8('0x30')];if(_0x2b2046[_0x9bb8('0x32')][_0x9bb8('0x44')]){_0x3f8e6b[_0x9bb8('0x45')]=[{'all':!![]}];}_0x3f8e6b=_['merge']({},_0x3f8e6b,_0x2b2046[_0x9bb8('0x42')]);return db[_0x9bb8('0x2c')][_0x9bb8('0x4a')](_0x3f8e6b)[_0x9bb8('0x43')](handleEntityNotFound(_0x4a8165,null))[_0x9bb8('0x43')](respondWithResult(_0x4a8165,null))['catch'](handleError(_0x4a8165,null));};exports[_0x9bb8('0x4b')]=function(_0x413ef9,_0x46cbd1){return db[_0x9bb8('0x2c')]['create'](_0x413ef9[_0x9bb8('0x4c')],{})[_0x9bb8('0x43')](respondWithResult(_0x46cbd1,0xc9))[_0x9bb8('0x48')](handleError(_0x46cbd1,null));};exports[_0x9bb8('0x24')]=function(_0x491b1b,_0x158d88){if(_0x491b1b[_0x9bb8('0x4c')]['id']){delete _0x491b1b[_0x9bb8('0x4c')]['id'];}return db[_0x9bb8('0x2c')][_0x9bb8('0x4a')]({'where':{'id':_0x491b1b[_0x9bb8('0x49')]['id']}})['then'](handleEntityNotFound(_0x158d88,null))[_0x9bb8('0x43')](saveUpdates(_0x491b1b[_0x9bb8('0x4c')],null))['then'](respondWithResult(_0x158d88,null))[_0x9bb8('0x48')](handleError(_0x158d88,null));};exports[_0x9bb8('0x25')]=function(_0x48dc5c,_0x4f0702){return db[_0x9bb8('0x2c')][_0x9bb8('0x4a')]({'where':{'id':_0x48dc5c['params']['id']}})[_0x9bb8('0x43')](handleEntityNotFound(_0x4f0702,null))[_0x9bb8('0x43')](removeEntity(_0x4f0702,null))[_0x9bb8('0x48')](handleError(_0x4f0702,null));};
\ No newline at end of file