Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / intVtigerField / intVtigerField.controller.js
index cef30ae..a1b4779 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf853=['findAll','rows','catch','show','intersection','include','merge','find','create','body','params','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../mysqldb','sendStatus','status','json','offset','undefined','limit','count','set','reject','save','update','then','destroy','end','error','stack','send','map','rawAttributes','fieldName','type','key','model','name','query','keys','filters','attributes','fields','length','hasOwnProperty','order','sort','pick','filter','where','VIRTUAL','options','includeAll','VtigerField'];(function(_0x330723,_0x8de382){var _0x60c546=function(_0xd6d3fe){while(--_0xd6d3fe){_0x330723['push'](_0x330723['shift']());}};_0x60c546(++_0x8de382);}(_0xf853,0x1cd));var _0x3f85=function(_0xe896bf,_0x4f8e5e){_0xe896bf=_0xe896bf-0x0;var _0x4c7a8a=_0xf853[_0xe896bf];return _0x4c7a8a;};'use strict';var emlformat=require(_0x3f85('0x0'));var rimraf=require(_0x3f85('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3f85('0x2'));var rp=require(_0x3f85('0x3'));var moment=require(_0x3f85('0x4'));var BPromise=require(_0x3f85('0x5'));var Mustache=require('mustache');var util=require(_0x3f85('0x6'));var path=require('path');var sox=require(_0x3f85('0x7'));var csv=require(_0x3f85('0x8'));var ejs=require(_0x3f85('0x9'));var fs=require('fs');var fs_extra=require(_0x3f85('0xa'));var _=require(_0x3f85('0xb'));var squel=require(_0x3f85('0xc'));var crypto=require(_0x3f85('0xd'));var jsforce=require(_0x3f85('0xe'));var deskjs=require(_0x3f85('0xf'));var toCsv=require(_0x3f85('0x8'));var querystring=require(_0x3f85('0x10'));var Papa=require('papaparse');var Redis=require(_0x3f85('0x11'));var authService=require(_0x3f85('0x12'));var qs=require(_0x3f85('0x13'));var as=require(_0x3f85('0x14'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x3f85('0x15'))(_0x3f85('0x16'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x3f85('0x17'))['db'];function respondWithStatusCode(_0x3c1cb7,_0x1885ae){_0x1885ae=_0x1885ae||0xcc;return function(_0x1a5474){if(_0x1a5474){return _0x3c1cb7[_0x3f85('0x18')](_0x1885ae);}return _0x3c1cb7[_0x3f85('0x19')](_0x1885ae)['end']();};}function respondWithResult(_0x4b8bc9,_0x478df6){_0x478df6=_0x478df6||0xc8;return function(_0x196a5f){if(_0x196a5f){return _0x4b8bc9[_0x3f85('0x19')](_0x478df6)[_0x3f85('0x1a')](_0x196a5f);}};}function respondWithFilteredResult(_0x274a04,_0x35ed10){return function(_0x53d27d){if(_0x53d27d){var _0x2d8927=typeof _0x35ed10[_0x3f85('0x1b')]===_0x3f85('0x1c')&&typeof _0x35ed10[_0x3f85('0x1d')]===_0x3f85('0x1c');var _0x3f3315=_0x53d27d[_0x3f85('0x1e')];var _0x3bc49a=_0x2d8927?0x0:_0x35ed10[_0x3f85('0x1b')];var _0xcdd71f=_0x2d8927?_0x53d27d[_0x3f85('0x1e')]:_0x35ed10['offset']+_0x35ed10[_0x3f85('0x1d')];var _0x4c664d;if(_0xcdd71f>=_0x3f3315){_0xcdd71f=_0x3f3315;_0x4c664d=0xc8;}else{_0x4c664d=0xce;}_0x274a04[_0x3f85('0x19')](_0x4c664d);return _0x274a04[_0x3f85('0x1f')]('Content-Range',_0x3bc49a+'-'+_0xcdd71f+'/'+_0x3f3315)['json'](_0x53d27d);}return null;};}function patchUpdates(_0x16caed){return function(_0x2bfe6e){try{jsonpatch['apply'](_0x2bfe6e,_0x16caed,!![]);}catch(_0x55fd2b){return BPromise[_0x3f85('0x20')](_0x55fd2b);}return _0x2bfe6e[_0x3f85('0x21')]();};}function saveUpdates(_0x4581dd,_0x50c473){return function(_0x4739f5){if(_0x4739f5){return _0x4739f5[_0x3f85('0x22')](_0x4581dd)[_0x3f85('0x23')](function(_0x121495){return _0x121495;});}return null;};}function removeEntity(_0x3faf6c,_0x298d06){return function(_0x4ca964){if(_0x4ca964){return _0x4ca964[_0x3f85('0x24')]()[_0x3f85('0x23')](function(){_0x3faf6c[_0x3f85('0x19')](0xcc)[_0x3f85('0x25')]();});}};}function handleEntityNotFound(_0x579158,_0xd8e991){return function(_0x21d552){if(!_0x21d552){_0x579158[_0x3f85('0x18')](0x194);}return _0x21d552;};}function handleError(_0x4f3453,_0x1b0f53){_0x1b0f53=_0x1b0f53||0x1f4;return function(_0x5e4b03){logger[_0x3f85('0x26')](_0x5e4b03[_0x3f85('0x27')]);if(_0x5e4b03['name']){delete _0x5e4b03['name'];}_0x4f3453['status'](_0x1b0f53)[_0x3f85('0x28')](_0x5e4b03);};}exports['index']=function(_0xd10ad2,_0x5657f6){var _0x47f05c={},_0x370943={},_0x24eaed={'count':0x0,'rows':[]};var _0x17e6d3=_[_0x3f85('0x29')](db['VtigerField'][_0x3f85('0x2a')],function(_0x21b893){return{'name':_0x21b893[_0x3f85('0x2b')],'type':_0x21b893[_0x3f85('0x2c')][_0x3f85('0x2d')]};});_0x370943[_0x3f85('0x2e')]=_['map'](_0x17e6d3,_0x3f85('0x2f'));_0x370943[_0x3f85('0x30')]=_[_0x3f85('0x31')](_0xd10ad2[_0x3f85('0x30')]);_0x370943[_0x3f85('0x32')]=_['intersection'](_0x370943[_0x3f85('0x2e')],_0x370943[_0x3f85('0x30')]);_0x47f05c[_0x3f85('0x33')]=_['intersection'](_0x370943[_0x3f85('0x2e')],qs[_0x3f85('0x34')](_0xd10ad2[_0x3f85('0x30')][_0x3f85('0x34')]));_0x47f05c[_0x3f85('0x33')]=_0x47f05c[_0x3f85('0x33')][_0x3f85('0x35')]?_0x47f05c[_0x3f85('0x33')]:_0x370943['model'];if(!_0xd10ad2[_0x3f85('0x30')][_0x3f85('0x36')]('nolimit')){_0x47f05c[_0x3f85('0x1d')]=qs[_0x3f85('0x1d')](_0xd10ad2['query'][_0x3f85('0x1d')]);_0x47f05c['offset']=qs[_0x3f85('0x1b')](_0xd10ad2[_0x3f85('0x30')][_0x3f85('0x1b')]);}_0x47f05c[_0x3f85('0x37')]=qs[_0x3f85('0x38')](_0xd10ad2[_0x3f85('0x30')][_0x3f85('0x38')]);_0x47f05c['where']=qs['filters'](_[_0x3f85('0x39')](_0xd10ad2[_0x3f85('0x30')],_0x370943['filters']),_0x17e6d3);if(_0xd10ad2['query'][_0x3f85('0x3a')]){_0x47f05c[_0x3f85('0x3b')]=_['merge'](_0x47f05c[_0x3f85('0x3b')],{'$or':_[_0x3f85('0x29')](_0x17e6d3,function(_0x1d9952){if(_0x1d9952['type']!==_0x3f85('0x3c')){var _0x260110={};_0x260110[_0x1d9952[_0x3f85('0x2f')]]={'$like':'%'+_0xd10ad2[_0x3f85('0x30')][_0x3f85('0x3a')]+'%'};return _0x260110;}})});}_0x47f05c=_['merge']({},_0x47f05c,_0xd10ad2[_0x3f85('0x3d')]);var _0x651768={'where':_0x47f05c[_0x3f85('0x3b')]};return db['VtigerField'][_0x3f85('0x1e')](_0x651768)[_0x3f85('0x23')](function(_0x5dda4b){_0x24eaed['count']=_0x5dda4b;if(_0xd10ad2['query'][_0x3f85('0x3e')]){_0x47f05c['include']=[{'all':!![]}];}return db[_0x3f85('0x3f')][_0x3f85('0x40')](_0x47f05c);})[_0x3f85('0x23')](function(_0x3bf47e){_0x24eaed[_0x3f85('0x41')]=_0x3bf47e;return _0x24eaed;})['then'](respondWithFilteredResult(_0x5657f6,_0x47f05c))[_0x3f85('0x42')](handleError(_0x5657f6,null));};exports[_0x3f85('0x43')]=function(_0x180399,_0xdae88c){var _0x428d21={'raw':!![],'where':{'id':_0x180399['params']['id']}},_0x226bc6={};_0x226bc6[_0x3f85('0x2e')]=_[_0x3f85('0x31')](db['VtigerField'][_0x3f85('0x2a')]);_0x226bc6[_0x3f85('0x30')]=_[_0x3f85('0x31')](_0x180399[_0x3f85('0x30')]);_0x226bc6[_0x3f85('0x32')]=_['intersection'](_0x226bc6['model'],_0x226bc6[_0x3f85('0x30')]);_0x428d21[_0x3f85('0x33')]=_[_0x3f85('0x44')](_0x226bc6[_0x3f85('0x2e')],qs[_0x3f85('0x34')](_0x180399[_0x3f85('0x30')][_0x3f85('0x34')]));_0x428d21[_0x3f85('0x33')]=_0x428d21[_0x3f85('0x33')][_0x3f85('0x35')]?_0x428d21['attributes']:_0x226bc6[_0x3f85('0x2e')];if(_0x180399[_0x3f85('0x30')][_0x3f85('0x3e')]){_0x428d21[_0x3f85('0x45')]=[{'all':!![]}];}_0x428d21=_[_0x3f85('0x46')]({},_0x428d21,_0x180399[_0x3f85('0x3d')]);return db[_0x3f85('0x3f')][_0x3f85('0x47')](_0x428d21)['then'](handleEntityNotFound(_0xdae88c,null))['then'](respondWithResult(_0xdae88c,null))['catch'](handleError(_0xdae88c,null));};exports[_0x3f85('0x48')]=function(_0x55124e,_0x40f374){return db[_0x3f85('0x3f')][_0x3f85('0x48')](_0x55124e[_0x3f85('0x49')],{})[_0x3f85('0x23')](respondWithResult(_0x40f374,0xc9))[_0x3f85('0x42')](handleError(_0x40f374,null));};exports[_0x3f85('0x22')]=function(_0x201cbc,_0x751d9f){if(_0x201cbc[_0x3f85('0x49')]['id']){delete _0x201cbc[_0x3f85('0x49')]['id'];}return db[_0x3f85('0x3f')][_0x3f85('0x47')]({'where':{'id':_0x201cbc[_0x3f85('0x4a')]['id']}})[_0x3f85('0x23')](handleEntityNotFound(_0x751d9f,null))[_0x3f85('0x23')](saveUpdates(_0x201cbc[_0x3f85('0x49')],null))['then'](respondWithResult(_0x751d9f,null))[_0x3f85('0x42')](handleError(_0x751d9f,null));};exports['destroy']=function(_0xcd64a2,_0x3a2e98){return db[_0x3f85('0x3f')][_0x3f85('0x47')]({'where':{'id':_0xcd64a2[_0x3f85('0x4a')]['id']}})[_0x3f85('0x23')](handleEntityNotFound(_0x3a2e98,null))['then'](removeEntity(_0x3a2e98,null))[_0x3f85('0x42')](handleError(_0x3a2e98,null));};
\ No newline at end of file
+var _0xfd45=['crypto','desk.js','ioredis','../../components/parsers/qs','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','offset','undefined','count','set','json','apply','save','update','then','error','stack','name','index','map','rawAttributes','fieldName','type','model','query','attributes','intersection','fields','hasOwnProperty','nolimit','limit','order','sort','filters','pick','filter','where','VIRTUAL','options','VtigerField','includeAll','findAll','rows','catch','params','keys','length','merge','create','body','find','destroy','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash'];(function(_0xc0374e,_0x2de1fc){var _0x3cabe1=function(_0x2cfcae){while(--_0x2cfcae){_0xc0374e['push'](_0xc0374e['shift']());}};_0x3cabe1(++_0x2de1fc);}(_0xfd45,0x156));var _0x5fd4=function(_0x1da04e,_0x31024b){_0x1da04e=_0x1da04e-0x0;var _0xdd8c41=_0xfd45[_0x1da04e];return _0xdd8c41;};'use strict';var emlformat=require(_0x5fd4('0x0'));var rimraf=require(_0x5fd4('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x5fd4('0x2'));var rp=require(_0x5fd4('0x3'));var moment=require(_0x5fd4('0x4'));var BPromise=require(_0x5fd4('0x5'));var Mustache=require(_0x5fd4('0x6'));var util=require(_0x5fd4('0x7'));var path=require(_0x5fd4('0x8'));var sox=require(_0x5fd4('0x9'));var csv=require(_0x5fd4('0xa'));var ejs=require(_0x5fd4('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x5fd4('0xc'));var squel=require('squel');var crypto=require(_0x5fd4('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x5fd4('0xe'));var toCsv=require(_0x5fd4('0xa'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0x5fd4('0xf'));var authService=require('../../components/auth/service');var qs=require(_0x5fd4('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x5fd4('0x11'));var logger=require('../../config/logger')(_0x5fd4('0x12'));var utils=require(_0x5fd4('0x13'));var config=require(_0x5fd4('0x14'));var licenseUtil=require(_0x5fd4('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x2739a6,_0x52fa31){_0x52fa31=_0x52fa31||0xcc;return function(_0x54ebaf){if(_0x54ebaf){return _0x2739a6[_0x5fd4('0x16')](_0x52fa31);}return _0x2739a6[_0x5fd4('0x17')](_0x52fa31)[_0x5fd4('0x18')]();};}function respondWithResult(_0x2f8488,_0x588b77){_0x588b77=_0x588b77||0xc8;return function(_0x230e5e){if(_0x230e5e){return _0x2f8488['status'](_0x588b77)['json'](_0x230e5e);}};}function respondWithFilteredResult(_0x1a4269,_0x1b6470){return function(_0xd93780){if(_0xd93780){var _0x500110=typeof _0x1b6470[_0x5fd4('0x19')]===_0x5fd4('0x1a')&&typeof _0x1b6470['limit']===_0x5fd4('0x1a');var _0x37362e=_0xd93780[_0x5fd4('0x1b')];var _0x4f1e72=_0x500110?0x0:_0x1b6470[_0x5fd4('0x19')];var _0x4b3eca=_0x500110?_0xd93780['count']:_0x1b6470[_0x5fd4('0x19')]+_0x1b6470['limit'];var _0x31b1c8;if(_0x4b3eca>=_0x37362e){_0x4b3eca=_0x37362e;_0x31b1c8=0xc8;}else{_0x31b1c8=0xce;}_0x1a4269['status'](_0x31b1c8);return _0x1a4269[_0x5fd4('0x1c')]('Content-Range',_0x4f1e72+'-'+_0x4b3eca+'/'+_0x37362e)[_0x5fd4('0x1d')](_0xd93780);}return null;};}function patchUpdates(_0x44c597){return function(_0x29c9ae){try{jsonpatch[_0x5fd4('0x1e')](_0x29c9ae,_0x44c597,!![]);}catch(_0x3e7fd2){return BPromise['reject'](_0x3e7fd2);}return _0x29c9ae[_0x5fd4('0x1f')]();};}function saveUpdates(_0x4c6e1f,_0x149eab){return function(_0x40ce24){if(_0x40ce24){return _0x40ce24[_0x5fd4('0x20')](_0x4c6e1f)[_0x5fd4('0x21')](function(_0x2e71ad){return _0x2e71ad;});}return null;};}function removeEntity(_0x48e017,_0x473d07){return function(_0x48a75b){if(_0x48a75b){return _0x48a75b['destroy']()['then'](function(){_0x48e017[_0x5fd4('0x17')](0xcc)[_0x5fd4('0x18')]();});}};}function handleEntityNotFound(_0xde6714,_0x1e1af5){return function(_0x48a387){if(!_0x48a387){_0xde6714[_0x5fd4('0x16')](0x194);}return _0x48a387;};}function handleError(_0x526df0,_0x5cab07){_0x5cab07=_0x5cab07||0x1f4;return function(_0xeae3d9){logger[_0x5fd4('0x22')](_0xeae3d9[_0x5fd4('0x23')]);if(_0xeae3d9[_0x5fd4('0x24')]){delete _0xeae3d9[_0x5fd4('0x24')];}_0x526df0[_0x5fd4('0x17')](_0x5cab07)['send'](_0xeae3d9);};}exports[_0x5fd4('0x25')]=function(_0x1049b8,_0x5c961f){var _0x35ace0={},_0x138a97={},_0x4fdd3e={'count':0x0,'rows':[]};var _0x3d7699=_[_0x5fd4('0x26')](db['VtigerField'][_0x5fd4('0x27')],function(_0x50215c){return{'name':_0x50215c[_0x5fd4('0x28')],'type':_0x50215c[_0x5fd4('0x29')]['key']};});_0x138a97[_0x5fd4('0x2a')]=_[_0x5fd4('0x26')](_0x3d7699,_0x5fd4('0x24'));_0x138a97['query']=_['keys'](_0x1049b8[_0x5fd4('0x2b')]);_0x138a97['filters']=_['intersection'](_0x138a97[_0x5fd4('0x2a')],_0x138a97[_0x5fd4('0x2b')]);_0x35ace0[_0x5fd4('0x2c')]=_[_0x5fd4('0x2d')](_0x138a97['model'],qs['fields'](_0x1049b8[_0x5fd4('0x2b')][_0x5fd4('0x2e')]));_0x35ace0['attributes']=_0x35ace0[_0x5fd4('0x2c')]['length']?_0x35ace0[_0x5fd4('0x2c')]:_0x138a97[_0x5fd4('0x2a')];if(!_0x1049b8['query'][_0x5fd4('0x2f')](_0x5fd4('0x30'))){_0x35ace0[_0x5fd4('0x31')]=qs[_0x5fd4('0x31')](_0x1049b8[_0x5fd4('0x2b')][_0x5fd4('0x31')]);_0x35ace0['offset']=qs[_0x5fd4('0x19')](_0x1049b8[_0x5fd4('0x2b')][_0x5fd4('0x19')]);}_0x35ace0[_0x5fd4('0x32')]=qs[_0x5fd4('0x33')](_0x1049b8[_0x5fd4('0x2b')][_0x5fd4('0x33')]);_0x35ace0['where']=qs[_0x5fd4('0x34')](_[_0x5fd4('0x35')](_0x1049b8[_0x5fd4('0x2b')],_0x138a97[_0x5fd4('0x34')]),_0x3d7699);if(_0x1049b8[_0x5fd4('0x2b')][_0x5fd4('0x36')]){_0x35ace0[_0x5fd4('0x37')]=_['merge'](_0x35ace0[_0x5fd4('0x37')],{'$or':_[_0x5fd4('0x26')](_0x3d7699,function(_0x2cf57f){if(_0x2cf57f['type']!==_0x5fd4('0x38')){var _0x3a8042={};_0x3a8042[_0x2cf57f[_0x5fd4('0x24')]]={'$like':'%'+_0x1049b8[_0x5fd4('0x2b')]['filter']+'%'};return _0x3a8042;}})});}_0x35ace0=_['merge']({},_0x35ace0,_0x1049b8[_0x5fd4('0x39')]);var _0x414176={'where':_0x35ace0['where']};return db[_0x5fd4('0x3a')][_0x5fd4('0x1b')](_0x414176)[_0x5fd4('0x21')](function(_0x5ac00a){_0x4fdd3e['count']=_0x5ac00a;if(_0x1049b8[_0x5fd4('0x2b')][_0x5fd4('0x3b')]){_0x35ace0['include']=[{'all':!![]}];}return db['VtigerField'][_0x5fd4('0x3c')](_0x35ace0);})[_0x5fd4('0x21')](function(_0x1992d9){_0x4fdd3e[_0x5fd4('0x3d')]=_0x1992d9;return _0x4fdd3e;})[_0x5fd4('0x21')](respondWithFilteredResult(_0x5c961f,_0x35ace0))[_0x5fd4('0x3e')](handleError(_0x5c961f,null));};exports['show']=function(_0x32276d,_0x50a1f2){var _0x53ec27={'raw':!![],'where':{'id':_0x32276d[_0x5fd4('0x3f')]['id']}},_0x4b6c13={};_0x4b6c13[_0x5fd4('0x2a')]=_[_0x5fd4('0x40')](db[_0x5fd4('0x3a')][_0x5fd4('0x27')]);_0x4b6c13['query']=_['keys'](_0x32276d[_0x5fd4('0x2b')]);_0x4b6c13['filters']=_[_0x5fd4('0x2d')](_0x4b6c13['model'],_0x4b6c13['query']);_0x53ec27[_0x5fd4('0x2c')]=_[_0x5fd4('0x2d')](_0x4b6c13['model'],qs[_0x5fd4('0x2e')](_0x32276d[_0x5fd4('0x2b')][_0x5fd4('0x2e')]));_0x53ec27[_0x5fd4('0x2c')]=_0x53ec27[_0x5fd4('0x2c')][_0x5fd4('0x41')]?_0x53ec27[_0x5fd4('0x2c')]:_0x4b6c13[_0x5fd4('0x2a')];if(_0x32276d[_0x5fd4('0x2b')][_0x5fd4('0x3b')]){_0x53ec27['include']=[{'all':!![]}];}_0x53ec27=_[_0x5fd4('0x42')]({},_0x53ec27,_0x32276d['options']);return db['VtigerField']['find'](_0x53ec27)[_0x5fd4('0x21')](handleEntityNotFound(_0x50a1f2,null))[_0x5fd4('0x21')](respondWithResult(_0x50a1f2,null))[_0x5fd4('0x3e')](handleError(_0x50a1f2,null));};exports[_0x5fd4('0x43')]=function(_0x2dbb29,_0x39aeb5){return db[_0x5fd4('0x3a')]['create'](_0x2dbb29[_0x5fd4('0x44')],{})[_0x5fd4('0x21')](respondWithResult(_0x39aeb5,0xc9))[_0x5fd4('0x3e')](handleError(_0x39aeb5,null));};exports['update']=function(_0x57b243,_0x445e7a){if(_0x57b243[_0x5fd4('0x44')]['id']){delete _0x57b243[_0x5fd4('0x44')]['id'];}return db['VtigerField'][_0x5fd4('0x45')]({'where':{'id':_0x57b243[_0x5fd4('0x3f')]['id']}})[_0x5fd4('0x21')](handleEntityNotFound(_0x445e7a,null))['then'](saveUpdates(_0x57b243['body'],null))[_0x5fd4('0x21')](respondWithResult(_0x445e7a,null))['catch'](handleError(_0x445e7a,null));};exports[_0x5fd4('0x46')]=function(_0x2dd149,_0x4937a){return db['VtigerField'][_0x5fd4('0x45')]({'where':{'id':_0x2dd149[_0x5fd4('0x3f')]['id']}})[_0x5fd4('0x21')](handleEntityNotFound(_0x4937a,null))['then'](removeEntity(_0x4937a,null))['catch'](handleError(_0x4937a,null));};
\ No newline at end of file