Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.controller.js
index c2e0de5..9635fd6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9dbf=['status','json','offset','undefined','count','limit','set','Content-Range','apply','reject','save','update','then','destroy','end','error','stack','name','send','index','map','Dynamics365Field','fieldName','type','key','model','keys','query','filters','intersection','fields','attributes','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge','VIRTUAL','options','includeAll','include','show','params','rawAttributes','length','find','catch','body','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus'];(function(_0x135c17,_0x1188b2){var _0x2546b0=function(_0x23a1f9){while(--_0x23a1f9){_0x135c17['push'](_0x135c17['shift']());}};_0x2546b0(++_0x1188b2);}(_0x9dbf,0x123));var _0xf9db=function(_0x45c18d,_0x21bf1e){_0x45c18d=_0x45c18d-0x0;var _0x29dd6d=_0x9dbf[_0x45c18d];return _0x29dd6d;};'use strict';var emlformat=require(_0xf9db('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xf9db('0x1'));var jsonpatch=require(_0xf9db('0x2'));var rp=require(_0xf9db('0x3'));var moment=require('moment');var BPromise=require(_0xf9db('0x4'));var Mustache=require(_0xf9db('0x5'));var util=require(_0xf9db('0x6'));var path=require(_0xf9db('0x7'));var sox=require(_0xf9db('0x8'));var csv=require(_0xf9db('0x9'));var ejs=require(_0xf9db('0xa'));var fs=require('fs');var fs_extra=require(_0xf9db('0xb'));var _=require(_0xf9db('0xc'));var squel=require(_0xf9db('0xd'));var crypto=require(_0xf9db('0xe'));var jsforce=require(_0xf9db('0xf'));var deskjs=require(_0xf9db('0x10'));var toCsv=require(_0xf9db('0x9'));var querystring=require(_0xf9db('0x11'));var Papa=require('papaparse');var Redis=require(_0xf9db('0x12'));var authService=require(_0xf9db('0x13'));var qs=require(_0xf9db('0x14'));var as=require(_0xf9db('0x15'));var hardwareService=require(_0xf9db('0x16'));var logger=require(_0xf9db('0x17'))(_0xf9db('0x18'));var utils=require('../../config/utils');var config=require(_0xf9db('0x19'));var licenseUtil=require(_0xf9db('0x1a'));var db=require(_0xf9db('0x1b'))['db'];function respondWithStatusCode(_0x79a72c,_0x388b16){_0x388b16=_0x388b16||0xcc;return function(_0x1be991){if(_0x1be991){return _0x79a72c[_0xf9db('0x1c')](_0x388b16);}return _0x79a72c[_0xf9db('0x1d')](_0x388b16)['end']();};}function respondWithResult(_0x1bad50,_0x26748c){_0x26748c=_0x26748c||0xc8;return function(_0x66f171){if(_0x66f171){return _0x1bad50[_0xf9db('0x1d')](_0x26748c)[_0xf9db('0x1e')](_0x66f171);}};}function respondWithFilteredResult(_0x22286e,_0x527e6e){return function(_0x4400e9){if(_0x4400e9){var _0xd5f476=typeof _0x527e6e[_0xf9db('0x1f')]===_0xf9db('0x20')&&typeof _0x527e6e['limit']===_0xf9db('0x20');var _0x3535d6=_0x4400e9[_0xf9db('0x21')];var _0x2e3ea8=_0xd5f476?0x0:_0x527e6e['offset'];var _0x47cbe6=_0xd5f476?_0x4400e9[_0xf9db('0x21')]:_0x527e6e[_0xf9db('0x1f')]+_0x527e6e[_0xf9db('0x22')];var _0x5a62ac;if(_0x47cbe6>=_0x3535d6){_0x47cbe6=_0x3535d6;_0x5a62ac=0xc8;}else{_0x5a62ac=0xce;}_0x22286e['status'](_0x5a62ac);return _0x22286e[_0xf9db('0x23')](_0xf9db('0x24'),_0x2e3ea8+'-'+_0x47cbe6+'/'+_0x3535d6)['json'](_0x4400e9);}return null;};}function patchUpdates(_0x47623c){return function(_0x3a22d9){try{jsonpatch[_0xf9db('0x25')](_0x3a22d9,_0x47623c,!![]);}catch(_0x564e5e){return BPromise[_0xf9db('0x26')](_0x564e5e);}return _0x3a22d9[_0xf9db('0x27')]();};}function saveUpdates(_0x52911f,_0x93b1b4){return function(_0x561a36){if(_0x561a36){return _0x561a36[_0xf9db('0x28')](_0x52911f)[_0xf9db('0x29')](function(_0x3ca351){return _0x3ca351;});}return null;};}function removeEntity(_0xff84d9,_0x56ac56){return function(_0xaf3760){if(_0xaf3760){return _0xaf3760[_0xf9db('0x2a')]()[_0xf9db('0x29')](function(){_0xff84d9[_0xf9db('0x1d')](0xcc)[_0xf9db('0x2b')]();});}};}function handleEntityNotFound(_0x18d601,_0x4f6bd2){return function(_0x48225c){if(!_0x48225c){_0x18d601[_0xf9db('0x1c')](0x194);}return _0x48225c;};}function handleError(_0x4d0a85,_0x15cee9){_0x15cee9=_0x15cee9||0x1f4;return function(_0x4f2089){logger[_0xf9db('0x2c')](_0x4f2089[_0xf9db('0x2d')]);if(_0x4f2089[_0xf9db('0x2e')]){delete _0x4f2089[_0xf9db('0x2e')];}_0x4d0a85[_0xf9db('0x1d')](_0x15cee9)[_0xf9db('0x2f')](_0x4f2089);};}exports[_0xf9db('0x30')]=function(_0x12094f,_0x3780c1){var _0x3e41da={},_0x235f3d={},_0x36d53b={'count':0x0,'rows':[]};var _0x13efc4=_[_0xf9db('0x31')](db[_0xf9db('0x32')]['rawAttributes'],function(_0x159492){return{'name':_0x159492[_0xf9db('0x33')],'type':_0x159492[_0xf9db('0x34')][_0xf9db('0x35')]};});_0x235f3d[_0xf9db('0x36')]=_[_0xf9db('0x31')](_0x13efc4,_0xf9db('0x2e'));_0x235f3d['query']=_[_0xf9db('0x37')](_0x12094f[_0xf9db('0x38')]);_0x235f3d[_0xf9db('0x39')]=_[_0xf9db('0x3a')](_0x235f3d[_0xf9db('0x36')],_0x235f3d['query']);_0x3e41da['attributes']=_[_0xf9db('0x3a')](_0x235f3d[_0xf9db('0x36')],qs['fields'](_0x12094f['query'][_0xf9db('0x3b')]));_0x3e41da[_0xf9db('0x3c')]=_0x3e41da['attributes']['length']?_0x3e41da[_0xf9db('0x3c')]:_0x235f3d[_0xf9db('0x36')];if(!_0x12094f['query'][_0xf9db('0x3d')](_0xf9db('0x3e'))){_0x3e41da['limit']=qs[_0xf9db('0x22')](_0x12094f['query'][_0xf9db('0x22')]);_0x3e41da['offset']=qs['offset'](_0x12094f[_0xf9db('0x38')][_0xf9db('0x1f')]);}_0x3e41da[_0xf9db('0x3f')]=qs[_0xf9db('0x40')](_0x12094f[_0xf9db('0x38')][_0xf9db('0x40')]);_0x3e41da['where']=qs[_0xf9db('0x39')](_[_0xf9db('0x41')](_0x12094f[_0xf9db('0x38')],_0x235f3d[_0xf9db('0x39')]),_0x13efc4);if(_0x12094f[_0xf9db('0x38')][_0xf9db('0x42')]){_0x3e41da[_0xf9db('0x43')]=_[_0xf9db('0x44')](_0x3e41da[_0xf9db('0x43')],{'$or':_[_0xf9db('0x31')](_0x13efc4,function(_0x5ac832){if(_0x5ac832[_0xf9db('0x34')]!==_0xf9db('0x45')){var _0x2f702e={};_0x2f702e[_0x5ac832[_0xf9db('0x2e')]]={'$like':'%'+_0x12094f['query'][_0xf9db('0x42')]+'%'};return _0x2f702e;}})});}_0x3e41da=_['merge']({},_0x3e41da,_0x12094f[_0xf9db('0x46')]);var _0x1ab701={'where':_0x3e41da[_0xf9db('0x43')]};return db[_0xf9db('0x32')][_0xf9db('0x21')](_0x1ab701)[_0xf9db('0x29')](function(_0x217f47){_0x36d53b[_0xf9db('0x21')]=_0x217f47;if(_0x12094f['query'][_0xf9db('0x47')]){_0x3e41da[_0xf9db('0x48')]=[{'all':!![]}];}return db[_0xf9db('0x32')]['findAll'](_0x3e41da);})[_0xf9db('0x29')](function(_0x25e0ab){_0x36d53b['rows']=_0x25e0ab;return _0x36d53b;})[_0xf9db('0x29')](respondWithFilteredResult(_0x3780c1,_0x3e41da))['catch'](handleError(_0x3780c1,null));};exports[_0xf9db('0x49')]=function(_0x171fda,_0x5e5c17){var _0x6518b2={'raw':!![],'where':{'id':_0x171fda[_0xf9db('0x4a')]['id']}},_0x4378e5={};_0x4378e5['model']=_[_0xf9db('0x37')](db[_0xf9db('0x32')][_0xf9db('0x4b')]);_0x4378e5[_0xf9db('0x38')]=_['keys'](_0x171fda[_0xf9db('0x38')]);_0x4378e5[_0xf9db('0x39')]=_[_0xf9db('0x3a')](_0x4378e5[_0xf9db('0x36')],_0x4378e5[_0xf9db('0x38')]);_0x6518b2[_0xf9db('0x3c')]=_[_0xf9db('0x3a')](_0x4378e5[_0xf9db('0x36')],qs['fields'](_0x171fda[_0xf9db('0x38')][_0xf9db('0x3b')]));_0x6518b2[_0xf9db('0x3c')]=_0x6518b2[_0xf9db('0x3c')][_0xf9db('0x4c')]?_0x6518b2['attributes']:_0x4378e5[_0xf9db('0x36')];if(_0x171fda[_0xf9db('0x38')]['includeAll']){_0x6518b2[_0xf9db('0x48')]=[{'all':!![]}];}_0x6518b2=_[_0xf9db('0x44')]({},_0x6518b2,_0x171fda[_0xf9db('0x46')]);return db[_0xf9db('0x32')][_0xf9db('0x4d')](_0x6518b2)[_0xf9db('0x29')](handleEntityNotFound(_0x5e5c17,null))[_0xf9db('0x29')](respondWithResult(_0x5e5c17,null))[_0xf9db('0x4e')](handleError(_0x5e5c17,null));};exports['create']=function(_0x49dafc,_0x1e2bf0){return db[_0xf9db('0x32')]['create'](_0x49dafc[_0xf9db('0x4f')],{})[_0xf9db('0x29')](respondWithResult(_0x1e2bf0,0xc9))['catch'](handleError(_0x1e2bf0,null));};exports['update']=function(_0x1624f4,_0x4c719e){if(_0x1624f4['body']['id']){delete _0x1624f4[_0xf9db('0x4f')]['id'];}return db[_0xf9db('0x32')][_0xf9db('0x4d')]({'where':{'id':_0x1624f4[_0xf9db('0x4a')]['id']}})[_0xf9db('0x29')](handleEntityNotFound(_0x4c719e,null))['then'](saveUpdates(_0x1624f4[_0xf9db('0x4f')],null))[_0xf9db('0x29')](respondWithResult(_0x4c719e,null))[_0xf9db('0x4e')](handleError(_0x4c719e,null));};exports[_0xf9db('0x2a')]=function(_0x45cdd4,_0x5389c4){return db[_0xf9db('0x32')][_0xf9db('0x4d')]({'where':{'id':_0x45cdd4['params']['id']}})[_0xf9db('0x29')](handleEntityNotFound(_0x5389c4,null))['then'](removeEntity(_0x5389c4,null))[_0xf9db('0x4e')](handleError(_0x5389c4,null));};
\ No newline at end of file
+var _0xeba2=['querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject','update','destroy','then','sendStatus','error','name','send','index','map','Dynamics365Field','rawAttributes','fieldName','type','model','query','keys','filters','intersection','attributes','length','hasOwnProperty','order','sort','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','params','fields','find','catch','create','body','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','path','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','desk.js'];(function(_0x242f06,_0x563e27){var _0x414fee=function(_0x2520be){while(--_0x2520be){_0x242f06['push'](_0x242f06['shift']());}};_0x414fee(++_0x563e27);}(_0xeba2,0x16d));var _0x2eba=function(_0x2f37e0,_0x393ef9){_0x2f37e0=_0x2f37e0-0x0;var _0x43ccce=_0xeba2[_0x2f37e0];return _0x43ccce;};'use strict';var emlformat=require(_0x2eba('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x2eba('0x1'));var jsonpatch=require(_0x2eba('0x2'));var rp=require(_0x2eba('0x3'));var moment=require('moment');var BPromise=require(_0x2eba('0x4'));var Mustache=require(_0x2eba('0x5'));var util=require('util');var path=require(_0x2eba('0x6'));var sox=require(_0x2eba('0x7'));var csv=require(_0x2eba('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x2eba('0x9'));var _=require(_0x2eba('0xa'));var squel=require(_0x2eba('0xb'));var crypto=require(_0x2eba('0xc'));var jsforce=require(_0x2eba('0xd'));var deskjs=require(_0x2eba('0xe'));var toCsv=require(_0x2eba('0x8'));var querystring=require(_0x2eba('0xf'));var Papa=require(_0x2eba('0x10'));var Redis=require(_0x2eba('0x11'));var authService=require(_0x2eba('0x12'));var qs=require(_0x2eba('0x13'));var as=require(_0x2eba('0x14'));var hardwareService=require(_0x2eba('0x15'));var logger=require(_0x2eba('0x16'))(_0x2eba('0x17'));var utils=require('../../config/utils');var config=require(_0x2eba('0x18'));var licenseUtil=require(_0x2eba('0x19'));var db=require(_0x2eba('0x1a'))['db'];function respondWithStatusCode(_0x47c14f,_0x99d6d){_0x99d6d=_0x99d6d||0xcc;return function(_0x7f8484){if(_0x7f8484){return _0x47c14f['sendStatus'](_0x99d6d);}return _0x47c14f[_0x2eba('0x1b')](_0x99d6d)['end']();};}function respondWithResult(_0x13c7a7,_0x5bae67){_0x5bae67=_0x5bae67||0xc8;return function(_0x160c91){if(_0x160c91){return _0x13c7a7['status'](_0x5bae67)[_0x2eba('0x1c')](_0x160c91);}};}function respondWithFilteredResult(_0x46ada7,_0x5ad5b6){return function(_0x6bcdc6){if(_0x6bcdc6){var _0x44b4e7=typeof _0x5ad5b6['offset']===_0x2eba('0x1d')&&typeof _0x5ad5b6[_0x2eba('0x1e')]===_0x2eba('0x1d');var _0x5142d1=_0x6bcdc6[_0x2eba('0x1f')];var _0x1731f7=_0x44b4e7?0x0:_0x5ad5b6['offset'];var _0x309aed=_0x44b4e7?_0x6bcdc6[_0x2eba('0x1f')]:_0x5ad5b6[_0x2eba('0x20')]+_0x5ad5b6['limit'];var _0x50a992;if(_0x309aed>=_0x5142d1){_0x309aed=_0x5142d1;_0x50a992=0xc8;}else{_0x50a992=0xce;}_0x46ada7[_0x2eba('0x1b')](_0x50a992);return _0x46ada7[_0x2eba('0x21')](_0x2eba('0x22'),_0x1731f7+'-'+_0x309aed+'/'+_0x5142d1)['json'](_0x6bcdc6);}return null;};}function patchUpdates(_0xd38b06){return function(_0x23d56a){try{jsonpatch[_0x2eba('0x23')](_0x23d56a,_0xd38b06,!![]);}catch(_0x4d7290){return BPromise[_0x2eba('0x24')](_0x4d7290);}return _0x23d56a['save']();};}function saveUpdates(_0x284ae4,_0x724a49){return function(_0x43959f){if(_0x43959f){return _0x43959f[_0x2eba('0x25')](_0x284ae4)['then'](function(_0xb0e28f){return _0xb0e28f;});}return null;};}function removeEntity(_0x5a139d,_0x4346c2){return function(_0x14d278){if(_0x14d278){return _0x14d278[_0x2eba('0x26')]()[_0x2eba('0x27')](function(){_0x5a139d[_0x2eba('0x1b')](0xcc)['end']();});}};}function handleEntityNotFound(_0x46a29c,_0xeaab31){return function(_0x5bd6ae){if(!_0x5bd6ae){_0x46a29c[_0x2eba('0x28')](0x194);}return _0x5bd6ae;};}function handleError(_0x143f04,_0x19b68d){_0x19b68d=_0x19b68d||0x1f4;return function(_0x4b90a2){logger[_0x2eba('0x29')](_0x4b90a2['stack']);if(_0x4b90a2[_0x2eba('0x2a')]){delete _0x4b90a2[_0x2eba('0x2a')];}_0x143f04['status'](_0x19b68d)[_0x2eba('0x2b')](_0x4b90a2);};}exports[_0x2eba('0x2c')]=function(_0x5316f5,_0x18ee0d){var _0x57d22c={},_0x266b1e={},_0x1107bc={'count':0x0,'rows':[]};var _0xa268fe=_[_0x2eba('0x2d')](db[_0x2eba('0x2e')][_0x2eba('0x2f')],function(_0x51029a){return{'name':_0x51029a[_0x2eba('0x30')],'type':_0x51029a[_0x2eba('0x31')]['key']};});_0x266b1e[_0x2eba('0x32')]=_[_0x2eba('0x2d')](_0xa268fe,_0x2eba('0x2a'));_0x266b1e[_0x2eba('0x33')]=_[_0x2eba('0x34')](_0x5316f5[_0x2eba('0x33')]);_0x266b1e[_0x2eba('0x35')]=_[_0x2eba('0x36')](_0x266b1e[_0x2eba('0x32')],_0x266b1e[_0x2eba('0x33')]);_0x57d22c[_0x2eba('0x37')]=_['intersection'](_0x266b1e[_0x2eba('0x32')],qs['fields'](_0x5316f5[_0x2eba('0x33')]['fields']));_0x57d22c['attributes']=_0x57d22c[_0x2eba('0x37')][_0x2eba('0x38')]?_0x57d22c[_0x2eba('0x37')]:_0x266b1e['model'];if(!_0x5316f5['query'][_0x2eba('0x39')]('nolimit')){_0x57d22c[_0x2eba('0x1e')]=qs[_0x2eba('0x1e')](_0x5316f5[_0x2eba('0x33')][_0x2eba('0x1e')]);_0x57d22c['offset']=qs[_0x2eba('0x20')](_0x5316f5[_0x2eba('0x33')]['offset']);}_0x57d22c[_0x2eba('0x3a')]=qs[_0x2eba('0x3b')](_0x5316f5[_0x2eba('0x33')][_0x2eba('0x3b')]);_0x57d22c['where']=qs['filters'](_['pick'](_0x5316f5[_0x2eba('0x33')],_0x266b1e[_0x2eba('0x35')]),_0xa268fe);if(_0x5316f5[_0x2eba('0x33')][_0x2eba('0x3c')]){_0x57d22c[_0x2eba('0x3d')]=_[_0x2eba('0x3e')](_0x57d22c['where'],{'$or':_['map'](_0xa268fe,function(_0xfd90c0){if(_0xfd90c0[_0x2eba('0x31')]!==_0x2eba('0x3f')){var _0x4b28b4={};_0x4b28b4[_0xfd90c0['name']]={'$like':'%'+_0x5316f5[_0x2eba('0x33')]['filter']+'%'};return _0x4b28b4;}})});}_0x57d22c=_[_0x2eba('0x3e')]({},_0x57d22c,_0x5316f5[_0x2eba('0x40')]);var _0xdb1f87={'where':_0x57d22c[_0x2eba('0x3d')]};return db[_0x2eba('0x2e')][_0x2eba('0x1f')](_0xdb1f87)[_0x2eba('0x27')](function(_0x3fbbd7){_0x1107bc[_0x2eba('0x1f')]=_0x3fbbd7;if(_0x5316f5['query'][_0x2eba('0x41')]){_0x57d22c[_0x2eba('0x42')]=[{'all':!![]}];}return db['Dynamics365Field'][_0x2eba('0x43')](_0x57d22c);})[_0x2eba('0x27')](function(_0x12f7f1){_0x1107bc[_0x2eba('0x44')]=_0x12f7f1;return _0x1107bc;})[_0x2eba('0x27')](respondWithFilteredResult(_0x18ee0d,_0x57d22c))['catch'](handleError(_0x18ee0d,null));};exports[_0x2eba('0x45')]=function(_0x1588f7,_0x5c5dd7){var _0xa52493={'raw':!![],'where':{'id':_0x1588f7[_0x2eba('0x46')]['id']}},_0x393078={};_0x393078[_0x2eba('0x32')]=_[_0x2eba('0x34')](db[_0x2eba('0x2e')][_0x2eba('0x2f')]);_0x393078['query']=_[_0x2eba('0x34')](_0x1588f7['query']);_0x393078[_0x2eba('0x35')]=_['intersection'](_0x393078['model'],_0x393078[_0x2eba('0x33')]);_0xa52493[_0x2eba('0x37')]=_[_0x2eba('0x36')](_0x393078[_0x2eba('0x32')],qs['fields'](_0x1588f7[_0x2eba('0x33')][_0x2eba('0x47')]));_0xa52493[_0x2eba('0x37')]=_0xa52493['attributes']['length']?_0xa52493[_0x2eba('0x37')]:_0x393078[_0x2eba('0x32')];if(_0x1588f7[_0x2eba('0x33')][_0x2eba('0x41')]){_0xa52493[_0x2eba('0x42')]=[{'all':!![]}];}_0xa52493=_['merge']({},_0xa52493,_0x1588f7[_0x2eba('0x40')]);return db[_0x2eba('0x2e')][_0x2eba('0x48')](_0xa52493)[_0x2eba('0x27')](handleEntityNotFound(_0x5c5dd7,null))['then'](respondWithResult(_0x5c5dd7,null))[_0x2eba('0x49')](handleError(_0x5c5dd7,null));};exports[_0x2eba('0x4a')]=function(_0x4527b5,_0x221f46){return db['Dynamics365Field'][_0x2eba('0x4a')](_0x4527b5[_0x2eba('0x4b')],{})['then'](respondWithResult(_0x221f46,0xc9))[_0x2eba('0x49')](handleError(_0x221f46,null));};exports[_0x2eba('0x25')]=function(_0x2e7c42,_0x33464f){if(_0x2e7c42[_0x2eba('0x4b')]['id']){delete _0x2e7c42[_0x2eba('0x4b')]['id'];}return db[_0x2eba('0x2e')][_0x2eba('0x48')]({'where':{'id':_0x2e7c42[_0x2eba('0x46')]['id']}})[_0x2eba('0x27')](handleEntityNotFound(_0x33464f,null))[_0x2eba('0x27')](saveUpdates(_0x2e7c42[_0x2eba('0x4b')],null))['then'](respondWithResult(_0x33464f,null))[_0x2eba('0x49')](handleError(_0x33464f,null));};exports[_0x2eba('0x26')]=function(_0x1ac276,_0x1feace){return db[_0x2eba('0x2e')]['find']({'where':{'id':_0x1ac276[_0x2eba('0x46')]['id']}})[_0x2eba('0x27')](handleEntityNotFound(_0x1feace,null))['then'](removeEntity(_0x1feace,null))[_0x2eba('0x49')](handleError(_0x1feace,null));};
\ No newline at end of file