Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intDeskField / intDeskField.controller.js
index bf23a95..57074d4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcaf2=['papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','json','offset','limit','count','status','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','send','index','map','DeskField','rawAttributes','fieldName','type','model','query','keys','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filters','filter','merge','VIRTUAL','options','include','findAll','rows','catch','show','params','includeAll','find','create','body','eml-format','zip-dir','fast-json-patch','moment','bluebird','util','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring'];(function(_0x101a17,_0x5d047a){var _0x3b76ee=function(_0x89be1b){while(--_0x89be1b){_0x101a17['push'](_0x101a17['shift']());}};_0x3b76ee(++_0x5d047a);}(_0xcaf2,0x8a));var _0x2caf=function(_0x4e7c2,_0x3b3347){_0x4e7c2=_0x4e7c2-0x0;var _0x84bb35=_0xcaf2[_0x4e7c2];return _0x84bb35;};'use strict';var emlformat=require(_0x2caf('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x2caf('0x1'));var jsonpatch=require(_0x2caf('0x2'));var rp=require('request-promise');var moment=require(_0x2caf('0x3'));var BPromise=require(_0x2caf('0x4'));var Mustache=require('mustache');var util=require(_0x2caf('0x5'));var path=require('path');var sox=require(_0x2caf('0x6'));var csv=require(_0x2caf('0x7'));var ejs=require(_0x2caf('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x2caf('0x9'));var squel=require(_0x2caf('0xa'));var crypto=require(_0x2caf('0xb'));var jsforce=require(_0x2caf('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x2caf('0x7'));var querystring=require(_0x2caf('0xd'));var Papa=require(_0x2caf('0xe'));var Redis=require(_0x2caf('0xf'));var authService=require(_0x2caf('0x10'));var qs=require(_0x2caf('0x11'));var as=require(_0x2caf('0x12'));var hardwareService=require(_0x2caf('0x13'));var logger=require(_0x2caf('0x14'))('api');var utils=require(_0x2caf('0x15'));var config=require(_0x2caf('0x16'));var licenseUtil=require(_0x2caf('0x17'));var db=require(_0x2caf('0x18'))['db'];function respondWithStatusCode(_0x1dda08,_0x31c0e7){_0x31c0e7=_0x31c0e7||0xcc;return function(_0x252147){if(_0x252147){return _0x1dda08[_0x2caf('0x19')](_0x31c0e7);}return _0x1dda08['status'](_0x31c0e7)[_0x2caf('0x1a')]();};}function respondWithResult(_0xec8192,_0x502033){_0x502033=_0x502033||0xc8;return function(_0x4c47b8){if(_0x4c47b8){return _0xec8192['status'](_0x502033)[_0x2caf('0x1b')](_0x4c47b8);}};}function respondWithFilteredResult(_0x4da5ba,_0x388e05){return function(_0xa75896){if(_0xa75896){var _0x3b8b67=typeof _0x388e05[_0x2caf('0x1c')]==='undefined'&&typeof _0x388e05[_0x2caf('0x1d')]==='undefined';var _0x2d5b64=_0xa75896['count'];var _0x4a33fc=_0x3b8b67?0x0:_0x388e05[_0x2caf('0x1c')];var _0x58047b=_0x3b8b67?_0xa75896[_0x2caf('0x1e')]:_0x388e05[_0x2caf('0x1c')]+_0x388e05['limit'];var _0x12624b;if(_0x58047b>=_0x2d5b64){_0x58047b=_0x2d5b64;_0x12624b=0xc8;}else{_0x12624b=0xce;}_0x4da5ba[_0x2caf('0x1f')](_0x12624b);return _0x4da5ba[_0x2caf('0x20')](_0x2caf('0x21'),_0x4a33fc+'-'+_0x58047b+'/'+_0x2d5b64)[_0x2caf('0x1b')](_0xa75896);}return null;};}function patchUpdates(_0x595f2f){return function(_0xfa426f){try{jsonpatch[_0x2caf('0x22')](_0xfa426f,_0x595f2f,!![]);}catch(_0x2b4d16){return BPromise[_0x2caf('0x23')](_0x2b4d16);}return _0xfa426f[_0x2caf('0x24')]();};}function saveUpdates(_0x9d6bae,_0x4092ba){return function(_0x256cc4){if(_0x256cc4){return _0x256cc4[_0x2caf('0x25')](_0x9d6bae)[_0x2caf('0x26')](function(_0x6814bc){return _0x6814bc;});}return null;};}function removeEntity(_0x5231fc,_0x296305){return function(_0x14bfd2){if(_0x14bfd2){return _0x14bfd2[_0x2caf('0x27')]()[_0x2caf('0x26')](function(){_0x5231fc[_0x2caf('0x1f')](0xcc)[_0x2caf('0x1a')]();});}};}function handleEntityNotFound(_0x392196,_0x164da){return function(_0x2e0a75){if(!_0x2e0a75){_0x392196[_0x2caf('0x19')](0x194);}return _0x2e0a75;};}function handleError(_0x5ad211,_0x6a32ac){_0x6a32ac=_0x6a32ac||0x1f4;return function(_0x325eda){logger[_0x2caf('0x28')](_0x325eda[_0x2caf('0x29')]);if(_0x325eda[_0x2caf('0x2a')]){delete _0x325eda[_0x2caf('0x2a')];}_0x5ad211[_0x2caf('0x1f')](_0x6a32ac)[_0x2caf('0x2b')](_0x325eda);};}exports[_0x2caf('0x2c')]=function(_0x2304f1,_0x30da75){var _0x1f477={},_0x158d60={},_0x48b5f7={'count':0x0,'rows':[]};var _0xb944cc=_[_0x2caf('0x2d')](db[_0x2caf('0x2e')][_0x2caf('0x2f')],function(_0xa8523b){return{'name':_0xa8523b[_0x2caf('0x30')],'type':_0xa8523b[_0x2caf('0x31')]['key']};});_0x158d60[_0x2caf('0x32')]=_[_0x2caf('0x2d')](_0xb944cc,'name');_0x158d60[_0x2caf('0x33')]=_[_0x2caf('0x34')](_0x2304f1[_0x2caf('0x33')]);_0x158d60['filters']=_[_0x2caf('0x35')](_0x158d60['model'],_0x158d60['query']);_0x1f477[_0x2caf('0x36')]=_[_0x2caf('0x35')](_0x158d60[_0x2caf('0x32')],qs[_0x2caf('0x37')](_0x2304f1[_0x2caf('0x33')][_0x2caf('0x37')]));_0x1f477[_0x2caf('0x36')]=_0x1f477[_0x2caf('0x36')][_0x2caf('0x38')]?_0x1f477['attributes']:_0x158d60[_0x2caf('0x32')];if(!_0x2304f1[_0x2caf('0x33')][_0x2caf('0x39')](_0x2caf('0x3a'))){_0x1f477[_0x2caf('0x1d')]=qs[_0x2caf('0x1d')](_0x2304f1[_0x2caf('0x33')][_0x2caf('0x1d')]);_0x1f477[_0x2caf('0x1c')]=qs[_0x2caf('0x1c')](_0x2304f1[_0x2caf('0x33')][_0x2caf('0x1c')]);}_0x1f477['order']=qs['sort'](_0x2304f1[_0x2caf('0x33')][_0x2caf('0x3b')]);_0x1f477[_0x2caf('0x3c')]=qs[_0x2caf('0x3d')](_['pick'](_0x2304f1[_0x2caf('0x33')],_0x158d60[_0x2caf('0x3d')]),_0xb944cc);if(_0x2304f1[_0x2caf('0x33')][_0x2caf('0x3e')]){_0x1f477[_0x2caf('0x3c')]=_[_0x2caf('0x3f')](_0x1f477[_0x2caf('0x3c')],{'$or':_[_0x2caf('0x2d')](_0xb944cc,function(_0x5c133c){if(_0x5c133c['type']!==_0x2caf('0x40')){var _0x863fca={};_0x863fca[_0x5c133c[_0x2caf('0x2a')]]={'$like':'%'+_0x2304f1[_0x2caf('0x33')][_0x2caf('0x3e')]+'%'};return _0x863fca;}})});}_0x1f477=_[_0x2caf('0x3f')]({},_0x1f477,_0x2304f1[_0x2caf('0x41')]);var _0xf93228={'where':_0x1f477[_0x2caf('0x3c')]};return db[_0x2caf('0x2e')][_0x2caf('0x1e')](_0xf93228)['then'](function(_0x35ad7f){_0x48b5f7[_0x2caf('0x1e')]=_0x35ad7f;if(_0x2304f1[_0x2caf('0x33')]['includeAll']){_0x1f477[_0x2caf('0x42')]=[{'all':!![]}];}return db[_0x2caf('0x2e')][_0x2caf('0x43')](_0x1f477);})['then'](function(_0x40cb18){_0x48b5f7[_0x2caf('0x44')]=_0x40cb18;return _0x48b5f7;})['then'](respondWithFilteredResult(_0x30da75,_0x1f477))[_0x2caf('0x45')](handleError(_0x30da75,null));};exports[_0x2caf('0x46')]=function(_0x4e57b0,_0xe5fcbf){var _0x1348d8={'raw':!![],'where':{'id':_0x4e57b0[_0x2caf('0x47')]['id']}},_0x2e4126={};_0x2e4126[_0x2caf('0x32')]=_[_0x2caf('0x34')](db[_0x2caf('0x2e')][_0x2caf('0x2f')]);_0x2e4126['query']=_[_0x2caf('0x34')](_0x4e57b0['query']);_0x2e4126[_0x2caf('0x3d')]=_[_0x2caf('0x35')](_0x2e4126[_0x2caf('0x32')],_0x2e4126['query']);_0x1348d8['attributes']=_[_0x2caf('0x35')](_0x2e4126['model'],qs[_0x2caf('0x37')](_0x4e57b0[_0x2caf('0x33')][_0x2caf('0x37')]));_0x1348d8[_0x2caf('0x36')]=_0x1348d8[_0x2caf('0x36')][_0x2caf('0x38')]?_0x1348d8[_0x2caf('0x36')]:_0x2e4126[_0x2caf('0x32')];if(_0x4e57b0[_0x2caf('0x33')][_0x2caf('0x48')]){_0x1348d8[_0x2caf('0x42')]=[{'all':!![]}];}_0x1348d8=_[_0x2caf('0x3f')]({},_0x1348d8,_0x4e57b0[_0x2caf('0x41')]);return db[_0x2caf('0x2e')][_0x2caf('0x49')](_0x1348d8)[_0x2caf('0x26')](handleEntityNotFound(_0xe5fcbf,null))[_0x2caf('0x26')](respondWithResult(_0xe5fcbf,null))[_0x2caf('0x45')](handleError(_0xe5fcbf,null));};exports[_0x2caf('0x4a')]=function(_0x3a598b,_0x136dc9){return db['DeskField'][_0x2caf('0x4a')](_0x3a598b[_0x2caf('0x4b')],{})['then'](respondWithResult(_0x136dc9,0xc9))['catch'](handleError(_0x136dc9,null));};exports[_0x2caf('0x25')]=function(_0x6f0a2a,_0x5a822d){if(_0x6f0a2a[_0x2caf('0x4b')]['id']){delete _0x6f0a2a[_0x2caf('0x4b')]['id'];}return db[_0x2caf('0x2e')][_0x2caf('0x49')]({'where':{'id':_0x6f0a2a[_0x2caf('0x47')]['id']}})[_0x2caf('0x26')](handleEntityNotFound(_0x5a822d,null))[_0x2caf('0x26')](saveUpdates(_0x6f0a2a[_0x2caf('0x4b')],null))[_0x2caf('0x26')](respondWithResult(_0x5a822d,null))[_0x2caf('0x45')](handleError(_0x5a822d,null));};exports[_0x2caf('0x27')]=function(_0x2b318a,_0x41b7b2){return db['DeskField'][_0x2caf('0x49')]({'where':{'id':_0x2b318a[_0x2caf('0x47')]['id']}})[_0x2caf('0x26')](handleEntityNotFound(_0x41b7b2,null))['then'](removeEntity(_0x41b7b2,null))[_0x2caf('0x45')](handleError(_0x41b7b2,null));};
\ No newline at end of file
+var _0xe528=['sendStatus','status','end','json','offset','undefined','count','limit','set','Content-Range','apply','save','then','destroy','error','stack','name','send','index','map','DeskField','rawAttributes','type','key','query','keys','filters','intersection','model','attributes','fields','hasOwnProperty','nolimit','order','sort','where','merge','VIRTUAL','filter','options','includeAll','rows','catch','show','params','length','include','find','create','update','body','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util'];(function(_0x9fd887,_0x47f76c){var _0x1a54ab=function(_0xb65c08){while(--_0xb65c08){_0x9fd887['push'](_0x9fd887['shift']());}};_0x1a54ab(++_0x47f76c);}(_0xe528,0x167));var _0x8e52=function(_0x361227,_0xe30d55){_0x361227=_0x361227-0x0;var _0x16192b=_0xe528[_0x361227];return _0x16192b;};'use strict';var emlformat=require(_0x8e52('0x0'));var rimraf=require(_0x8e52('0x1'));var zipdir=require(_0x8e52('0x2'));var jsonpatch=require(_0x8e52('0x3'));var rp=require('request-promise');var moment=require(_0x8e52('0x4'));var BPromise=require(_0x8e52('0x5'));var Mustache=require('mustache');var util=require(_0x8e52('0x6'));var path=require(_0x8e52('0x7'));var sox=require(_0x8e52('0x8'));var csv=require(_0x8e52('0x9'));var ejs=require(_0x8e52('0xa'));var fs=require('fs');var fs_extra=require(_0x8e52('0xb'));var _=require(_0x8e52('0xc'));var squel=require(_0x8e52('0xd'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x8e52('0xe'));var toCsv=require(_0x8e52('0x9'));var querystring=require(_0x8e52('0xf'));var Papa=require(_0x8e52('0x10'));var Redis=require(_0x8e52('0x11'));var authService=require(_0x8e52('0x12'));var qs=require(_0x8e52('0x13'));var as=require(_0x8e52('0x14'));var hardwareService=require(_0x8e52('0x15'));var logger=require(_0x8e52('0x16'))('api');var utils=require(_0x8e52('0x17'));var config=require(_0x8e52('0x18'));var licenseUtil=require(_0x8e52('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x48c7a7,_0x3e58e6){_0x3e58e6=_0x3e58e6||0xcc;return function(_0x5aa51d){if(_0x5aa51d){return _0x48c7a7[_0x8e52('0x1a')](_0x3e58e6);}return _0x48c7a7[_0x8e52('0x1b')](_0x3e58e6)[_0x8e52('0x1c')]();};}function respondWithResult(_0x215314,_0x58ed29){_0x58ed29=_0x58ed29||0xc8;return function(_0x33fb5f){if(_0x33fb5f){return _0x215314[_0x8e52('0x1b')](_0x58ed29)[_0x8e52('0x1d')](_0x33fb5f);}};}function respondWithFilteredResult(_0x1df449,_0x3a6661){return function(_0xc6d275){if(_0xc6d275){var _0x55e24d=typeof _0x3a6661[_0x8e52('0x1e')]===_0x8e52('0x1f')&&typeof _0x3a6661['limit']===_0x8e52('0x1f');var _0x421887=_0xc6d275['count'];var _0x1658d6=_0x55e24d?0x0:_0x3a6661[_0x8e52('0x1e')];var _0x3358c0=_0x55e24d?_0xc6d275[_0x8e52('0x20')]:_0x3a6661['offset']+_0x3a6661[_0x8e52('0x21')];var _0x5306f3;if(_0x3358c0>=_0x421887){_0x3358c0=_0x421887;_0x5306f3=0xc8;}else{_0x5306f3=0xce;}_0x1df449[_0x8e52('0x1b')](_0x5306f3);return _0x1df449[_0x8e52('0x22')](_0x8e52('0x23'),_0x1658d6+'-'+_0x3358c0+'/'+_0x421887)[_0x8e52('0x1d')](_0xc6d275);}return null;};}function patchUpdates(_0x5d677f){return function(_0x1e5f4f){try{jsonpatch[_0x8e52('0x24')](_0x1e5f4f,_0x5d677f,!![]);}catch(_0xb36439){return BPromise['reject'](_0xb36439);}return _0x1e5f4f[_0x8e52('0x25')]();};}function saveUpdates(_0x32e0a7,_0x387a0e){return function(_0x30fda2){if(_0x30fda2){return _0x30fda2['update'](_0x32e0a7)[_0x8e52('0x26')](function(_0x32c1ad){return _0x32c1ad;});}return null;};}function removeEntity(_0x51b94f,_0xade2b2){return function(_0x3fc7d0){if(_0x3fc7d0){return _0x3fc7d0[_0x8e52('0x27')]()[_0x8e52('0x26')](function(){_0x51b94f[_0x8e52('0x1b')](0xcc)[_0x8e52('0x1c')]();});}};}function handleEntityNotFound(_0x2d1569,_0x7488a6){return function(_0x55067b){if(!_0x55067b){_0x2d1569[_0x8e52('0x1a')](0x194);}return _0x55067b;};}function handleError(_0xe39c70,_0x472dc6){_0x472dc6=_0x472dc6||0x1f4;return function(_0x594331){logger[_0x8e52('0x28')](_0x594331[_0x8e52('0x29')]);if(_0x594331[_0x8e52('0x2a')]){delete _0x594331[_0x8e52('0x2a')];}_0xe39c70[_0x8e52('0x1b')](_0x472dc6)[_0x8e52('0x2b')](_0x594331);};}exports[_0x8e52('0x2c')]=function(_0x49eacd,_0x1ffdfc){var _0x503c1e={},_0x27ce34={},_0x20068d={'count':0x0,'rows':[]};var _0x2ea17a=_[_0x8e52('0x2d')](db[_0x8e52('0x2e')][_0x8e52('0x2f')],function(_0x579775){return{'name':_0x579775['fieldName'],'type':_0x579775[_0x8e52('0x30')][_0x8e52('0x31')]};});_0x27ce34['model']=_[_0x8e52('0x2d')](_0x2ea17a,_0x8e52('0x2a'));_0x27ce34[_0x8e52('0x32')]=_[_0x8e52('0x33')](_0x49eacd[_0x8e52('0x32')]);_0x27ce34[_0x8e52('0x34')]=_[_0x8e52('0x35')](_0x27ce34[_0x8e52('0x36')],_0x27ce34[_0x8e52('0x32')]);_0x503c1e[_0x8e52('0x37')]=_[_0x8e52('0x35')](_0x27ce34[_0x8e52('0x36')],qs['fields'](_0x49eacd['query'][_0x8e52('0x38')]));_0x503c1e['attributes']=_0x503c1e[_0x8e52('0x37')]['length']?_0x503c1e[_0x8e52('0x37')]:_0x27ce34['model'];if(!_0x49eacd[_0x8e52('0x32')][_0x8e52('0x39')](_0x8e52('0x3a'))){_0x503c1e[_0x8e52('0x21')]=qs['limit'](_0x49eacd[_0x8e52('0x32')][_0x8e52('0x21')]);_0x503c1e[_0x8e52('0x1e')]=qs['offset'](_0x49eacd[_0x8e52('0x32')][_0x8e52('0x1e')]);}_0x503c1e[_0x8e52('0x3b')]=qs[_0x8e52('0x3c')](_0x49eacd['query']['sort']);_0x503c1e[_0x8e52('0x3d')]=qs[_0x8e52('0x34')](_['pick'](_0x49eacd['query'],_0x27ce34['filters']),_0x2ea17a);if(_0x49eacd[_0x8e52('0x32')]['filter']){_0x503c1e['where']=_[_0x8e52('0x3e')](_0x503c1e[_0x8e52('0x3d')],{'$or':_['map'](_0x2ea17a,function(_0xa0f48){if(_0xa0f48[_0x8e52('0x30')]!==_0x8e52('0x3f')){var _0x1c575f={};_0x1c575f[_0xa0f48['name']]={'$like':'%'+_0x49eacd[_0x8e52('0x32')][_0x8e52('0x40')]+'%'};return _0x1c575f;}})});}_0x503c1e=_[_0x8e52('0x3e')]({},_0x503c1e,_0x49eacd[_0x8e52('0x41')]);var _0x36073d={'where':_0x503c1e['where']};return db[_0x8e52('0x2e')]['count'](_0x36073d)[_0x8e52('0x26')](function(_0x18bb13){_0x20068d[_0x8e52('0x20')]=_0x18bb13;if(_0x49eacd[_0x8e52('0x32')][_0x8e52('0x42')]){_0x503c1e['include']=[{'all':!![]}];}return db[_0x8e52('0x2e')]['findAll'](_0x503c1e);})[_0x8e52('0x26')](function(_0x4e70d6){_0x20068d[_0x8e52('0x43')]=_0x4e70d6;return _0x20068d;})[_0x8e52('0x26')](respondWithFilteredResult(_0x1ffdfc,_0x503c1e))[_0x8e52('0x44')](handleError(_0x1ffdfc,null));};exports[_0x8e52('0x45')]=function(_0x5c3044,_0x2f273c){var _0x507601={'raw':!![],'where':{'id':_0x5c3044[_0x8e52('0x46')]['id']}},_0x312210={};_0x312210['model']=_[_0x8e52('0x33')](db['DeskField'][_0x8e52('0x2f')]);_0x312210['query']=_[_0x8e52('0x33')](_0x5c3044['query']);_0x312210[_0x8e52('0x34')]=_[_0x8e52('0x35')](_0x312210[_0x8e52('0x36')],_0x312210[_0x8e52('0x32')]);_0x507601[_0x8e52('0x37')]=_[_0x8e52('0x35')](_0x312210[_0x8e52('0x36')],qs[_0x8e52('0x38')](_0x5c3044[_0x8e52('0x32')][_0x8e52('0x38')]));_0x507601['attributes']=_0x507601[_0x8e52('0x37')][_0x8e52('0x47')]?_0x507601[_0x8e52('0x37')]:_0x312210[_0x8e52('0x36')];if(_0x5c3044[_0x8e52('0x32')]['includeAll']){_0x507601[_0x8e52('0x48')]=[{'all':!![]}];}_0x507601=_['merge']({},_0x507601,_0x5c3044[_0x8e52('0x41')]);return db[_0x8e52('0x2e')][_0x8e52('0x49')](_0x507601)[_0x8e52('0x26')](handleEntityNotFound(_0x2f273c,null))[_0x8e52('0x26')](respondWithResult(_0x2f273c,null))['catch'](handleError(_0x2f273c,null));};exports[_0x8e52('0x4a')]=function(_0x30499e,_0x2181bf){return db[_0x8e52('0x2e')][_0x8e52('0x4a')](_0x30499e['body'],{})['then'](respondWithResult(_0x2181bf,0xc9))[_0x8e52('0x44')](handleError(_0x2181bf,null));};exports[_0x8e52('0x4b')]=function(_0x3d65f9,_0xa6045){if(_0x3d65f9['body']['id']){delete _0x3d65f9['body']['id'];}return db[_0x8e52('0x2e')][_0x8e52('0x49')]({'where':{'id':_0x3d65f9[_0x8e52('0x46')]['id']}})[_0x8e52('0x26')](handleEntityNotFound(_0xa6045,null))['then'](saveUpdates(_0x3d65f9[_0x8e52('0x4c')],null))[_0x8e52('0x26')](respondWithResult(_0xa6045,null))['catch'](handleError(_0xa6045,null));};exports[_0x8e52('0x27')]=function(_0x10ca73,_0x1f5528){return db['DeskField'][_0x8e52('0x49')]({'where':{'id':_0x10ca73[_0x8e52('0x46')]['id']}})[_0x8e52('0x26')](handleEntityNotFound(_0x1f5528,null))[_0x8e52('0x26')](removeEntity(_0x1f5528,null))[_0x8e52('0x44')](handleError(_0x1f5528,null));};
\ No newline at end of file