Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / intSalesforceField / intSalesforceField.controller.js
index 31bf49b..9b85468 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8bc1=['filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','findAll','catch','show','include','find','body','params','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/parsers/qs','../../config/license/hardware','../../mysqldb','sendStatus','status','offset','undefined','limit','count','set','Content-Range','reject','save','update','then','destroy','end','error','stack','name','send','index','map','SalesforceField','rawAttributes','type','model','query','keys'];(function(_0x4e3598,_0x24a224){var _0x40c42e=function(_0x3a82c2){while(--_0x3a82c2){_0x4e3598['push'](_0x4e3598['shift']());}};_0x40c42e(++_0x24a224);}(_0x8bc1,0x1c1));var _0x18bc=function(_0x254bb6,_0x28d0a8){_0x254bb6=_0x254bb6-0x0;var _0x32be0b=_0x8bc1[_0x254bb6];return _0x32be0b;};'use strict';var emlformat=require(_0x18bc('0x0'));var rimraf=require(_0x18bc('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x18bc('0x2'));var rp=require(_0x18bc('0x3'));var moment=require(_0x18bc('0x4'));var BPromise=require(_0x18bc('0x5'));var Mustache=require(_0x18bc('0x6'));var util=require(_0x18bc('0x7'));var path=require(_0x18bc('0x8'));var sox=require(_0x18bc('0x9'));var csv=require(_0x18bc('0xa'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x18bc('0xb'));var _=require(_0x18bc('0xc'));var squel=require(_0x18bc('0xd'));var crypto=require(_0x18bc('0xe'));var jsforce=require(_0x18bc('0xf'));var deskjs=require(_0x18bc('0x10'));var toCsv=require(_0x18bc('0xa'));var querystring=require(_0x18bc('0x11'));var Papa=require('papaparse');var Redis=require(_0x18bc('0x12'));var authService=require('../../components/auth/service');var qs=require(_0x18bc('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x18bc('0x14'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x18bc('0x15'))['db'];function respondWithStatusCode(_0x2630f0,_0x107620){_0x107620=_0x107620||0xcc;return function(_0x593419){if(_0x593419){return _0x2630f0[_0x18bc('0x16')](_0x107620);}return _0x2630f0[_0x18bc('0x17')](_0x107620)['end']();};}function respondWithResult(_0x54f65f,_0x5f1935){_0x5f1935=_0x5f1935||0xc8;return function(_0x923817){if(_0x923817){return _0x54f65f[_0x18bc('0x17')](_0x5f1935)['json'](_0x923817);}};}function respondWithFilteredResult(_0x400395,_0x43e0b8){return function(_0x2354b6){if(_0x2354b6){var _0x525f23=typeof _0x43e0b8[_0x18bc('0x18')]===_0x18bc('0x19')&&typeof _0x43e0b8[_0x18bc('0x1a')]===_0x18bc('0x19');var _0x4b7ccc=_0x2354b6['count'];var _0x4929c3=_0x525f23?0x0:_0x43e0b8[_0x18bc('0x18')];var _0x20f411=_0x525f23?_0x2354b6[_0x18bc('0x1b')]:_0x43e0b8[_0x18bc('0x18')]+_0x43e0b8[_0x18bc('0x1a')];var _0x4e20ac;if(_0x20f411>=_0x4b7ccc){_0x20f411=_0x4b7ccc;_0x4e20ac=0xc8;}else{_0x4e20ac=0xce;}_0x400395[_0x18bc('0x17')](_0x4e20ac);return _0x400395[_0x18bc('0x1c')](_0x18bc('0x1d'),_0x4929c3+'-'+_0x20f411+'/'+_0x4b7ccc)['json'](_0x2354b6);}return null;};}function patchUpdates(_0x1f82dd){return function(_0x1b2e8f){try{jsonpatch['apply'](_0x1b2e8f,_0x1f82dd,!![]);}catch(_0x11cab1){return BPromise[_0x18bc('0x1e')](_0x11cab1);}return _0x1b2e8f[_0x18bc('0x1f')]();};}function saveUpdates(_0x4087a3,_0x578fde){return function(_0x3ba06b){if(_0x3ba06b){return _0x3ba06b[_0x18bc('0x20')](_0x4087a3)[_0x18bc('0x21')](function(_0x246177){return _0x246177;});}return null;};}function removeEntity(_0x2941f5,_0x13c85a){return function(_0xaa328c){if(_0xaa328c){return _0xaa328c[_0x18bc('0x22')]()[_0x18bc('0x21')](function(){_0x2941f5['status'](0xcc)[_0x18bc('0x23')]();});}};}function handleEntityNotFound(_0x1d0532,_0x4c6a9d){return function(_0x3f8239){if(!_0x3f8239){_0x1d0532[_0x18bc('0x16')](0x194);}return _0x3f8239;};}function handleError(_0x3451fd,_0x58e692){_0x58e692=_0x58e692||0x1f4;return function(_0x62bb29){logger[_0x18bc('0x24')](_0x62bb29[_0x18bc('0x25')]);if(_0x62bb29[_0x18bc('0x26')]){delete _0x62bb29[_0x18bc('0x26')];}_0x3451fd[_0x18bc('0x17')](_0x58e692)[_0x18bc('0x27')](_0x62bb29);};}exports[_0x18bc('0x28')]=function(_0x326a42,_0x3dcac3){var _0x5e65a9={},_0x2e475f={},_0x1e0144={'count':0x0,'rows':[]};var _0x3cef9f=_[_0x18bc('0x29')](db[_0x18bc('0x2a')][_0x18bc('0x2b')],function(_0x5aaac3){return{'name':_0x5aaac3['fieldName'],'type':_0x5aaac3[_0x18bc('0x2c')]['key']};});_0x2e475f[_0x18bc('0x2d')]=_[_0x18bc('0x29')](_0x3cef9f,_0x18bc('0x26'));_0x2e475f[_0x18bc('0x2e')]=_[_0x18bc('0x2f')](_0x326a42[_0x18bc('0x2e')]);_0x2e475f[_0x18bc('0x30')]=_[_0x18bc('0x31')](_0x2e475f['model'],_0x2e475f[_0x18bc('0x2e')]);_0x5e65a9[_0x18bc('0x32')]=_[_0x18bc('0x31')](_0x2e475f[_0x18bc('0x2d')],qs['fields'](_0x326a42['query'][_0x18bc('0x33')]));_0x5e65a9['attributes']=_0x5e65a9['attributes'][_0x18bc('0x34')]?_0x5e65a9[_0x18bc('0x32')]:_0x2e475f['model'];if(!_0x326a42[_0x18bc('0x2e')][_0x18bc('0x35')](_0x18bc('0x36'))){_0x5e65a9[_0x18bc('0x1a')]=qs[_0x18bc('0x1a')](_0x326a42[_0x18bc('0x2e')][_0x18bc('0x1a')]);_0x5e65a9[_0x18bc('0x18')]=qs[_0x18bc('0x18')](_0x326a42['query'][_0x18bc('0x18')]);}_0x5e65a9[_0x18bc('0x37')]=qs[_0x18bc('0x38')](_0x326a42['query'][_0x18bc('0x38')]);_0x5e65a9[_0x18bc('0x39')]=qs[_0x18bc('0x30')](_[_0x18bc('0x3a')](_0x326a42[_0x18bc('0x2e')],_0x2e475f[_0x18bc('0x30')]),_0x3cef9f);if(_0x326a42[_0x18bc('0x2e')][_0x18bc('0x3b')]){_0x5e65a9['where']=_[_0x18bc('0x3c')](_0x5e65a9[_0x18bc('0x39')],{'$or':_['map'](_0x3cef9f,function(_0x3cc94f){if(_0x3cc94f[_0x18bc('0x2c')]!==_0x18bc('0x3d')){var _0x32535a={};_0x32535a[_0x3cc94f[_0x18bc('0x26')]]={'$like':'%'+_0x326a42[_0x18bc('0x2e')][_0x18bc('0x3b')]+'%'};return _0x32535a;}})});}_0x5e65a9=_['merge']({},_0x5e65a9,_0x326a42[_0x18bc('0x3e')]);var _0x453336={'where':_0x5e65a9[_0x18bc('0x39')]};return db[_0x18bc('0x2a')]['count'](_0x453336)[_0x18bc('0x21')](function(_0x533ec6){_0x1e0144[_0x18bc('0x1b')]=_0x533ec6;if(_0x326a42[_0x18bc('0x2e')][_0x18bc('0x3f')]){_0x5e65a9['include']=[{'all':!![]}];}return db[_0x18bc('0x2a')][_0x18bc('0x40')](_0x5e65a9);})[_0x18bc('0x21')](function(_0x13247d){_0x1e0144['rows']=_0x13247d;return _0x1e0144;})[_0x18bc('0x21')](respondWithFilteredResult(_0x3dcac3,_0x5e65a9))[_0x18bc('0x41')](handleError(_0x3dcac3,null));};exports[_0x18bc('0x42')]=function(_0x138682,_0x5304cd){var _0x19a018={'raw':!![],'where':{'id':_0x138682['params']['id']}},_0x4d8cdd={};_0x4d8cdd['model']=_['keys'](db[_0x18bc('0x2a')]['rawAttributes']);_0x4d8cdd[_0x18bc('0x2e')]=_[_0x18bc('0x2f')](_0x138682[_0x18bc('0x2e')]);_0x4d8cdd[_0x18bc('0x30')]=_[_0x18bc('0x31')](_0x4d8cdd[_0x18bc('0x2d')],_0x4d8cdd[_0x18bc('0x2e')]);_0x19a018['attributes']=_[_0x18bc('0x31')](_0x4d8cdd['model'],qs[_0x18bc('0x33')](_0x138682[_0x18bc('0x2e')][_0x18bc('0x33')]));_0x19a018['attributes']=_0x19a018[_0x18bc('0x32')][_0x18bc('0x34')]?_0x19a018[_0x18bc('0x32')]:_0x4d8cdd[_0x18bc('0x2d')];if(_0x138682['query'][_0x18bc('0x3f')]){_0x19a018[_0x18bc('0x43')]=[{'all':!![]}];}_0x19a018=_[_0x18bc('0x3c')]({},_0x19a018,_0x138682[_0x18bc('0x3e')]);return db[_0x18bc('0x2a')][_0x18bc('0x44')](_0x19a018)[_0x18bc('0x21')](handleEntityNotFound(_0x5304cd,null))[_0x18bc('0x21')](respondWithResult(_0x5304cd,null))[_0x18bc('0x41')](handleError(_0x5304cd,null));};exports['create']=function(_0x5a9a3d,_0x3dd9e5){return db['SalesforceField']['create'](_0x5a9a3d['body'],{})[_0x18bc('0x21')](respondWithResult(_0x3dd9e5,0xc9))[_0x18bc('0x41')](handleError(_0x3dd9e5,null));};exports[_0x18bc('0x20')]=function(_0x5f3a81,_0xcf6f17){if(_0x5f3a81[_0x18bc('0x45')]['id']){delete _0x5f3a81['body']['id'];}return db[_0x18bc('0x2a')]['find']({'where':{'id':_0x5f3a81[_0x18bc('0x46')]['id']}})[_0x18bc('0x21')](handleEntityNotFound(_0xcf6f17,null))[_0x18bc('0x21')](saveUpdates(_0x5f3a81[_0x18bc('0x45')],null))[_0x18bc('0x21')](respondWithResult(_0xcf6f17,null))['catch'](handleError(_0xcf6f17,null));};exports[_0x18bc('0x22')]=function(_0x4cef28,_0x313372){return db['SalesforceField']['find']({'where':{'id':_0x4cef28['params']['id']}})[_0x18bc('0x21')](handleEntityNotFound(_0x313372,null))[_0x18bc('0x21')](removeEntity(_0x313372,null))[_0x18bc('0x41')](handleError(_0x313372,null));};
\ No newline at end of file
+var _0xf982=['includeAll','create','body','find','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','ejs','lodash','squel','crypto','jsforce','querystring','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/environment','../../config/license/util','sendStatus','status','json','offset','undefined','limit','count','set','apply','save','update','then','destroy','end','error','stack','name','SalesforceField','rawAttributes','fieldName','key','model','map','query','filters','intersection','attributes','fields','length','nolimit','sort','where','pick','filter','merge','type','VIRTUAL','options','include','findAll','rows','catch','show','params','keys'];(function(_0x4af777,_0x1dcc3f){var _0x3f752d=function(_0x20c7eb){while(--_0x20c7eb){_0x4af777['push'](_0x4af777['shift']());}};_0x3f752d(++_0x1dcc3f);}(_0xf982,0x171));var _0x2f98=function(_0x2e71d3,_0x42cd6d){_0x2e71d3=_0x2e71d3-0x0;var _0x37d70d=_0xf982[_0x2e71d3];return _0x37d70d;};'use strict';var emlformat=require(_0x2f98('0x0'));var rimraf=require(_0x2f98('0x1'));var zipdir=require(_0x2f98('0x2'));var jsonpatch=require(_0x2f98('0x3'));var rp=require(_0x2f98('0x4'));var moment=require(_0x2f98('0x5'));var BPromise=require(_0x2f98('0x6'));var Mustache=require(_0x2f98('0x7'));var util=require(_0x2f98('0x8'));var path=require(_0x2f98('0x9'));var sox=require(_0x2f98('0xa'));var csv=require('to-csv');var ejs=require(_0x2f98('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x2f98('0xc'));var squel=require(_0x2f98('0xd'));var crypto=require(_0x2f98('0xe'));var jsforce=require(_0x2f98('0xf'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x2f98('0x10'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x2f98('0x11'));var qs=require(_0x2f98('0x12'));var as=require(_0x2f98('0x13'));var hardwareService=require(_0x2f98('0x14'));var logger=require('../../config/logger')(_0x2f98('0x15'));var utils=require('../../config/utils');var config=require(_0x2f98('0x16'));var licenseUtil=require(_0x2f98('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x21725a,_0x1c13d0){_0x1c13d0=_0x1c13d0||0xcc;return function(_0x36198b){if(_0x36198b){return _0x21725a[_0x2f98('0x18')](_0x1c13d0);}return _0x21725a[_0x2f98('0x19')](_0x1c13d0)['end']();};}function respondWithResult(_0x405b82,_0x2def31){_0x2def31=_0x2def31||0xc8;return function(_0x25e35d){if(_0x25e35d){return _0x405b82[_0x2f98('0x19')](_0x2def31)[_0x2f98('0x1a')](_0x25e35d);}};}function respondWithFilteredResult(_0x107526,_0xfee0dc){return function(_0x557a03){if(_0x557a03){var _0x19b1df=typeof _0xfee0dc[_0x2f98('0x1b')]===_0x2f98('0x1c')&&typeof _0xfee0dc[_0x2f98('0x1d')]==='undefined';var _0x533243=_0x557a03[_0x2f98('0x1e')];var _0x12bd64=_0x19b1df?0x0:_0xfee0dc[_0x2f98('0x1b')];var _0x49ef20=_0x19b1df?_0x557a03[_0x2f98('0x1e')]:_0xfee0dc[_0x2f98('0x1b')]+_0xfee0dc[_0x2f98('0x1d')];var _0x3371ac;if(_0x49ef20>=_0x533243){_0x49ef20=_0x533243;_0x3371ac=0xc8;}else{_0x3371ac=0xce;}_0x107526[_0x2f98('0x19')](_0x3371ac);return _0x107526[_0x2f98('0x1f')]('Content-Range',_0x12bd64+'-'+_0x49ef20+'/'+_0x533243)[_0x2f98('0x1a')](_0x557a03);}return null;};}function patchUpdates(_0x4b7c73){return function(_0x2a56a1){try{jsonpatch[_0x2f98('0x20')](_0x2a56a1,_0x4b7c73,!![]);}catch(_0x2a76ac){return BPromise['reject'](_0x2a76ac);}return _0x2a56a1[_0x2f98('0x21')]();};}function saveUpdates(_0x254c01,_0x41d1da){return function(_0x140c3a){if(_0x140c3a){return _0x140c3a[_0x2f98('0x22')](_0x254c01)[_0x2f98('0x23')](function(_0x4edc62){return _0x4edc62;});}return null;};}function removeEntity(_0x149be2,_0x52bdf1){return function(_0x5e27f4){if(_0x5e27f4){return _0x5e27f4[_0x2f98('0x24')]()[_0x2f98('0x23')](function(){_0x149be2['status'](0xcc)[_0x2f98('0x25')]();});}};}function handleEntityNotFound(_0x550565,_0x1de14e){return function(_0x1b76e5){if(!_0x1b76e5){_0x550565['sendStatus'](0x194);}return _0x1b76e5;};}function handleError(_0x5ee850,_0x51b8bf){_0x51b8bf=_0x51b8bf||0x1f4;return function(_0x24f22c){logger[_0x2f98('0x26')](_0x24f22c[_0x2f98('0x27')]);if(_0x24f22c[_0x2f98('0x28')]){delete _0x24f22c['name'];}_0x5ee850[_0x2f98('0x19')](_0x51b8bf)['send'](_0x24f22c);};}exports['index']=function(_0xa1a9f2,_0x5cc4b5){var _0x422492={},_0x437ebb={},_0x1d0fa2={'count':0x0,'rows':[]};var _0x5506f5=_['map'](db[_0x2f98('0x29')][_0x2f98('0x2a')],function(_0x509e3c){return{'name':_0x509e3c[_0x2f98('0x2b')],'type':_0x509e3c['type'][_0x2f98('0x2c')]};});_0x437ebb[_0x2f98('0x2d')]=_[_0x2f98('0x2e')](_0x5506f5,_0x2f98('0x28'));_0x437ebb[_0x2f98('0x2f')]=_['keys'](_0xa1a9f2[_0x2f98('0x2f')]);_0x437ebb[_0x2f98('0x30')]=_[_0x2f98('0x31')](_0x437ebb[_0x2f98('0x2d')],_0x437ebb[_0x2f98('0x2f')]);_0x422492[_0x2f98('0x32')]=_[_0x2f98('0x31')](_0x437ebb[_0x2f98('0x2d')],qs['fields'](_0xa1a9f2[_0x2f98('0x2f')][_0x2f98('0x33')]));_0x422492[_0x2f98('0x32')]=_0x422492['attributes'][_0x2f98('0x34')]?_0x422492['attributes']:_0x437ebb['model'];if(!_0xa1a9f2[_0x2f98('0x2f')]['hasOwnProperty'](_0x2f98('0x35'))){_0x422492[_0x2f98('0x1d')]=qs['limit'](_0xa1a9f2[_0x2f98('0x2f')][_0x2f98('0x1d')]);_0x422492[_0x2f98('0x1b')]=qs[_0x2f98('0x1b')](_0xa1a9f2[_0x2f98('0x2f')][_0x2f98('0x1b')]);}_0x422492['order']=qs[_0x2f98('0x36')](_0xa1a9f2[_0x2f98('0x2f')][_0x2f98('0x36')]);_0x422492[_0x2f98('0x37')]=qs['filters'](_[_0x2f98('0x38')](_0xa1a9f2[_0x2f98('0x2f')],_0x437ebb[_0x2f98('0x30')]),_0x5506f5);if(_0xa1a9f2[_0x2f98('0x2f')][_0x2f98('0x39')]){_0x422492[_0x2f98('0x37')]=_[_0x2f98('0x3a')](_0x422492[_0x2f98('0x37')],{'$or':_[_0x2f98('0x2e')](_0x5506f5,function(_0x508615){if(_0x508615[_0x2f98('0x3b')]!==_0x2f98('0x3c')){var _0x328e4d={};_0x328e4d[_0x508615['name']]={'$like':'%'+_0xa1a9f2[_0x2f98('0x2f')][_0x2f98('0x39')]+'%'};return _0x328e4d;}})});}_0x422492=_['merge']({},_0x422492,_0xa1a9f2[_0x2f98('0x3d')]);var _0x57a5de={'where':_0x422492['where']};return db['SalesforceField'][_0x2f98('0x1e')](_0x57a5de)[_0x2f98('0x23')](function(_0x204a4e){_0x1d0fa2[_0x2f98('0x1e')]=_0x204a4e;if(_0xa1a9f2[_0x2f98('0x2f')]['includeAll']){_0x422492[_0x2f98('0x3e')]=[{'all':!![]}];}return db['SalesforceField'][_0x2f98('0x3f')](_0x422492);})[_0x2f98('0x23')](function(_0x41040f){_0x1d0fa2[_0x2f98('0x40')]=_0x41040f;return _0x1d0fa2;})[_0x2f98('0x23')](respondWithFilteredResult(_0x5cc4b5,_0x422492))[_0x2f98('0x41')](handleError(_0x5cc4b5,null));};exports[_0x2f98('0x42')]=function(_0x42dbe9,_0x5a86e7){var _0x47dd7a={'raw':!![],'where':{'id':_0x42dbe9[_0x2f98('0x43')]['id']}},_0x3767ac={};_0x3767ac[_0x2f98('0x2d')]=_[_0x2f98('0x44')](db[_0x2f98('0x29')][_0x2f98('0x2a')]);_0x3767ac[_0x2f98('0x2f')]=_[_0x2f98('0x44')](_0x42dbe9[_0x2f98('0x2f')]);_0x3767ac[_0x2f98('0x30')]=_[_0x2f98('0x31')](_0x3767ac[_0x2f98('0x2d')],_0x3767ac['query']);_0x47dd7a[_0x2f98('0x32')]=_['intersection'](_0x3767ac['model'],qs[_0x2f98('0x33')](_0x42dbe9[_0x2f98('0x2f')][_0x2f98('0x33')]));_0x47dd7a['attributes']=_0x47dd7a[_0x2f98('0x32')][_0x2f98('0x34')]?_0x47dd7a[_0x2f98('0x32')]:_0x3767ac[_0x2f98('0x2d')];if(_0x42dbe9[_0x2f98('0x2f')][_0x2f98('0x45')]){_0x47dd7a['include']=[{'all':!![]}];}_0x47dd7a=_['merge']({},_0x47dd7a,_0x42dbe9[_0x2f98('0x3d')]);return db[_0x2f98('0x29')]['find'](_0x47dd7a)[_0x2f98('0x23')](handleEntityNotFound(_0x5a86e7,null))[_0x2f98('0x23')](respondWithResult(_0x5a86e7,null))[_0x2f98('0x41')](handleError(_0x5a86e7,null));};exports['create']=function(_0x3621e6,_0x2e2cdc){return db[_0x2f98('0x29')][_0x2f98('0x46')](_0x3621e6[_0x2f98('0x47')],{})[_0x2f98('0x23')](respondWithResult(_0x2e2cdc,0xc9))[_0x2f98('0x41')](handleError(_0x2e2cdc,null));};exports[_0x2f98('0x22')]=function(_0x32f260,_0x5ead14){if(_0x32f260[_0x2f98('0x47')]['id']){delete _0x32f260[_0x2f98('0x47')]['id'];}return db['SalesforceField'][_0x2f98('0x48')]({'where':{'id':_0x32f260['params']['id']}})[_0x2f98('0x23')](handleEntityNotFound(_0x5ead14,null))[_0x2f98('0x23')](saveUpdates(_0x32f260[_0x2f98('0x47')],null))[_0x2f98('0x23')](respondWithResult(_0x5ead14,null))[_0x2f98('0x41')](handleError(_0x5ead14,null));};exports['destroy']=function(_0x38a9ac,_0x4fa13f){return db[_0x2f98('0x29')][_0x2f98('0x48')]({'where':{'id':_0x38a9ac['params']['id']}})[_0x2f98('0x23')](handleEntityNotFound(_0x4fa13f,null))[_0x2f98('0x23')](removeEntity(_0x4fa13f,null))[_0x2f98('0x41')](handleError(_0x4fa13f,null));};
\ No newline at end of file