Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.controller.js
index f864609..c907ebb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9570=['../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','undefined','count','offset','set','apply','reject','save','destroy','then','error','stack','name','send','index','map','Dynamics365Field','rawAttributes','key','model','query','keys','intersection','attributes','fields','length','hasOwnProperty','limit','sort','where','filters','pick','filter','type','VIRTUAL','merge','options','includeAll','findAll','rows','catch','params','include','find','create','update','body','zip-dir','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','lodash','crypto','jsforce','querystring','papaparse','ioredis','../../components/parsers/qs','../../config/logger','api'];(function(_0xfe56e3,_0x5bb3b9){var _0x5bdffa=function(_0x587674){while(--_0x587674){_0xfe56e3['push'](_0xfe56e3['shift']());}};_0x5bdffa(++_0x5bb3b9);}(_0x9570,0x7d));var _0x0957=function(_0x119e7a,_0x3949d3){_0x119e7a=_0x119e7a-0x0;var _0x1fb90a=_0x9570[_0x119e7a];return _0x1fb90a;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x0957('0x0'));var jsonpatch=require('fast-json-patch');var rp=require(_0x0957('0x1'));var moment=require(_0x0957('0x2'));var BPromise=require(_0x0957('0x3'));var Mustache=require(_0x0957('0x4'));var util=require(_0x0957('0x5'));var path=require('path');var sox=require(_0x0957('0x6'));var csv=require(_0x0957('0x7'));var ejs=require(_0x0957('0x8'));var fs=require('fs');var fs_extra=require(_0x0957('0x9'));var _=require(_0x0957('0xa'));var squel=require('squel');var crypto=require(_0x0957('0xb'));var jsforce=require(_0x0957('0xc'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x0957('0xd'));var Papa=require(_0x0957('0xe'));var Redis=require(_0x0957('0xf'));var authService=require('../../components/auth/service');var qs=require(_0x0957('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x0957('0x11'))(_0x0957('0x12'));var utils=require('../../config/utils');var config=require(_0x0957('0x13'));var licenseUtil=require(_0x0957('0x14'));var db=require(_0x0957('0x15'))['db'];function respondWithStatusCode(_0x1f2495,_0x5ccd50){_0x5ccd50=_0x5ccd50||0xcc;return function(_0x40504e){if(_0x40504e){return _0x1f2495[_0x0957('0x16')](_0x5ccd50);}return _0x1f2495[_0x0957('0x17')](_0x5ccd50)[_0x0957('0x18')]();};}function respondWithResult(_0x46fd3c,_0x3a71b3){_0x3a71b3=_0x3a71b3||0xc8;return function(_0x2f6414){if(_0x2f6414){return _0x46fd3c[_0x0957('0x17')](_0x3a71b3)[_0x0957('0x19')](_0x2f6414);}};}function respondWithFilteredResult(_0x2e371f,_0x52f501){return function(_0x280d43){if(_0x280d43){var _0x2622f0=typeof _0x52f501['offset']===_0x0957('0x1a')&&typeof _0x52f501['limit']===_0x0957('0x1a');var _0x57c8c6=_0x280d43[_0x0957('0x1b')];var _0x4feb54=_0x2622f0?0x0:_0x52f501[_0x0957('0x1c')];var _0x2e41fb=_0x2622f0?_0x280d43[_0x0957('0x1b')]:_0x52f501[_0x0957('0x1c')]+_0x52f501['limit'];var _0x165854;if(_0x2e41fb>=_0x57c8c6){_0x2e41fb=_0x57c8c6;_0x165854=0xc8;}else{_0x165854=0xce;}_0x2e371f['status'](_0x165854);return _0x2e371f[_0x0957('0x1d')]('Content-Range',_0x4feb54+'-'+_0x2e41fb+'/'+_0x57c8c6)[_0x0957('0x19')](_0x280d43);}return null;};}function patchUpdates(_0x1b455b){return function(_0x4bafd1){try{jsonpatch[_0x0957('0x1e')](_0x4bafd1,_0x1b455b,!![]);}catch(_0x8629c){return BPromise[_0x0957('0x1f')](_0x8629c);}return _0x4bafd1[_0x0957('0x20')]();};}function saveUpdates(_0x1a1ce0,_0x53eec7){return function(_0x41515c){if(_0x41515c){return _0x41515c['update'](_0x1a1ce0)['then'](function(_0x68565d){return _0x68565d;});}return null;};}function removeEntity(_0x116c9d,_0x160524){return function(_0x3fccc2){if(_0x3fccc2){return _0x3fccc2[_0x0957('0x21')]()[_0x0957('0x22')](function(){_0x116c9d[_0x0957('0x17')](0xcc)[_0x0957('0x18')]();});}};}function handleEntityNotFound(_0x19ca9c,_0x103584){return function(_0x1e616f){if(!_0x1e616f){_0x19ca9c['sendStatus'](0x194);}return _0x1e616f;};}function handleError(_0x2951a9,_0x1d1aa7){_0x1d1aa7=_0x1d1aa7||0x1f4;return function(_0x30ff6d){logger[_0x0957('0x23')](_0x30ff6d[_0x0957('0x24')]);if(_0x30ff6d['name']){delete _0x30ff6d[_0x0957('0x25')];}_0x2951a9['status'](_0x1d1aa7)[_0x0957('0x26')](_0x30ff6d);};}exports[_0x0957('0x27')]=function(_0x4c082b,_0x441f1d){var _0x27cd39={},_0x3b8a8f={},_0x5488fe={'count':0x0,'rows':[]};var _0x2d4fb3=_[_0x0957('0x28')](db[_0x0957('0x29')][_0x0957('0x2a')],function(_0x2c44cf){return{'name':_0x2c44cf['fieldName'],'type':_0x2c44cf['type'][_0x0957('0x2b')]};});_0x3b8a8f[_0x0957('0x2c')]=_[_0x0957('0x28')](_0x2d4fb3,_0x0957('0x25'));_0x3b8a8f[_0x0957('0x2d')]=_[_0x0957('0x2e')](_0x4c082b['query']);_0x3b8a8f['filters']=_[_0x0957('0x2f')](_0x3b8a8f[_0x0957('0x2c')],_0x3b8a8f['query']);_0x27cd39[_0x0957('0x30')]=_[_0x0957('0x2f')](_0x3b8a8f[_0x0957('0x2c')],qs['fields'](_0x4c082b['query'][_0x0957('0x31')]));_0x27cd39[_0x0957('0x30')]=_0x27cd39['attributes'][_0x0957('0x32')]?_0x27cd39[_0x0957('0x30')]:_0x3b8a8f[_0x0957('0x2c')];if(!_0x4c082b['query'][_0x0957('0x33')]('nolimit')){_0x27cd39[_0x0957('0x34')]=qs[_0x0957('0x34')](_0x4c082b[_0x0957('0x2d')]['limit']);_0x27cd39[_0x0957('0x1c')]=qs[_0x0957('0x1c')](_0x4c082b[_0x0957('0x2d')][_0x0957('0x1c')]);}_0x27cd39['order']=qs[_0x0957('0x35')](_0x4c082b[_0x0957('0x2d')][_0x0957('0x35')]);_0x27cd39[_0x0957('0x36')]=qs[_0x0957('0x37')](_[_0x0957('0x38')](_0x4c082b[_0x0957('0x2d')],_0x3b8a8f[_0x0957('0x37')]),_0x2d4fb3);if(_0x4c082b[_0x0957('0x2d')][_0x0957('0x39')]){_0x27cd39[_0x0957('0x36')]=_['merge'](_0x27cd39[_0x0957('0x36')],{'$or':_[_0x0957('0x28')](_0x2d4fb3,function(_0x3b9cf5){if(_0x3b9cf5[_0x0957('0x3a')]!==_0x0957('0x3b')){var _0x554caa={};_0x554caa[_0x3b9cf5[_0x0957('0x25')]]={'$like':'%'+_0x4c082b[_0x0957('0x2d')][_0x0957('0x39')]+'%'};return _0x554caa;}})});}_0x27cd39=_[_0x0957('0x3c')]({},_0x27cd39,_0x4c082b[_0x0957('0x3d')]);var _0x209218={'where':_0x27cd39[_0x0957('0x36')]};return db[_0x0957('0x29')][_0x0957('0x1b')](_0x209218)['then'](function(_0x136ee6){_0x5488fe[_0x0957('0x1b')]=_0x136ee6;if(_0x4c082b[_0x0957('0x2d')][_0x0957('0x3e')]){_0x27cd39['include']=[{'all':!![]}];}return db[_0x0957('0x29')][_0x0957('0x3f')](_0x27cd39);})[_0x0957('0x22')](function(_0x534659){_0x5488fe[_0x0957('0x40')]=_0x534659;return _0x5488fe;})['then'](respondWithFilteredResult(_0x441f1d,_0x27cd39))[_0x0957('0x41')](handleError(_0x441f1d,null));};exports['show']=function(_0x509bb6,_0x5a3ec8){var _0x402689={'raw':!![],'where':{'id':_0x509bb6[_0x0957('0x42')]['id']}},_0x9cde94={};_0x9cde94['model']=_['keys'](db['Dynamics365Field'][_0x0957('0x2a')]);_0x9cde94[_0x0957('0x2d')]=_[_0x0957('0x2e')](_0x509bb6[_0x0957('0x2d')]);_0x9cde94[_0x0957('0x37')]=_[_0x0957('0x2f')](_0x9cde94[_0x0957('0x2c')],_0x9cde94[_0x0957('0x2d')]);_0x402689[_0x0957('0x30')]=_[_0x0957('0x2f')](_0x9cde94[_0x0957('0x2c')],qs['fields'](_0x509bb6[_0x0957('0x2d')][_0x0957('0x31')]));_0x402689[_0x0957('0x30')]=_0x402689[_0x0957('0x30')][_0x0957('0x32')]?_0x402689[_0x0957('0x30')]:_0x9cde94[_0x0957('0x2c')];if(_0x509bb6[_0x0957('0x2d')]['includeAll']){_0x402689[_0x0957('0x43')]=[{'all':!![]}];}_0x402689=_['merge']({},_0x402689,_0x509bb6[_0x0957('0x3d')]);return db[_0x0957('0x29')][_0x0957('0x44')](_0x402689)['then'](handleEntityNotFound(_0x5a3ec8,null))[_0x0957('0x22')](respondWithResult(_0x5a3ec8,null))[_0x0957('0x41')](handleError(_0x5a3ec8,null));};exports[_0x0957('0x45')]=function(_0x594b3a,_0x1ccbbb){return db[_0x0957('0x29')][_0x0957('0x45')](_0x594b3a['body'],{})[_0x0957('0x22')](respondWithResult(_0x1ccbbb,0xc9))[_0x0957('0x41')](handleError(_0x1ccbbb,null));};exports[_0x0957('0x46')]=function(_0x5d5258,_0x4a6d5b){if(_0x5d5258[_0x0957('0x47')]['id']){delete _0x5d5258[_0x0957('0x47')]['id'];}return db[_0x0957('0x29')][_0x0957('0x44')]({'where':{'id':_0x5d5258['params']['id']}})[_0x0957('0x22')](handleEntityNotFound(_0x4a6d5b,null))['then'](saveUpdates(_0x5d5258[_0x0957('0x47')],null))[_0x0957('0x22')](respondWithResult(_0x4a6d5b,null))[_0x0957('0x41')](handleError(_0x4a6d5b,null));};exports['destroy']=function(_0x88dd63,_0x1e3b6d){return db[_0x0957('0x29')]['find']({'where':{'id':_0x88dd63[_0x0957('0x42')]['id']}})[_0x0957('0x22')](handleEntityNotFound(_0x1e3b6d,null))[_0x0957('0x22')](removeEntity(_0x1e3b6d,null))[_0x0957('0x41')](handleError(_0x1e3b6d,null));};
\ No newline at end of file
+var _0xf6ad=['show','rawAttributes','options','find','body','params','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/license/util','sendStatus','status','end','json','offset','undefined','count','limit','set','Content-Range','apply','save','update','then','destroy','error','name','send','index','map','Dynamics365Field','fieldName','type','model','query','keys','filters','intersection','fields','attributes','length','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','includeAll','include','rows','catch'];(function(_0x597eb5,_0x4cb6f4){var _0x1305ab=function(_0x24c0cb){while(--_0x24c0cb){_0x597eb5['push'](_0x597eb5['shift']());}};_0x1305ab(++_0x4cb6f4);}(_0xf6ad,0xde));var _0xdf6a=function(_0x3f6f75,_0x26d69e){_0x3f6f75=_0x3f6f75-0x0;var _0x49931f=_0xf6ad[_0x3f6f75];return _0x49931f;};'use strict';var emlformat=require(_0xdf6a('0x0'));var rimraf=require(_0xdf6a('0x1'));var zipdir=require(_0xdf6a('0x2'));var jsonpatch=require(_0xdf6a('0x3'));var rp=require(_0xdf6a('0x4'));var moment=require('moment');var BPromise=require(_0xdf6a('0x5'));var Mustache=require(_0xdf6a('0x6'));var util=require(_0xdf6a('0x7'));var path=require(_0xdf6a('0x8'));var sox=require(_0xdf6a('0x9'));var csv=require(_0xdf6a('0xa'));var ejs=require(_0xdf6a('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xdf6a('0xc'));var squel=require(_0xdf6a('0xd'));var crypto=require('crypto');var jsforce=require(_0xdf6a('0xe'));var deskjs=require(_0xdf6a('0xf'));var toCsv=require(_0xdf6a('0xa'));var querystring=require(_0xdf6a('0x10'));var Papa=require(_0xdf6a('0x11'));var Redis=require(_0xdf6a('0x12'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xdf6a('0x13'));var hardwareService=require(_0xdf6a('0x14'));var logger=require('../../config/logger')(_0xdf6a('0x15'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0xdf6a('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x121150,_0x19d394){_0x19d394=_0x19d394||0xcc;return function(_0x5444d5){if(_0x5444d5){return _0x121150[_0xdf6a('0x17')](_0x19d394);}return _0x121150[_0xdf6a('0x18')](_0x19d394)[_0xdf6a('0x19')]();};}function respondWithResult(_0x3fce3d,_0x1345c3){_0x1345c3=_0x1345c3||0xc8;return function(_0x55a936){if(_0x55a936){return _0x3fce3d[_0xdf6a('0x18')](_0x1345c3)[_0xdf6a('0x1a')](_0x55a936);}};}function respondWithFilteredResult(_0x376da4,_0x19572a){return function(_0x36c0b7){if(_0x36c0b7){var _0x4901a1=typeof _0x19572a[_0xdf6a('0x1b')]==='undefined'&&typeof _0x19572a['limit']===_0xdf6a('0x1c');var _0x51ad34=_0x36c0b7[_0xdf6a('0x1d')];var _0x203bc8=_0x4901a1?0x0:_0x19572a['offset'];var _0x1bebcb=_0x4901a1?_0x36c0b7[_0xdf6a('0x1d')]:_0x19572a[_0xdf6a('0x1b')]+_0x19572a[_0xdf6a('0x1e')];var _0x26d6cc;if(_0x1bebcb>=_0x51ad34){_0x1bebcb=_0x51ad34;_0x26d6cc=0xc8;}else{_0x26d6cc=0xce;}_0x376da4[_0xdf6a('0x18')](_0x26d6cc);return _0x376da4[_0xdf6a('0x1f')](_0xdf6a('0x20'),_0x203bc8+'-'+_0x1bebcb+'/'+_0x51ad34)[_0xdf6a('0x1a')](_0x36c0b7);}return null;};}function patchUpdates(_0x3f0b57){return function(_0x122860){try{jsonpatch[_0xdf6a('0x21')](_0x122860,_0x3f0b57,!![]);}catch(_0xde159a){return BPromise['reject'](_0xde159a);}return _0x122860[_0xdf6a('0x22')]();};}function saveUpdates(_0xa78c13,_0x113193){return function(_0x33631e){if(_0x33631e){return _0x33631e[_0xdf6a('0x23')](_0xa78c13)[_0xdf6a('0x24')](function(_0xcf349c){return _0xcf349c;});}return null;};}function removeEntity(_0x406508,_0x35fed7){return function(_0x3951d8){if(_0x3951d8){return _0x3951d8[_0xdf6a('0x25')]()[_0xdf6a('0x24')](function(){_0x406508[_0xdf6a('0x18')](0xcc)[_0xdf6a('0x19')]();});}};}function handleEntityNotFound(_0x5bb4db,_0x2bc40d){return function(_0x489957){if(!_0x489957){_0x5bb4db['sendStatus'](0x194);}return _0x489957;};}function handleError(_0x53a3c2,_0x515a96){_0x515a96=_0x515a96||0x1f4;return function(_0x1a5021){logger[_0xdf6a('0x26')](_0x1a5021['stack']);if(_0x1a5021[_0xdf6a('0x27')]){delete _0x1a5021[_0xdf6a('0x27')];}_0x53a3c2[_0xdf6a('0x18')](_0x515a96)[_0xdf6a('0x28')](_0x1a5021);};}exports[_0xdf6a('0x29')]=function(_0x32cdcb,_0x2dc80c){var _0x317f90={},_0x458793={},_0x1aedf8={'count':0x0,'rows':[]};var _0x4bfc22=_[_0xdf6a('0x2a')](db[_0xdf6a('0x2b')]['rawAttributes'],function(_0x145f9b){return{'name':_0x145f9b[_0xdf6a('0x2c')],'type':_0x145f9b[_0xdf6a('0x2d')]['key']};});_0x458793[_0xdf6a('0x2e')]=_[_0xdf6a('0x2a')](_0x4bfc22,_0xdf6a('0x27'));_0x458793[_0xdf6a('0x2f')]=_[_0xdf6a('0x30')](_0x32cdcb[_0xdf6a('0x2f')]);_0x458793[_0xdf6a('0x31')]=_[_0xdf6a('0x32')](_0x458793[_0xdf6a('0x2e')],_0x458793[_0xdf6a('0x2f')]);_0x317f90['attributes']=_[_0xdf6a('0x32')](_0x458793['model'],qs[_0xdf6a('0x33')](_0x32cdcb[_0xdf6a('0x2f')]['fields']));_0x317f90['attributes']=_0x317f90[_0xdf6a('0x34')][_0xdf6a('0x35')]?_0x317f90[_0xdf6a('0x34')]:_0x458793['model'];if(!_0x32cdcb['query']['hasOwnProperty'](_0xdf6a('0x36'))){_0x317f90[_0xdf6a('0x1e')]=qs['limit'](_0x32cdcb[_0xdf6a('0x2f')][_0xdf6a('0x1e')]);_0x317f90['offset']=qs['offset'](_0x32cdcb[_0xdf6a('0x2f')][_0xdf6a('0x1b')]);}_0x317f90[_0xdf6a('0x37')]=qs[_0xdf6a('0x38')](_0x32cdcb['query']['sort']);_0x317f90[_0xdf6a('0x39')]=qs[_0xdf6a('0x31')](_[_0xdf6a('0x3a')](_0x32cdcb[_0xdf6a('0x2f')],_0x458793[_0xdf6a('0x31')]),_0x4bfc22);if(_0x32cdcb[_0xdf6a('0x2f')][_0xdf6a('0x3b')]){_0x317f90['where']=_[_0xdf6a('0x3c')](_0x317f90['where'],{'$or':_[_0xdf6a('0x2a')](_0x4bfc22,function(_0x791f9e){if(_0x791f9e[_0xdf6a('0x2d')]!==_0xdf6a('0x3d')){var _0x101ff0={};_0x101ff0[_0x791f9e[_0xdf6a('0x27')]]={'$like':'%'+_0x32cdcb[_0xdf6a('0x2f')]['filter']+'%'};return _0x101ff0;}})});}_0x317f90=_[_0xdf6a('0x3c')]({},_0x317f90,_0x32cdcb['options']);var _0xc050ff={'where':_0x317f90['where']};return db[_0xdf6a('0x2b')][_0xdf6a('0x1d')](_0xc050ff)['then'](function(_0x17d6ba){_0x1aedf8[_0xdf6a('0x1d')]=_0x17d6ba;if(_0x32cdcb[_0xdf6a('0x2f')][_0xdf6a('0x3e')]){_0x317f90[_0xdf6a('0x3f')]=[{'all':!![]}];}return db[_0xdf6a('0x2b')]['findAll'](_0x317f90);})[_0xdf6a('0x24')](function(_0x52a173){_0x1aedf8[_0xdf6a('0x40')]=_0x52a173;return _0x1aedf8;})[_0xdf6a('0x24')](respondWithFilteredResult(_0x2dc80c,_0x317f90))[_0xdf6a('0x41')](handleError(_0x2dc80c,null));};exports[_0xdf6a('0x42')]=function(_0x33b5bc,_0x1e802e){var _0x23d378={'raw':!![],'where':{'id':_0x33b5bc['params']['id']}},_0x48964e={};_0x48964e[_0xdf6a('0x2e')]=_[_0xdf6a('0x30')](db['Dynamics365Field'][_0xdf6a('0x43')]);_0x48964e[_0xdf6a('0x2f')]=_[_0xdf6a('0x30')](_0x33b5bc[_0xdf6a('0x2f')]);_0x48964e['filters']=_[_0xdf6a('0x32')](_0x48964e[_0xdf6a('0x2e')],_0x48964e[_0xdf6a('0x2f')]);_0x23d378[_0xdf6a('0x34')]=_[_0xdf6a('0x32')](_0x48964e[_0xdf6a('0x2e')],qs[_0xdf6a('0x33')](_0x33b5bc[_0xdf6a('0x2f')][_0xdf6a('0x33')]));_0x23d378['attributes']=_0x23d378[_0xdf6a('0x34')][_0xdf6a('0x35')]?_0x23d378[_0xdf6a('0x34')]:_0x48964e[_0xdf6a('0x2e')];if(_0x33b5bc[_0xdf6a('0x2f')][_0xdf6a('0x3e')]){_0x23d378[_0xdf6a('0x3f')]=[{'all':!![]}];}_0x23d378=_[_0xdf6a('0x3c')]({},_0x23d378,_0x33b5bc[_0xdf6a('0x44')]);return db[_0xdf6a('0x2b')][_0xdf6a('0x45')](_0x23d378)[_0xdf6a('0x24')](handleEntityNotFound(_0x1e802e,null))[_0xdf6a('0x24')](respondWithResult(_0x1e802e,null))[_0xdf6a('0x41')](handleError(_0x1e802e,null));};exports['create']=function(_0x436d67,_0x3237d4){return db[_0xdf6a('0x2b')]['create'](_0x436d67[_0xdf6a('0x46')],{})[_0xdf6a('0x24')](respondWithResult(_0x3237d4,0xc9))[_0xdf6a('0x41')](handleError(_0x3237d4,null));};exports[_0xdf6a('0x23')]=function(_0x1578db,_0x564355){if(_0x1578db['body']['id']){delete _0x1578db[_0xdf6a('0x46')]['id'];}return db[_0xdf6a('0x2b')][_0xdf6a('0x45')]({'where':{'id':_0x1578db[_0xdf6a('0x47')]['id']}})[_0xdf6a('0x24')](handleEntityNotFound(_0x564355,null))[_0xdf6a('0x24')](saveUpdates(_0x1578db['body'],null))['then'](respondWithResult(_0x564355,null))[_0xdf6a('0x41')](handleError(_0x564355,null));};exports[_0xdf6a('0x25')]=function(_0x2db759,_0x4d63d3){return db[_0xdf6a('0x2b')][_0xdf6a('0x45')]({'where':{'id':_0x2db759[_0xdf6a('0x47')]['id']}})[_0xdf6a('0x24')](handleEntityNotFound(_0x4d63d3,null))['then'](removeEntity(_0x4d63d3,null))[_0xdf6a('0x41')](handleError(_0x4d63d3,null));};
\ No newline at end of file