Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / openchannelApplication / openchannelApplication.controller.js
index d4153b5..6f19bdc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5a99=['offset','set','Content-Range','apply','reject','save','update','then','destroy','end','error','name','send','index','map','OpenchannelApplication','rawAttributes','fieldName','type','key','model','query','filters','intersection','attributes','fields','hasOwnProperty','nolimit','limit','order','sort','pick','filter','merge','where','count','includeAll','findAll','rows','catch','show','keys','length','include','options','find','create','body','params','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/environment','../../mysqldb','sendStatus','status','json'];(function(_0x4953da,_0x5adaca){var _0x2d3780=function(_0x458f36){while(--_0x458f36){_0x4953da['push'](_0x4953da['shift']());}};_0x2d3780(++_0x5adaca);}(_0x5a99,0xc9));var _0x95a9=function(_0x35eb34,_0x4d7d1c){_0x35eb34=_0x35eb34-0x0;var _0x1c1638=_0x5a99[_0x35eb34];return _0x1c1638;};'use strict';var emlformat=require(_0x95a9('0x0'));var rimraf=require(_0x95a9('0x1'));var zipdir=require(_0x95a9('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x95a9('0x3'));var moment=require(_0x95a9('0x4'));var BPromise=require(_0x95a9('0x5'));var Mustache=require(_0x95a9('0x6'));var util=require('util');var path=require(_0x95a9('0x7'));var sox=require(_0x95a9('0x8'));var csv=require(_0x95a9('0x9'));var ejs=require(_0x95a9('0xa'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x95a9('0xb'));var squel=require(_0x95a9('0xc'));var crypto=require(_0x95a9('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x95a9('0xe'));var toCsv=require('to-csv');var querystring=require(_0x95a9('0xf'));var Papa=require(_0x95a9('0x10'));var Redis=require(_0x95a9('0x11'));var authService=require(_0x95a9('0x12'));var qs=require(_0x95a9('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x95a9('0x14'))(_0x95a9('0x15'));var utils=require('../../config/utils');var config=require(_0x95a9('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0x95a9('0x17'))['db'];function respondWithStatusCode(_0x2cf403,_0x789d86){_0x789d86=_0x789d86||0xcc;return function(_0x1c7256){if(_0x1c7256){return _0x2cf403[_0x95a9('0x18')](_0x789d86);}return _0x2cf403['status'](_0x789d86)['end']();};}function respondWithResult(_0x5e9ad2,_0x39126b){_0x39126b=_0x39126b||0xc8;return function(_0x537c35){if(_0x537c35){return _0x5e9ad2[_0x95a9('0x19')](_0x39126b)[_0x95a9('0x1a')](_0x537c35);}};}function respondWithFilteredResult(_0x4644c4,_0x4aea93){return function(_0x9d0e15){if(_0x9d0e15){var _0x4900b3=_0x9d0e15['count'],_0x37ccf1=_0x4aea93[_0x95a9('0x1b')],_0x43768a=_0x4aea93['offset']+_0x4aea93['limit'],_0x45e88c;if(_0x43768a>=_0x4900b3){_0x43768a=_0x4900b3;_0x45e88c=0xc8;}else{_0x45e88c=0xce;}_0x4644c4[_0x95a9('0x19')](_0x45e88c);return _0x4644c4[_0x95a9('0x1c')](_0x95a9('0x1d'),_0x37ccf1+'-'+_0x43768a+'/'+_0x4900b3)[_0x95a9('0x1a')](_0x9d0e15);}return null;};}function patchUpdates(_0x24b38b){return function(_0x2e1322){try{jsonpatch[_0x95a9('0x1e')](_0x2e1322,_0x24b38b,!![]);}catch(_0xab9d9a){return BPromise[_0x95a9('0x1f')](_0xab9d9a);}return _0x2e1322[_0x95a9('0x20')]();};}function saveUpdates(_0x4d48b4,_0x56d23a){return function(_0x15293e){if(_0x15293e){return _0x15293e[_0x95a9('0x21')](_0x4d48b4)[_0x95a9('0x22')](function(_0x2e61d1){return _0x2e61d1;});}return null;};}function removeEntity(_0x5a6034,_0x2f05a7){return function(_0x21b556){if(_0x21b556){return _0x21b556[_0x95a9('0x23')]()[_0x95a9('0x22')](function(){_0x5a6034[_0x95a9('0x19')](0xcc)[_0x95a9('0x24')]();});}};}function handleEntityNotFound(_0x203c51,_0x48de16){return function(_0x345cef){if(!_0x345cef){_0x203c51[_0x95a9('0x18')](0x194);}return _0x345cef;};}function handleError(_0x2e1a9f,_0x5dfb63){_0x5dfb63=_0x5dfb63||0x1f4;return function(_0x493acf){logger[_0x95a9('0x25')](_0x493acf['stack']);if(_0x493acf['name']){delete _0x493acf[_0x95a9('0x26')];}_0x2e1a9f['status'](_0x5dfb63)[_0x95a9('0x27')](_0x493acf);};}exports[_0x95a9('0x28')]=function(_0x333260,_0xc6a07b){var _0x2951f4={},_0x8b85bb={},_0x22bcb5={'count':0x0,'rows':[]};var _0x16dee8=_[_0x95a9('0x29')](db[_0x95a9('0x2a')][_0x95a9('0x2b')],function(_0xe64e70){return{'name':_0xe64e70[_0x95a9('0x2c')],'type':_0xe64e70[_0x95a9('0x2d')][_0x95a9('0x2e')]};});_0x8b85bb[_0x95a9('0x2f')]=_[_0x95a9('0x29')](_0x16dee8,'name');_0x8b85bb['query']=_['keys'](_0x333260[_0x95a9('0x30')]);_0x8b85bb[_0x95a9('0x31')]=_[_0x95a9('0x32')](_0x8b85bb['model'],_0x8b85bb[_0x95a9('0x30')]);_0x2951f4[_0x95a9('0x33')]=_[_0x95a9('0x32')](_0x8b85bb[_0x95a9('0x2f')],qs[_0x95a9('0x34')](_0x333260[_0x95a9('0x30')][_0x95a9('0x34')]));_0x2951f4[_0x95a9('0x33')]=_0x2951f4['attributes']['length']?_0x2951f4['attributes']:_0x8b85bb[_0x95a9('0x2f')];if(!_0x333260[_0x95a9('0x30')][_0x95a9('0x35')](_0x95a9('0x36'))){_0x2951f4['limit']=qs[_0x95a9('0x37')](_0x333260[_0x95a9('0x30')][_0x95a9('0x37')]);_0x2951f4[_0x95a9('0x1b')]=qs[_0x95a9('0x1b')](_0x333260[_0x95a9('0x30')][_0x95a9('0x1b')]);}_0x2951f4[_0x95a9('0x38')]=qs[_0x95a9('0x39')](_0x333260[_0x95a9('0x30')][_0x95a9('0x39')]);_0x2951f4['where']=qs[_0x95a9('0x31')](_[_0x95a9('0x3a')](_0x333260[_0x95a9('0x30')],_0x8b85bb[_0x95a9('0x31')]),_0x16dee8);if(_0x333260[_0x95a9('0x30')][_0x95a9('0x3b')]){_0x2951f4['where']=_[_0x95a9('0x3c')](_0x2951f4[_0x95a9('0x3d')],{'$or':_[_0x95a9('0x29')](_0x16dee8,function(_0x2c758c){if(_0x2c758c[_0x95a9('0x2d')]!=='VIRTUAL'){var _0x41b300={};_0x41b300[_0x2c758c[_0x95a9('0x26')]]={'$like':'%'+_0x333260['query'][_0x95a9('0x3b')]+'%'};return _0x41b300;}})});}_0x2951f4=_[_0x95a9('0x3c')]({},_0x2951f4,_0x333260['options']);var _0x5a6030={'where':_0x2951f4[_0x95a9('0x3d')]};return db[_0x95a9('0x2a')][_0x95a9('0x3e')](_0x5a6030)[_0x95a9('0x22')](function(_0x2f66d7){_0x22bcb5[_0x95a9('0x3e')]=_0x2f66d7;if(_0x333260[_0x95a9('0x30')][_0x95a9('0x3f')]){_0x2951f4['include']=[{'all':!![]}];}return db[_0x95a9('0x2a')][_0x95a9('0x40')](_0x2951f4);})[_0x95a9('0x22')](function(_0x2c1695){_0x22bcb5[_0x95a9('0x41')]=_0x2c1695;return _0x22bcb5;})[_0x95a9('0x22')](respondWithFilteredResult(_0xc6a07b,_0x2951f4))[_0x95a9('0x42')](handleError(_0xc6a07b,null));};exports[_0x95a9('0x43')]=function(_0x34e234,_0x4699b1){var _0x3920a4={'raw':!![],'where':{'id':_0x34e234['params']['id']}},_0x14ac89={};_0x14ac89[_0x95a9('0x2f')]=_['keys'](db[_0x95a9('0x2a')][_0x95a9('0x2b')]);_0x14ac89['query']=_[_0x95a9('0x44')](_0x34e234[_0x95a9('0x30')]);_0x14ac89[_0x95a9('0x31')]=_[_0x95a9('0x32')](_0x14ac89[_0x95a9('0x2f')],_0x14ac89[_0x95a9('0x30')]);_0x3920a4[_0x95a9('0x33')]=_[_0x95a9('0x32')](_0x14ac89[_0x95a9('0x2f')],qs[_0x95a9('0x34')](_0x34e234[_0x95a9('0x30')][_0x95a9('0x34')]));_0x3920a4[_0x95a9('0x33')]=_0x3920a4[_0x95a9('0x33')][_0x95a9('0x45')]?_0x3920a4[_0x95a9('0x33')]:_0x14ac89['model'];if(_0x34e234['query'][_0x95a9('0x3f')]){_0x3920a4[_0x95a9('0x46')]=[{'all':!![]}];}_0x3920a4=_[_0x95a9('0x3c')]({},_0x3920a4,_0x34e234[_0x95a9('0x47')]);return db[_0x95a9('0x2a')][_0x95a9('0x48')](_0x3920a4)[_0x95a9('0x22')](handleEntityNotFound(_0x4699b1,null))[_0x95a9('0x22')](respondWithResult(_0x4699b1,null))[_0x95a9('0x42')](handleError(_0x4699b1,null));};exports[_0x95a9('0x49')]=function(_0x29bbaa,_0x53cd94){return db[_0x95a9('0x2a')][_0x95a9('0x49')](_0x29bbaa['body'],{})[_0x95a9('0x22')](respondWithResult(_0x53cd94,0xc9))[_0x95a9('0x42')](handleError(_0x53cd94,null));};exports[_0x95a9('0x21')]=function(_0xbcd84,_0x1a310e){if(_0xbcd84[_0x95a9('0x4a')]['id']){delete _0xbcd84[_0x95a9('0x4a')]['id'];}return db[_0x95a9('0x2a')]['find']({'where':{'id':_0xbcd84[_0x95a9('0x4b')]['id']}})[_0x95a9('0x22')](handleEntityNotFound(_0x1a310e,null))[_0x95a9('0x22')](saveUpdates(_0xbcd84[_0x95a9('0x4a')],null))[_0x95a9('0x22')](respondWithResult(_0x1a310e,null))[_0x95a9('0x42')](handleError(_0x1a310e,null));};exports[_0x95a9('0x23')]=function(_0x2b0964,_0x12b027){return db[_0x95a9('0x2a')][_0x95a9('0x48')]({'where':{'id':_0x2b0964['params']['id']}})['then'](handleEntityNotFound(_0x12b027,null))[_0x95a9('0x22')](removeEntity(_0x12b027,null))[_0x95a9('0x42')](handleError(_0x12b027,null));};
\ No newline at end of file
+var _0xf7db=['key','model','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','filters','pick','filter','where','VIRTUAL','merge','options','includeAll','include','findAll','rows','catch','params','keys','find','create','body','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','path','to-csv','ejs','crypto','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','undefined','count','set','apply','reject','save','update','then','destroy','stack','name','send','index','map','OpenchannelApplication','rawAttributes','type'];(function(_0x5f309e,_0x66e31){var _0x487b5e=function(_0x44f203){while(--_0x44f203){_0x5f309e['push'](_0x5f309e['shift']());}};_0x487b5e(++_0x66e31);}(_0xf7db,0xa5));var _0xbf7d=function(_0x192850,_0x4171b0){_0x192850=_0x192850-0x0;var _0x5001f7=_0xf7db[_0x192850];return _0x5001f7;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbf7d('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xbf7d('0x1'));var rp=require(_0xbf7d('0x2'));var moment=require(_0xbf7d('0x3'));var BPromise=require(_0xbf7d('0x4'));var Mustache=require(_0xbf7d('0x5'));var util=require('util');var path=require(_0xbf7d('0x6'));var sox=require('sox');var csv=require(_0xbf7d('0x7'));var ejs=require(_0xbf7d('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require('squel');var crypto=require(_0xbf7d('0x9'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0xbf7d('0x7'));var querystring=require(_0xbf7d('0xa'));var Papa=require('papaparse');var Redis=require(_0xbf7d('0xb'));var authService=require(_0xbf7d('0xc'));var qs=require(_0xbf7d('0xd'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xbf7d('0xe'));var logger=require(_0xbf7d('0xf'))('api');var utils=require(_0xbf7d('0x10'));var config=require('../../config/environment');var licenseUtil=require(_0xbf7d('0x11'));var db=require(_0xbf7d('0x12'))['db'];function respondWithStatusCode(_0x307d54,_0x2b72c1){_0x2b72c1=_0x2b72c1||0xcc;return function(_0x15075f){if(_0x15075f){return _0x307d54[_0xbf7d('0x13')](_0x2b72c1);}return _0x307d54[_0xbf7d('0x14')](_0x2b72c1)[_0xbf7d('0x15')]();};}function respondWithResult(_0x1d63bf,_0x3e40cc){_0x3e40cc=_0x3e40cc||0xc8;return function(_0x1798bb){if(_0x1798bb){return _0x1d63bf[_0xbf7d('0x14')](_0x3e40cc)[_0xbf7d('0x16')](_0x1798bb);}};}function respondWithFilteredResult(_0x312fb5,_0x4f8021){return function(_0x3de921){if(_0x3de921){var _0x4611cb=typeof _0x4f8021[_0xbf7d('0x17')]==='undefined'&&typeof _0x4f8021[_0xbf7d('0x18')]===_0xbf7d('0x19');var _0x402c2e=_0x3de921[_0xbf7d('0x1a')];var _0x45847f=_0x4611cb?0x0:_0x4f8021[_0xbf7d('0x17')];var _0x5e207c=_0x4611cb?_0x3de921[_0xbf7d('0x1a')]:_0x4f8021[_0xbf7d('0x17')]+_0x4f8021[_0xbf7d('0x18')];var _0x54eae3;if(_0x5e207c>=_0x402c2e){_0x5e207c=_0x402c2e;_0x54eae3=0xc8;}else{_0x54eae3=0xce;}_0x312fb5[_0xbf7d('0x14')](_0x54eae3);return _0x312fb5[_0xbf7d('0x1b')]('Content-Range',_0x45847f+'-'+_0x5e207c+'/'+_0x402c2e)[_0xbf7d('0x16')](_0x3de921);}return null;};}function patchUpdates(_0xa8710c){return function(_0x110e34){try{jsonpatch[_0xbf7d('0x1c')](_0x110e34,_0xa8710c,!![]);}catch(_0x266511){return BPromise[_0xbf7d('0x1d')](_0x266511);}return _0x110e34[_0xbf7d('0x1e')]();};}function saveUpdates(_0xdf699f,_0x17add9){return function(_0x47f606){if(_0x47f606){return _0x47f606[_0xbf7d('0x1f')](_0xdf699f)[_0xbf7d('0x20')](function(_0x108fc1){return _0x108fc1;});}return null;};}function removeEntity(_0x44dab2,_0x1b948a){return function(_0x597d24){if(_0x597d24){return _0x597d24[_0xbf7d('0x21')]()[_0xbf7d('0x20')](function(){_0x44dab2[_0xbf7d('0x14')](0xcc)[_0xbf7d('0x15')]();});}};}function handleEntityNotFound(_0x4b47e2,_0x253ba8){return function(_0x38640a){if(!_0x38640a){_0x4b47e2[_0xbf7d('0x13')](0x194);}return _0x38640a;};}function handleError(_0x130c08,_0x5d8842){_0x5d8842=_0x5d8842||0x1f4;return function(_0x28c482){logger['error'](_0x28c482[_0xbf7d('0x22')]);if(_0x28c482[_0xbf7d('0x23')]){delete _0x28c482[_0xbf7d('0x23')];}_0x130c08['status'](_0x5d8842)[_0xbf7d('0x24')](_0x28c482);};}exports[_0xbf7d('0x25')]=function(_0x366c85,_0x3fe5bd){var _0x3057f6={},_0x58ff05={},_0x418ca3={'count':0x0,'rows':[]};var _0x1caed9=_[_0xbf7d('0x26')](db[_0xbf7d('0x27')][_0xbf7d('0x28')],function(_0x4686a6){return{'name':_0x4686a6['fieldName'],'type':_0x4686a6[_0xbf7d('0x29')][_0xbf7d('0x2a')]};});_0x58ff05[_0xbf7d('0x2b')]=_[_0xbf7d('0x26')](_0x1caed9,'name');_0x58ff05[_0xbf7d('0x2c')]=_['keys'](_0x366c85[_0xbf7d('0x2c')]);_0x58ff05['filters']=_[_0xbf7d('0x2d')](_0x58ff05['model'],_0x58ff05[_0xbf7d('0x2c')]);_0x3057f6[_0xbf7d('0x2e')]=_[_0xbf7d('0x2d')](_0x58ff05[_0xbf7d('0x2b')],qs[_0xbf7d('0x2f')](_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x2f')]));_0x3057f6[_0xbf7d('0x2e')]=_0x3057f6['attributes'][_0xbf7d('0x30')]?_0x3057f6[_0xbf7d('0x2e')]:_0x58ff05['model'];if(!_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x31')](_0xbf7d('0x32'))){_0x3057f6[_0xbf7d('0x18')]=qs[_0xbf7d('0x18')](_0x366c85[_0xbf7d('0x2c')]['limit']);_0x3057f6['offset']=qs[_0xbf7d('0x17')](_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x17')]);}_0x3057f6['order']=qs['sort'](_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x33')]);_0x3057f6['where']=qs[_0xbf7d('0x34')](_[_0xbf7d('0x35')](_0x366c85['query'],_0x58ff05[_0xbf7d('0x34')]),_0x1caed9);if(_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x36')]){_0x3057f6[_0xbf7d('0x37')]=_['merge'](_0x3057f6[_0xbf7d('0x37')],{'$or':_[_0xbf7d('0x26')](_0x1caed9,function(_0x4da796){if(_0x4da796[_0xbf7d('0x29')]!==_0xbf7d('0x38')){var _0x5e0f9a={};_0x5e0f9a[_0x4da796[_0xbf7d('0x23')]]={'$like':'%'+_0x366c85[_0xbf7d('0x2c')]['filter']+'%'};return _0x5e0f9a;}})});}_0x3057f6=_[_0xbf7d('0x39')]({},_0x3057f6,_0x366c85[_0xbf7d('0x3a')]);var _0x29f758={'where':_0x3057f6[_0xbf7d('0x37')]};return db[_0xbf7d('0x27')][_0xbf7d('0x1a')](_0x29f758)[_0xbf7d('0x20')](function(_0x19f1a1){_0x418ca3[_0xbf7d('0x1a')]=_0x19f1a1;if(_0x366c85['query'][_0xbf7d('0x3b')]){_0x3057f6[_0xbf7d('0x3c')]=[{'all':!![]}];}return db[_0xbf7d('0x27')][_0xbf7d('0x3d')](_0x3057f6);})[_0xbf7d('0x20')](function(_0x59832a){_0x418ca3[_0xbf7d('0x3e')]=_0x59832a;return _0x418ca3;})[_0xbf7d('0x20')](respondWithFilteredResult(_0x3fe5bd,_0x3057f6))[_0xbf7d('0x3f')](handleError(_0x3fe5bd,null));};exports['show']=function(_0x18b5f9,_0x24240c){var _0x1ea962={'raw':!![],'where':{'id':_0x18b5f9[_0xbf7d('0x40')]['id']}},_0x1e6a76={};_0x1e6a76[_0xbf7d('0x2b')]=_[_0xbf7d('0x41')](db[_0xbf7d('0x27')][_0xbf7d('0x28')]);_0x1e6a76['query']=_[_0xbf7d('0x41')](_0x18b5f9['query']);_0x1e6a76['filters']=_[_0xbf7d('0x2d')](_0x1e6a76['model'],_0x1e6a76[_0xbf7d('0x2c')]);_0x1ea962[_0xbf7d('0x2e')]=_['intersection'](_0x1e6a76[_0xbf7d('0x2b')],qs[_0xbf7d('0x2f')](_0x18b5f9[_0xbf7d('0x2c')][_0xbf7d('0x2f')]));_0x1ea962[_0xbf7d('0x2e')]=_0x1ea962[_0xbf7d('0x2e')][_0xbf7d('0x30')]?_0x1ea962[_0xbf7d('0x2e')]:_0x1e6a76[_0xbf7d('0x2b')];if(_0x18b5f9['query'][_0xbf7d('0x3b')]){_0x1ea962[_0xbf7d('0x3c')]=[{'all':!![]}];}_0x1ea962=_[_0xbf7d('0x39')]({},_0x1ea962,_0x18b5f9[_0xbf7d('0x3a')]);return db[_0xbf7d('0x27')][_0xbf7d('0x42')](_0x1ea962)[_0xbf7d('0x20')](handleEntityNotFound(_0x24240c,null))[_0xbf7d('0x20')](respondWithResult(_0x24240c,null))[_0xbf7d('0x3f')](handleError(_0x24240c,null));};exports['create']=function(_0x4b83f4,_0x16bbc1){return db[_0xbf7d('0x27')][_0xbf7d('0x43')](_0x4b83f4[_0xbf7d('0x44')],{})[_0xbf7d('0x20')](respondWithResult(_0x16bbc1,0xc9))['catch'](handleError(_0x16bbc1,null));};exports[_0xbf7d('0x1f')]=function(_0x1162ef,_0xc90e60){if(_0x1162ef[_0xbf7d('0x44')]['id']){delete _0x1162ef[_0xbf7d('0x44')]['id'];}return db[_0xbf7d('0x27')][_0xbf7d('0x42')]({'where':{'id':_0x1162ef[_0xbf7d('0x40')]['id']}})[_0xbf7d('0x20')](handleEntityNotFound(_0xc90e60,null))['then'](saveUpdates(_0x1162ef['body'],null))['then'](respondWithResult(_0xc90e60,null))[_0xbf7d('0x3f')](handleError(_0xc90e60,null));};exports[_0xbf7d('0x21')]=function(_0x573574,_0x18f566){return db[_0xbf7d('0x27')][_0xbf7d('0x42')]({'where':{'id':_0x573574[_0xbf7d('0x40')]['id']}})['then'](handleEntityNotFound(_0x18f566,null))[_0xbf7d('0x20')](removeEntity(_0x18f566,null))[_0xbf7d('0x3f')](handleError(_0x18f566,null));};
\ No newline at end of file