Built motion from commit 4d4d9a88.|2.6.26
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.controller.js
index fea74ed..2201a99 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f03=['error','stack','name','index','SugarcrmField','rawAttributes','fieldName','model','map','query','filters','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','type','VIRTUAL','options','includeAll','findAll','rows','catch','show','params','keys','length','include','create','body','find','zip-dir','fast-json-patch','request-promise','moment','util','path','ejs','fs-extra','lodash','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy'];(function(_0xee6490,_0x39ad5d){var _0x576ed1=function(_0x311627){while(--_0x311627){_0xee6490['push'](_0xee6490['shift']());}};_0x576ed1(++_0x39ad5d);}(_0x4f03,0x70));var _0x34f0=function(_0x1bd224,_0x4ff3cd){_0x1bd224=_0x1bd224-0x0;var _0x12f4e6=_0x4f03[_0x1bd224];return _0x12f4e6;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x34f0('0x0'));var jsonpatch=require(_0x34f0('0x1'));var rp=require(_0x34f0('0x2'));var moment=require(_0x34f0('0x3'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x34f0('0x4'));var path=require(_0x34f0('0x5'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x34f0('0x6'));var fs=require('fs');var fs_extra=require(_0x34f0('0x7'));var _=require(_0x34f0('0x8'));var squel=require('squel');var crypto=require(_0x34f0('0x9'));var jsforce=require(_0x34f0('0xa'));var deskjs=require(_0x34f0('0xb'));var toCsv=require(_0x34f0('0xc'));var querystring=require('querystring');var Papa=require(_0x34f0('0xd'));var Redis=require(_0x34f0('0xe'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x34f0('0xf'));var logger=require(_0x34f0('0x10'))(_0x34f0('0x11'));var utils=require(_0x34f0('0x12'));var config=require(_0x34f0('0x13'));var licenseUtil=require(_0x34f0('0x14'));var db=require(_0x34f0('0x15'))['db'];function respondWithStatusCode(_0x4a99be,_0x52c43a){_0x52c43a=_0x52c43a||0xcc;return function(_0x5115cc){if(_0x5115cc){return _0x4a99be[_0x34f0('0x16')](_0x52c43a);}return _0x4a99be[_0x34f0('0x17')](_0x52c43a)[_0x34f0('0x18')]();};}function respondWithResult(_0x127087,_0x21a3e1){_0x21a3e1=_0x21a3e1||0xc8;return function(_0x57b7f4){if(_0x57b7f4){return _0x127087[_0x34f0('0x17')](_0x21a3e1)[_0x34f0('0x19')](_0x57b7f4);}};}function respondWithFilteredResult(_0x4fa8b2,_0x57c500){return function(_0x29bb56){if(_0x29bb56){var _0x55779b=typeof _0x57c500[_0x34f0('0x1a')]===_0x34f0('0x1b')&&typeof _0x57c500[_0x34f0('0x1c')]===_0x34f0('0x1b');var _0x5b6c7c=_0x29bb56[_0x34f0('0x1d')];var _0x22de97=_0x55779b?0x0:_0x57c500[_0x34f0('0x1a')];var _0x49c569=_0x55779b?_0x29bb56['count']:_0x57c500['offset']+_0x57c500['limit'];var _0x55e8b3;if(_0x49c569>=_0x5b6c7c){_0x49c569=_0x5b6c7c;_0x55e8b3=0xc8;}else{_0x55e8b3=0xce;}_0x4fa8b2['status'](_0x55e8b3);return _0x4fa8b2[_0x34f0('0x1e')](_0x34f0('0x1f'),_0x22de97+'-'+_0x49c569+'/'+_0x5b6c7c)['json'](_0x29bb56);}return null;};}function patchUpdates(_0x26fd40){return function(_0x3f3a8a){try{jsonpatch[_0x34f0('0x20')](_0x3f3a8a,_0x26fd40,!![]);}catch(_0x29c3b0){return BPromise[_0x34f0('0x21')](_0x29c3b0);}return _0x3f3a8a[_0x34f0('0x22')]();};}function saveUpdates(_0x354a80,_0x19bd5c){return function(_0x5179de){if(_0x5179de){return _0x5179de[_0x34f0('0x23')](_0x354a80)[_0x34f0('0x24')](function(_0x5cfdf0){return _0x5cfdf0;});}return null;};}function removeEntity(_0x17eaa5,_0xd95931){return function(_0x1e902b){if(_0x1e902b){return _0x1e902b[_0x34f0('0x25')]()[_0x34f0('0x24')](function(){_0x17eaa5[_0x34f0('0x17')](0xcc)[_0x34f0('0x18')]();});}};}function handleEntityNotFound(_0x22c23d,_0xf2f017){return function(_0x1cdfd2){if(!_0x1cdfd2){_0x22c23d[_0x34f0('0x16')](0x194);}return _0x1cdfd2;};}function handleError(_0x55516f,_0x4c5cf8){_0x4c5cf8=_0x4c5cf8||0x1f4;return function(_0x5eac25){logger[_0x34f0('0x26')](_0x5eac25[_0x34f0('0x27')]);if(_0x5eac25[_0x34f0('0x28')]){delete _0x5eac25[_0x34f0('0x28')];}_0x55516f[_0x34f0('0x17')](_0x4c5cf8)['send'](_0x5eac25);};}exports[_0x34f0('0x29')]=function(_0x280645,_0xfe8977){var _0x559d06={},_0x298066={},_0x4e7def={'count':0x0,'rows':[]};var _0x3e5f5f=_['map'](db[_0x34f0('0x2a')][_0x34f0('0x2b')],function(_0x4b7a37){return{'name':_0x4b7a37[_0x34f0('0x2c')],'type':_0x4b7a37['type']['key']};});_0x298066[_0x34f0('0x2d')]=_[_0x34f0('0x2e')](_0x3e5f5f,_0x34f0('0x28'));_0x298066['query']=_['keys'](_0x280645[_0x34f0('0x2f')]);_0x298066[_0x34f0('0x30')]=_[_0x34f0('0x31')](_0x298066[_0x34f0('0x2d')],_0x298066[_0x34f0('0x2f')]);_0x559d06[_0x34f0('0x32')]=_[_0x34f0('0x31')](_0x298066[_0x34f0('0x2d')],qs[_0x34f0('0x33')](_0x280645[_0x34f0('0x2f')][_0x34f0('0x33')]));_0x559d06[_0x34f0('0x32')]=_0x559d06[_0x34f0('0x32')]['length']?_0x559d06[_0x34f0('0x32')]:_0x298066[_0x34f0('0x2d')];if(!_0x280645[_0x34f0('0x2f')][_0x34f0('0x34')](_0x34f0('0x35'))){_0x559d06[_0x34f0('0x1c')]=qs[_0x34f0('0x1c')](_0x280645['query'][_0x34f0('0x1c')]);_0x559d06[_0x34f0('0x1a')]=qs['offset'](_0x280645[_0x34f0('0x2f')]['offset']);}_0x559d06[_0x34f0('0x36')]=qs[_0x34f0('0x37')](_0x280645['query'][_0x34f0('0x37')]);_0x559d06[_0x34f0('0x38')]=qs['filters'](_[_0x34f0('0x39')](_0x280645[_0x34f0('0x2f')],_0x298066[_0x34f0('0x30')]),_0x3e5f5f);if(_0x280645[_0x34f0('0x2f')][_0x34f0('0x3a')]){_0x559d06[_0x34f0('0x38')]=_[_0x34f0('0x3b')](_0x559d06[_0x34f0('0x38')],{'$or':_['map'](_0x3e5f5f,function(_0x30ee36){if(_0x30ee36[_0x34f0('0x3c')]!==_0x34f0('0x3d')){var _0x59fcdf={};_0x59fcdf[_0x30ee36[_0x34f0('0x28')]]={'$like':'%'+_0x280645[_0x34f0('0x2f')][_0x34f0('0x3a')]+'%'};return _0x59fcdf;}})});}_0x559d06=_[_0x34f0('0x3b')]({},_0x559d06,_0x280645[_0x34f0('0x3e')]);var _0x13f7ea={'where':_0x559d06[_0x34f0('0x38')]};return db['SugarcrmField']['count'](_0x13f7ea)[_0x34f0('0x24')](function(_0x1c4743){_0x4e7def[_0x34f0('0x1d')]=_0x1c4743;if(_0x280645[_0x34f0('0x2f')][_0x34f0('0x3f')]){_0x559d06['include']=[{'all':!![]}];}return db[_0x34f0('0x2a')][_0x34f0('0x40')](_0x559d06);})['then'](function(_0x30346){_0x4e7def[_0x34f0('0x41')]=_0x30346;return _0x4e7def;})['then'](respondWithFilteredResult(_0xfe8977,_0x559d06))[_0x34f0('0x42')](handleError(_0xfe8977,null));};exports[_0x34f0('0x43')]=function(_0x8abbc5,_0x7c5c56){var _0xa88ddf={'raw':!![],'where':{'id':_0x8abbc5[_0x34f0('0x44')]['id']}},_0x4bd48c={};_0x4bd48c[_0x34f0('0x2d')]=_[_0x34f0('0x45')](db[_0x34f0('0x2a')][_0x34f0('0x2b')]);_0x4bd48c[_0x34f0('0x2f')]=_['keys'](_0x8abbc5[_0x34f0('0x2f')]);_0x4bd48c[_0x34f0('0x30')]=_[_0x34f0('0x31')](_0x4bd48c[_0x34f0('0x2d')],_0x4bd48c[_0x34f0('0x2f')]);_0xa88ddf[_0x34f0('0x32')]=_[_0x34f0('0x31')](_0x4bd48c[_0x34f0('0x2d')],qs[_0x34f0('0x33')](_0x8abbc5[_0x34f0('0x2f')][_0x34f0('0x33')]));_0xa88ddf['attributes']=_0xa88ddf[_0x34f0('0x32')][_0x34f0('0x46')]?_0xa88ddf[_0x34f0('0x32')]:_0x4bd48c[_0x34f0('0x2d')];if(_0x8abbc5[_0x34f0('0x2f')][_0x34f0('0x3f')]){_0xa88ddf[_0x34f0('0x47')]=[{'all':!![]}];}_0xa88ddf=_[_0x34f0('0x3b')]({},_0xa88ddf,_0x8abbc5[_0x34f0('0x3e')]);return db[_0x34f0('0x2a')]['find'](_0xa88ddf)['then'](handleEntityNotFound(_0x7c5c56,null))[_0x34f0('0x24')](respondWithResult(_0x7c5c56,null))[_0x34f0('0x42')](handleError(_0x7c5c56,null));};exports['create']=function(_0x448568,_0x294843){return db[_0x34f0('0x2a')][_0x34f0('0x48')](_0x448568['body'],{})['then'](respondWithResult(_0x294843,0xc9))[_0x34f0('0x42')](handleError(_0x294843,null));};exports['update']=function(_0x28f0d8,_0x5942ec){if(_0x28f0d8[_0x34f0('0x49')]['id']){delete _0x28f0d8[_0x34f0('0x49')]['id'];}return db[_0x34f0('0x2a')][_0x34f0('0x4a')]({'where':{'id':_0x28f0d8[_0x34f0('0x44')]['id']}})[_0x34f0('0x24')](handleEntityNotFound(_0x5942ec,null))[_0x34f0('0x24')](saveUpdates(_0x28f0d8[_0x34f0('0x49')],null))[_0x34f0('0x24')](respondWithResult(_0x5942ec,null))[_0x34f0('0x42')](handleError(_0x5942ec,null));};exports[_0x34f0('0x25')]=function(_0x40a9cc,_0x1ab1cf){return db['SugarcrmField'][_0x34f0('0x4a')]({'where':{'id':_0x40a9cc['params']['id']}})['then'](handleEntityNotFound(_0x1ab1cf,null))[_0x34f0('0x24')](removeEntity(_0x1ab1cf,null))[_0x34f0('0x42')](handleError(_0x1ab1cf,null));};
\ No newline at end of file
+var _0xc84f=['end','undefined','count','offset','limit','set','Content-Range','json','apply','reject','save','update','then','error','stack','name','index','SugarcrmField','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','options','includeAll','rows','catch','show','include','merge','find','create','body','params','destroy','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','path','to-csv','lodash','crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status'];(function(_0x1346fb,_0x441ea6){var _0x4a5f43=function(_0x5198ec){while(--_0x5198ec){_0x1346fb['push'](_0x1346fb['shift']());}};_0x4a5f43(++_0x441ea6);}(_0xc84f,0x79));var _0xfc84=function(_0x4cfc83,_0x571129){_0x4cfc83=_0x4cfc83-0x0;var _0x63d66d=_0xc84f[_0x4cfc83];return _0x63d66d;};'use strict';var emlformat=require(_0xfc84('0x0'));var rimraf=require(_0xfc84('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xfc84('0x2'));var rp=require(_0xfc84('0x3'));var moment=require(_0xfc84('0x4'));var BPromise=require(_0xfc84('0x5'));var Mustache=require('mustache');var util=require('util');var path=require(_0xfc84('0x6'));var sox=require('sox');var csv=require(_0xfc84('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xfc84('0x8'));var squel=require('squel');var crypto=require(_0xfc84('0x9'));var jsforce=require(_0xfc84('0xa'));var deskjs=require('desk.js');var toCsv=require(_0xfc84('0x7'));var querystring=require('querystring');var Papa=require(_0xfc84('0xb'));var Redis=require(_0xfc84('0xc'));var authService=require(_0xfc84('0xd'));var qs=require('../../components/parsers/qs');var as=require(_0xfc84('0xe'));var hardwareService=require(_0xfc84('0xf'));var logger=require(_0xfc84('0x10'))(_0xfc84('0x11'));var utils=require(_0xfc84('0x12'));var config=require(_0xfc84('0x13'));var licenseUtil=require(_0xfc84('0x14'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x3bc29f,_0x4acd16){_0x4acd16=_0x4acd16||0xcc;return function(_0x9a7cb5){if(_0x9a7cb5){return _0x3bc29f[_0xfc84('0x15')](_0x4acd16);}return _0x3bc29f[_0xfc84('0x16')](_0x4acd16)[_0xfc84('0x17')]();};}function respondWithResult(_0x366f1c,_0x3942a1){_0x3942a1=_0x3942a1||0xc8;return function(_0x1a43d2){if(_0x1a43d2){return _0x366f1c[_0xfc84('0x16')](_0x3942a1)['json'](_0x1a43d2);}};}function respondWithFilteredResult(_0xf5856f,_0x2b9ce7){return function(_0x475954){if(_0x475954){var _0x4cdff9=typeof _0x2b9ce7['offset']===_0xfc84('0x18')&&typeof _0x2b9ce7['limit']==='undefined';var _0x154779=_0x475954[_0xfc84('0x19')];var _0x40d6d0=_0x4cdff9?0x0:_0x2b9ce7[_0xfc84('0x1a')];var _0x4b5012=_0x4cdff9?_0x475954[_0xfc84('0x19')]:_0x2b9ce7[_0xfc84('0x1a')]+_0x2b9ce7[_0xfc84('0x1b')];var _0x564662;if(_0x4b5012>=_0x154779){_0x4b5012=_0x154779;_0x564662=0xc8;}else{_0x564662=0xce;}_0xf5856f[_0xfc84('0x16')](_0x564662);return _0xf5856f[_0xfc84('0x1c')](_0xfc84('0x1d'),_0x40d6d0+'-'+_0x4b5012+'/'+_0x154779)[_0xfc84('0x1e')](_0x475954);}return null;};}function patchUpdates(_0x58b7c5){return function(_0x1a5f9f){try{jsonpatch[_0xfc84('0x1f')](_0x1a5f9f,_0x58b7c5,!![]);}catch(_0x3db791){return BPromise[_0xfc84('0x20')](_0x3db791);}return _0x1a5f9f[_0xfc84('0x21')]();};}function saveUpdates(_0x320084,_0x15cee2){return function(_0x1b1541){if(_0x1b1541){return _0x1b1541[_0xfc84('0x22')](_0x320084)['then'](function(_0x31251f){return _0x31251f;});}return null;};}function removeEntity(_0x412571,_0xb4e3bd){return function(_0x401332){if(_0x401332){return _0x401332['destroy']()[_0xfc84('0x23')](function(){_0x412571[_0xfc84('0x16')](0xcc)[_0xfc84('0x17')]();});}};}function handleEntityNotFound(_0x10313b,_0x550dfc){return function(_0x4a7d50){if(!_0x4a7d50){_0x10313b[_0xfc84('0x15')](0x194);}return _0x4a7d50;};}function handleError(_0x221a35,_0x3d8a0c){_0x3d8a0c=_0x3d8a0c||0x1f4;return function(_0x393839){logger[_0xfc84('0x24')](_0x393839[_0xfc84('0x25')]);if(_0x393839[_0xfc84('0x26')]){delete _0x393839[_0xfc84('0x26')];}_0x221a35[_0xfc84('0x16')](_0x3d8a0c)['send'](_0x393839);};}exports[_0xfc84('0x27')]=function(_0x50cea1,_0x2efa91){var _0x11f9fc={},_0x2bbb99={},_0x396f31={'count':0x0,'rows':[]};var _0x11c070=_['map'](db[_0xfc84('0x28')][_0xfc84('0x29')],function(_0x350f22){return{'name':_0x350f22[_0xfc84('0x2a')],'type':_0x350f22[_0xfc84('0x2b')][_0xfc84('0x2c')]};});_0x2bbb99[_0xfc84('0x2d')]=_['map'](_0x11c070,_0xfc84('0x26'));_0x2bbb99[_0xfc84('0x2e')]=_[_0xfc84('0x2f')](_0x50cea1[_0xfc84('0x2e')]);_0x2bbb99[_0xfc84('0x30')]=_[_0xfc84('0x31')](_0x2bbb99[_0xfc84('0x2d')],_0x2bbb99[_0xfc84('0x2e')]);_0x11f9fc[_0xfc84('0x32')]=_[_0xfc84('0x31')](_0x2bbb99[_0xfc84('0x2d')],qs[_0xfc84('0x33')](_0x50cea1[_0xfc84('0x2e')]['fields']));_0x11f9fc['attributes']=_0x11f9fc[_0xfc84('0x32')][_0xfc84('0x34')]?_0x11f9fc['attributes']:_0x2bbb99[_0xfc84('0x2d')];if(!_0x50cea1[_0xfc84('0x2e')][_0xfc84('0x35')](_0xfc84('0x36'))){_0x11f9fc[_0xfc84('0x1b')]=qs['limit'](_0x50cea1[_0xfc84('0x2e')][_0xfc84('0x1b')]);_0x11f9fc['offset']=qs[_0xfc84('0x1a')](_0x50cea1['query'][_0xfc84('0x1a')]);}_0x11f9fc[_0xfc84('0x37')]=qs['sort'](_0x50cea1[_0xfc84('0x2e')][_0xfc84('0x38')]);_0x11f9fc[_0xfc84('0x39')]=qs['filters'](_[_0xfc84('0x3a')](_0x50cea1[_0xfc84('0x2e')],_0x2bbb99[_0xfc84('0x30')]),_0x11c070);if(_0x50cea1[_0xfc84('0x2e')][_0xfc84('0x3b')]){_0x11f9fc[_0xfc84('0x39')]=_['merge'](_0x11f9fc['where'],{'$or':_['map'](_0x11c070,function(_0x172c41){if(_0x172c41['type']!=='VIRTUAL'){var _0x4438a7={};_0x4438a7[_0x172c41['name']]={'$like':'%'+_0x50cea1[_0xfc84('0x2e')][_0xfc84('0x3b')]+'%'};return _0x4438a7;}})});}_0x11f9fc=_['merge']({},_0x11f9fc,_0x50cea1[_0xfc84('0x3c')]);var _0x2b5bf4={'where':_0x11f9fc[_0xfc84('0x39')]};return db[_0xfc84('0x28')][_0xfc84('0x19')](_0x2b5bf4)[_0xfc84('0x23')](function(_0xf6a503){_0x396f31[_0xfc84('0x19')]=_0xf6a503;if(_0x50cea1[_0xfc84('0x2e')][_0xfc84('0x3d')]){_0x11f9fc['include']=[{'all':!![]}];}return db['SugarcrmField']['findAll'](_0x11f9fc);})[_0xfc84('0x23')](function(_0x1637ab){_0x396f31[_0xfc84('0x3e')]=_0x1637ab;return _0x396f31;})[_0xfc84('0x23')](respondWithFilteredResult(_0x2efa91,_0x11f9fc))[_0xfc84('0x3f')](handleError(_0x2efa91,null));};exports[_0xfc84('0x40')]=function(_0x476ea0,_0xa25646){var _0x5a16be={'raw':!![],'where':{'id':_0x476ea0['params']['id']}},_0x36063e={};_0x36063e[_0xfc84('0x2d')]=_[_0xfc84('0x2f')](db[_0xfc84('0x28')]['rawAttributes']);_0x36063e[_0xfc84('0x2e')]=_[_0xfc84('0x2f')](_0x476ea0[_0xfc84('0x2e')]);_0x36063e[_0xfc84('0x30')]=_['intersection'](_0x36063e['model'],_0x36063e[_0xfc84('0x2e')]);_0x5a16be[_0xfc84('0x32')]=_[_0xfc84('0x31')](_0x36063e['model'],qs[_0xfc84('0x33')](_0x476ea0[_0xfc84('0x2e')][_0xfc84('0x33')]));_0x5a16be['attributes']=_0x5a16be[_0xfc84('0x32')][_0xfc84('0x34')]?_0x5a16be[_0xfc84('0x32')]:_0x36063e[_0xfc84('0x2d')];if(_0x476ea0[_0xfc84('0x2e')][_0xfc84('0x3d')]){_0x5a16be[_0xfc84('0x41')]=[{'all':!![]}];}_0x5a16be=_[_0xfc84('0x42')]({},_0x5a16be,_0x476ea0[_0xfc84('0x3c')]);return db[_0xfc84('0x28')][_0xfc84('0x43')](_0x5a16be)[_0xfc84('0x23')](handleEntityNotFound(_0xa25646,null))[_0xfc84('0x23')](respondWithResult(_0xa25646,null))[_0xfc84('0x3f')](handleError(_0xa25646,null));};exports[_0xfc84('0x44')]=function(_0x41bc66,_0x546b24){return db['SugarcrmField'][_0xfc84('0x44')](_0x41bc66[_0xfc84('0x45')],{})[_0xfc84('0x23')](respondWithResult(_0x546b24,0xc9))[_0xfc84('0x3f')](handleError(_0x546b24,null));};exports[_0xfc84('0x22')]=function(_0x473d12,_0x350df3){if(_0x473d12[_0xfc84('0x45')]['id']){delete _0x473d12['body']['id'];}return db[_0xfc84('0x28')][_0xfc84('0x43')]({'where':{'id':_0x473d12[_0xfc84('0x46')]['id']}})['then'](handleEntityNotFound(_0x350df3,null))[_0xfc84('0x23')](saveUpdates(_0x473d12['body'],null))[_0xfc84('0x23')](respondWithResult(_0x350df3,null))['catch'](handleError(_0x350df3,null));};exports[_0xfc84('0x47')]=function(_0x38c93f,_0x26c62e){return db[_0xfc84('0x28')][_0xfc84('0x43')]({'where':{'id':_0x38c93f[_0xfc84('0x46')]['id']}})[_0xfc84('0x23')](handleEntityNotFound(_0x26c62e,null))['then'](removeEntity(_0x26c62e,null))['catch'](handleError(_0x26c62e,null));};
\ No newline at end of file