Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.controller.js
index 543f227..6bf3de8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb496=['../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','undefined','limit','count','offset','Content-Range','save','then','name','send','index','map','SugarcrmField','fieldName','type','key','model','query','keys','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filters','pick','filter','merge','VIRTUAL','options','includeAll','findAll','rows','catch','show','params','rawAttributes','include','find','create','body','update','destroy','rimraf','zip-dir','request-promise','bluebird','mustache','util','path','sox','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api'];(function(_0x1fe8cd,_0x21ebd4){var _0x13ed2d=function(_0x4df507){while(--_0x4df507){_0x1fe8cd['push'](_0x1fe8cd['shift']());}};_0x13ed2d(++_0x21ebd4);}(_0xb496,0x1a5));var _0x6b49=function(_0x3adc3b,_0x595e7a){_0x3adc3b=_0x3adc3b-0x0;var _0x397532=_0xb496[_0x3adc3b];return _0x397532;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x6b49('0x0'));var zipdir=require(_0x6b49('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x6b49('0x2'));var moment=require('moment');var BPromise=require(_0x6b49('0x3'));var Mustache=require(_0x6b49('0x4'));var util=require(_0x6b49('0x5'));var path=require(_0x6b49('0x6'));var sox=require(_0x6b49('0x7'));var csv=require('to-csv');var ejs=require(_0x6b49('0x8'));var fs=require('fs');var fs_extra=require(_0x6b49('0x9'));var _=require(_0x6b49('0xa'));var squel=require(_0x6b49('0xb'));var crypto=require(_0x6b49('0xc'));var jsforce=require(_0x6b49('0xd'));var deskjs=require(_0x6b49('0xe'));var toCsv=require(_0x6b49('0xf'));var querystring=require(_0x6b49('0x10'));var Papa=require(_0x6b49('0x11'));var Redis=require(_0x6b49('0x12'));var authService=require(_0x6b49('0x13'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x6b49('0x14'));var logger=require(_0x6b49('0x15'))(_0x6b49('0x16'));var utils=require(_0x6b49('0x17'));var config=require(_0x6b49('0x18'));var licenseUtil=require(_0x6b49('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x41b7c0,_0x1f18d9){_0x1f18d9=_0x1f18d9||0xcc;return function(_0x5c91db){if(_0x5c91db){return _0x41b7c0[_0x6b49('0x1a')](_0x1f18d9);}return _0x41b7c0[_0x6b49('0x1b')](_0x1f18d9)[_0x6b49('0x1c')]();};}function respondWithResult(_0x90fd1a,_0x389983){_0x389983=_0x389983||0xc8;return function(_0x1375af){if(_0x1375af){return _0x90fd1a[_0x6b49('0x1b')](_0x389983)['json'](_0x1375af);}};}function respondWithFilteredResult(_0x31db34,_0x6d42f4){return function(_0x47fa99){if(_0x47fa99){var _0x37a4f3=typeof _0x6d42f4['offset']===_0x6b49('0x1d')&&typeof _0x6d42f4[_0x6b49('0x1e')]===_0x6b49('0x1d');var _0x3143f8=_0x47fa99[_0x6b49('0x1f')];var _0x5e58d9=_0x37a4f3?0x0:_0x6d42f4[_0x6b49('0x20')];var _0x27dff9=_0x37a4f3?_0x47fa99[_0x6b49('0x1f')]:_0x6d42f4['offset']+_0x6d42f4[_0x6b49('0x1e')];var _0x5d45a5;if(_0x27dff9>=_0x3143f8){_0x27dff9=_0x3143f8;_0x5d45a5=0xc8;}else{_0x5d45a5=0xce;}_0x31db34[_0x6b49('0x1b')](_0x5d45a5);return _0x31db34['set'](_0x6b49('0x21'),_0x5e58d9+'-'+_0x27dff9+'/'+_0x3143f8)['json'](_0x47fa99);}return null;};}function patchUpdates(_0xa483c5){return function(_0x227260){try{jsonpatch['apply'](_0x227260,_0xa483c5,!![]);}catch(_0x2770c6){return BPromise['reject'](_0x2770c6);}return _0x227260[_0x6b49('0x22')]();};}function saveUpdates(_0x5d9685,_0x15a842){return function(_0x36bb73){if(_0x36bb73){return _0x36bb73['update'](_0x5d9685)[_0x6b49('0x23')](function(_0x40c0b9){return _0x40c0b9;});}return null;};}function removeEntity(_0x3a62c3,_0x46a940){return function(_0x51c98c){if(_0x51c98c){return _0x51c98c['destroy']()[_0x6b49('0x23')](function(){_0x3a62c3[_0x6b49('0x1b')](0xcc)[_0x6b49('0x1c')]();});}};}function handleEntityNotFound(_0x2791c0,_0x50162e){return function(_0x4e5061){if(!_0x4e5061){_0x2791c0[_0x6b49('0x1a')](0x194);}return _0x4e5061;};}function handleError(_0x5b2c05,_0x139266){_0x139266=_0x139266||0x1f4;return function(_0x2996bb){logger['error'](_0x2996bb['stack']);if(_0x2996bb[_0x6b49('0x24')]){delete _0x2996bb['name'];}_0x5b2c05[_0x6b49('0x1b')](_0x139266)[_0x6b49('0x25')](_0x2996bb);};}exports[_0x6b49('0x26')]=function(_0x185354,_0x224474){var _0x226ff7={},_0x10cfcf={},_0x198e31={'count':0x0,'rows':[]};var _0x15771d=_[_0x6b49('0x27')](db[_0x6b49('0x28')]['rawAttributes'],function(_0x25c3e7){return{'name':_0x25c3e7[_0x6b49('0x29')],'type':_0x25c3e7[_0x6b49('0x2a')][_0x6b49('0x2b')]};});_0x10cfcf[_0x6b49('0x2c')]=_[_0x6b49('0x27')](_0x15771d,'name');_0x10cfcf[_0x6b49('0x2d')]=_[_0x6b49('0x2e')](_0x185354[_0x6b49('0x2d')]);_0x10cfcf['filters']=_[_0x6b49('0x2f')](_0x10cfcf[_0x6b49('0x2c')],_0x10cfcf[_0x6b49('0x2d')]);_0x226ff7[_0x6b49('0x30')]=_['intersection'](_0x10cfcf[_0x6b49('0x2c')],qs[_0x6b49('0x31')](_0x185354[_0x6b49('0x2d')]['fields']));_0x226ff7[_0x6b49('0x30')]=_0x226ff7[_0x6b49('0x30')][_0x6b49('0x32')]?_0x226ff7['attributes']:_0x10cfcf[_0x6b49('0x2c')];if(!_0x185354[_0x6b49('0x2d')][_0x6b49('0x33')](_0x6b49('0x34'))){_0x226ff7['limit']=qs['limit'](_0x185354[_0x6b49('0x2d')][_0x6b49('0x1e')]);_0x226ff7['offset']=qs['offset'](_0x185354[_0x6b49('0x2d')][_0x6b49('0x20')]);}_0x226ff7['order']=qs[_0x6b49('0x35')](_0x185354[_0x6b49('0x2d')][_0x6b49('0x35')]);_0x226ff7[_0x6b49('0x36')]=qs[_0x6b49('0x37')](_[_0x6b49('0x38')](_0x185354[_0x6b49('0x2d')],_0x10cfcf[_0x6b49('0x37')]),_0x15771d);if(_0x185354[_0x6b49('0x2d')][_0x6b49('0x39')]){_0x226ff7[_0x6b49('0x36')]=_[_0x6b49('0x3a')](_0x226ff7[_0x6b49('0x36')],{'$or':_[_0x6b49('0x27')](_0x15771d,function(_0x415b06){if(_0x415b06[_0x6b49('0x2a')]!==_0x6b49('0x3b')){var _0x28b6a5={};_0x28b6a5[_0x415b06[_0x6b49('0x24')]]={'$like':'%'+_0x185354[_0x6b49('0x2d')][_0x6b49('0x39')]+'%'};return _0x28b6a5;}})});}_0x226ff7=_[_0x6b49('0x3a')]({},_0x226ff7,_0x185354[_0x6b49('0x3c')]);var _0x5c392e={'where':_0x226ff7[_0x6b49('0x36')]};return db[_0x6b49('0x28')][_0x6b49('0x1f')](_0x5c392e)[_0x6b49('0x23')](function(_0x4bdfc7){_0x198e31[_0x6b49('0x1f')]=_0x4bdfc7;if(_0x185354[_0x6b49('0x2d')][_0x6b49('0x3d')]){_0x226ff7['include']=[{'all':!![]}];}return db[_0x6b49('0x28')][_0x6b49('0x3e')](_0x226ff7);})[_0x6b49('0x23')](function(_0x43023c){_0x198e31[_0x6b49('0x3f')]=_0x43023c;return _0x198e31;})[_0x6b49('0x23')](respondWithFilteredResult(_0x224474,_0x226ff7))[_0x6b49('0x40')](handleError(_0x224474,null));};exports[_0x6b49('0x41')]=function(_0x24656e,_0x4b3651){var _0x4ead8b={'raw':!![],'where':{'id':_0x24656e[_0x6b49('0x42')]['id']}},_0x12fbb1={};_0x12fbb1[_0x6b49('0x2c')]=_[_0x6b49('0x2e')](db[_0x6b49('0x28')][_0x6b49('0x43')]);_0x12fbb1[_0x6b49('0x2d')]=_[_0x6b49('0x2e')](_0x24656e[_0x6b49('0x2d')]);_0x12fbb1[_0x6b49('0x37')]=_[_0x6b49('0x2f')](_0x12fbb1['model'],_0x12fbb1[_0x6b49('0x2d')]);_0x4ead8b[_0x6b49('0x30')]=_[_0x6b49('0x2f')](_0x12fbb1[_0x6b49('0x2c')],qs[_0x6b49('0x31')](_0x24656e[_0x6b49('0x2d')]['fields']));_0x4ead8b['attributes']=_0x4ead8b['attributes'][_0x6b49('0x32')]?_0x4ead8b['attributes']:_0x12fbb1[_0x6b49('0x2c')];if(_0x24656e[_0x6b49('0x2d')][_0x6b49('0x3d')]){_0x4ead8b[_0x6b49('0x44')]=[{'all':!![]}];}_0x4ead8b=_[_0x6b49('0x3a')]({},_0x4ead8b,_0x24656e[_0x6b49('0x3c')]);return db['SugarcrmField'][_0x6b49('0x45')](_0x4ead8b)[_0x6b49('0x23')](handleEntityNotFound(_0x4b3651,null))[_0x6b49('0x23')](respondWithResult(_0x4b3651,null))[_0x6b49('0x40')](handleError(_0x4b3651,null));};exports[_0x6b49('0x46')]=function(_0x294196,_0x337077){return db[_0x6b49('0x28')][_0x6b49('0x46')](_0x294196[_0x6b49('0x47')],{})[_0x6b49('0x23')](respondWithResult(_0x337077,0xc9))[_0x6b49('0x40')](handleError(_0x337077,null));};exports[_0x6b49('0x48')]=function(_0xdb769f,_0x3b9662){if(_0xdb769f['body']['id']){delete _0xdb769f[_0x6b49('0x47')]['id'];}return db[_0x6b49('0x28')][_0x6b49('0x45')]({'where':{'id':_0xdb769f[_0x6b49('0x42')]['id']}})['then'](handleEntityNotFound(_0x3b9662,null))['then'](saveUpdates(_0xdb769f['body'],null))[_0x6b49('0x23')](respondWithResult(_0x3b9662,null))['catch'](handleError(_0x3b9662,null));};exports[_0x6b49('0x49')]=function(_0x5c94b1,_0xed6790){return db[_0x6b49('0x28')][_0x6b49('0x45')]({'where':{'id':_0x5c94b1[_0x6b49('0x42')]['id']}})[_0x6b49('0x23')](handleEntityNotFound(_0xed6790,null))[_0x6b49('0x23')](removeEntity(_0xed6790,null))[_0x6b49('0x40')](handleError(_0xed6790,null));};
\ No newline at end of file
+var _0x1ec6=['path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','end','status','json','offset','limit','undefined','count','set','Content-Range','apply','reject','save','then','destroy','error','stack','name','index','map','SugarcrmField','fieldName','model','query','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','pick','where','merge','type','VIRTUAL','filter','options','includeAll','include','findAll','rows','show','params','keys','find','create','catch','update','body','eml-format','rimraf','zip-dir','moment','bluebird','mustache','util'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x1ec6,0x125));var _0x61ec=function(_0x4a7145,_0x14c18b){_0x4a7145=_0x4a7145-0x0;var _0x9e46d5=_0x1ec6[_0x4a7145];return _0x9e46d5;};'use strict';var emlformat=require(_0x61ec('0x0'));var rimraf=require(_0x61ec('0x1'));var zipdir=require(_0x61ec('0x2'));var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0x61ec('0x3'));var BPromise=require(_0x61ec('0x4'));var Mustache=require(_0x61ec('0x5'));var util=require(_0x61ec('0x6'));var path=require(_0x61ec('0x7'));var sox=require(_0x61ec('0x8'));var csv=require(_0x61ec('0x9'));var ejs=require(_0x61ec('0xa'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x61ec('0xb'));var squel=require(_0x61ec('0xc'));var crypto=require(_0x61ec('0xd'));var jsforce=require(_0x61ec('0xe'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x61ec('0xf'));var Papa=require(_0x61ec('0x10'));var Redis=require('ioredis');var authService=require(_0x61ec('0x11'));var qs=require(_0x61ec('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x61ec('0x13'))(_0x61ec('0x14'));var utils=require(_0x61ec('0x15'));var config=require(_0x61ec('0x16'));var licenseUtil=require(_0x61ec('0x17'));var db=require(_0x61ec('0x18'))['db'];function respondWithStatusCode(_0x56406f,_0x2ac83a){_0x2ac83a=_0x2ac83a||0xcc;return function(_0x5cb9bc){if(_0x5cb9bc){return _0x56406f['sendStatus'](_0x2ac83a);}return _0x56406f['status'](_0x2ac83a)[_0x61ec('0x19')]();};}function respondWithResult(_0x4f75b8,_0x3de1f8){_0x3de1f8=_0x3de1f8||0xc8;return function(_0x2c0d02){if(_0x2c0d02){return _0x4f75b8[_0x61ec('0x1a')](_0x3de1f8)[_0x61ec('0x1b')](_0x2c0d02);}};}function respondWithFilteredResult(_0x39131e,_0x195fec){return function(_0x21ae4c){if(_0x21ae4c){var _0x5480d8=typeof _0x195fec[_0x61ec('0x1c')]==='undefined'&&typeof _0x195fec[_0x61ec('0x1d')]===_0x61ec('0x1e');var _0x134bbb=_0x21ae4c[_0x61ec('0x1f')];var _0x17a587=_0x5480d8?0x0:_0x195fec['offset'];var _0x9a4ccc=_0x5480d8?_0x21ae4c[_0x61ec('0x1f')]:_0x195fec[_0x61ec('0x1c')]+_0x195fec[_0x61ec('0x1d')];var _0x27774f;if(_0x9a4ccc>=_0x134bbb){_0x9a4ccc=_0x134bbb;_0x27774f=0xc8;}else{_0x27774f=0xce;}_0x39131e[_0x61ec('0x1a')](_0x27774f);return _0x39131e[_0x61ec('0x20')](_0x61ec('0x21'),_0x17a587+'-'+_0x9a4ccc+'/'+_0x134bbb)[_0x61ec('0x1b')](_0x21ae4c);}return null;};}function patchUpdates(_0x5eb05d){return function(_0x111e2c){try{jsonpatch[_0x61ec('0x22')](_0x111e2c,_0x5eb05d,!![]);}catch(_0x3e257a){return BPromise[_0x61ec('0x23')](_0x3e257a);}return _0x111e2c[_0x61ec('0x24')]();};}function saveUpdates(_0xfc08b9,_0x267675){return function(_0xc7c59){if(_0xc7c59){return _0xc7c59['update'](_0xfc08b9)[_0x61ec('0x25')](function(_0x4c8e24){return _0x4c8e24;});}return null;};}function removeEntity(_0x499056,_0x4be430){return function(_0xd06259){if(_0xd06259){return _0xd06259[_0x61ec('0x26')]()['then'](function(){_0x499056[_0x61ec('0x1a')](0xcc)[_0x61ec('0x19')]();});}};}function handleEntityNotFound(_0x5ca8f8,_0x71a072){return function(_0x257c43){if(!_0x257c43){_0x5ca8f8['sendStatus'](0x194);}return _0x257c43;};}function handleError(_0x4a3607,_0x378527){_0x378527=_0x378527||0x1f4;return function(_0x354d09){logger[_0x61ec('0x27')](_0x354d09[_0x61ec('0x28')]);if(_0x354d09[_0x61ec('0x29')]){delete _0x354d09[_0x61ec('0x29')];}_0x4a3607[_0x61ec('0x1a')](_0x378527)['send'](_0x354d09);};}exports[_0x61ec('0x2a')]=function(_0x49b59a,_0x53e5b0){var _0x374f1b={},_0x2721a4={},_0x2dec68={'count':0x0,'rows':[]};var _0xcc42=_[_0x61ec('0x2b')](db[_0x61ec('0x2c')]['rawAttributes'],function(_0x42a87f){return{'name':_0x42a87f[_0x61ec('0x2d')],'type':_0x42a87f['type']['key']};});_0x2721a4[_0x61ec('0x2e')]=_[_0x61ec('0x2b')](_0xcc42,_0x61ec('0x29'));_0x2721a4[_0x61ec('0x2f')]=_['keys'](_0x49b59a[_0x61ec('0x2f')]);_0x2721a4[_0x61ec('0x30')]=_['intersection'](_0x2721a4[_0x61ec('0x2e')],_0x2721a4[_0x61ec('0x2f')]);_0x374f1b[_0x61ec('0x31')]=_[_0x61ec('0x32')](_0x2721a4['model'],qs[_0x61ec('0x33')](_0x49b59a[_0x61ec('0x2f')][_0x61ec('0x33')]));_0x374f1b['attributes']=_0x374f1b['attributes'][_0x61ec('0x34')]?_0x374f1b[_0x61ec('0x31')]:_0x2721a4[_0x61ec('0x2e')];if(!_0x49b59a[_0x61ec('0x2f')][_0x61ec('0x35')](_0x61ec('0x36'))){_0x374f1b[_0x61ec('0x1d')]=qs[_0x61ec('0x1d')](_0x49b59a[_0x61ec('0x2f')][_0x61ec('0x1d')]);_0x374f1b[_0x61ec('0x1c')]=qs[_0x61ec('0x1c')](_0x49b59a['query'][_0x61ec('0x1c')]);}_0x374f1b[_0x61ec('0x37')]=qs['sort'](_0x49b59a[_0x61ec('0x2f')]['sort']);_0x374f1b['where']=qs[_0x61ec('0x30')](_[_0x61ec('0x38')](_0x49b59a[_0x61ec('0x2f')],_0x2721a4['filters']),_0xcc42);if(_0x49b59a['query']['filter']){_0x374f1b[_0x61ec('0x39')]=_[_0x61ec('0x3a')](_0x374f1b['where'],{'$or':_[_0x61ec('0x2b')](_0xcc42,function(_0x3d8a29){if(_0x3d8a29[_0x61ec('0x3b')]!==_0x61ec('0x3c')){var _0x148c1c={};_0x148c1c[_0x3d8a29[_0x61ec('0x29')]]={'$like':'%'+_0x49b59a[_0x61ec('0x2f')][_0x61ec('0x3d')]+'%'};return _0x148c1c;}})});}_0x374f1b=_[_0x61ec('0x3a')]({},_0x374f1b,_0x49b59a[_0x61ec('0x3e')]);var _0x43cc9b={'where':_0x374f1b['where']};return db[_0x61ec('0x2c')][_0x61ec('0x1f')](_0x43cc9b)[_0x61ec('0x25')](function(_0x19c6f1){_0x2dec68[_0x61ec('0x1f')]=_0x19c6f1;if(_0x49b59a[_0x61ec('0x2f')][_0x61ec('0x3f')]){_0x374f1b[_0x61ec('0x40')]=[{'all':!![]}];}return db[_0x61ec('0x2c')][_0x61ec('0x41')](_0x374f1b);})[_0x61ec('0x25')](function(_0x5b31af){_0x2dec68[_0x61ec('0x42')]=_0x5b31af;return _0x2dec68;})[_0x61ec('0x25')](respondWithFilteredResult(_0x53e5b0,_0x374f1b))['catch'](handleError(_0x53e5b0,null));};exports[_0x61ec('0x43')]=function(_0x555517,_0x37ca54){var _0x2fc2df={'raw':!![],'where':{'id':_0x555517[_0x61ec('0x44')]['id']}},_0x511d61={};_0x511d61[_0x61ec('0x2e')]=_['keys'](db[_0x61ec('0x2c')]['rawAttributes']);_0x511d61[_0x61ec('0x2f')]=_[_0x61ec('0x45')](_0x555517[_0x61ec('0x2f')]);_0x511d61['filters']=_[_0x61ec('0x32')](_0x511d61[_0x61ec('0x2e')],_0x511d61[_0x61ec('0x2f')]);_0x2fc2df[_0x61ec('0x31')]=_[_0x61ec('0x32')](_0x511d61[_0x61ec('0x2e')],qs[_0x61ec('0x33')](_0x555517['query'][_0x61ec('0x33')]));_0x2fc2df[_0x61ec('0x31')]=_0x2fc2df[_0x61ec('0x31')][_0x61ec('0x34')]?_0x2fc2df[_0x61ec('0x31')]:_0x511d61[_0x61ec('0x2e')];if(_0x555517[_0x61ec('0x2f')][_0x61ec('0x3f')]){_0x2fc2df['include']=[{'all':!![]}];}_0x2fc2df=_[_0x61ec('0x3a')]({},_0x2fc2df,_0x555517[_0x61ec('0x3e')]);return db[_0x61ec('0x2c')][_0x61ec('0x46')](_0x2fc2df)[_0x61ec('0x25')](handleEntityNotFound(_0x37ca54,null))[_0x61ec('0x25')](respondWithResult(_0x37ca54,null))['catch'](handleError(_0x37ca54,null));};exports[_0x61ec('0x47')]=function(_0x4342bc,_0x2e7b2d){return db[_0x61ec('0x2c')][_0x61ec('0x47')](_0x4342bc['body'],{})[_0x61ec('0x25')](respondWithResult(_0x2e7b2d,0xc9))[_0x61ec('0x48')](handleError(_0x2e7b2d,null));};exports[_0x61ec('0x49')]=function(_0x5919a6,_0x370ad7){if(_0x5919a6[_0x61ec('0x4a')]['id']){delete _0x5919a6['body']['id'];}return db[_0x61ec('0x2c')][_0x61ec('0x46')]({'where':{'id':_0x5919a6['params']['id']}})['then'](handleEntityNotFound(_0x370ad7,null))[_0x61ec('0x25')](saveUpdates(_0x5919a6[_0x61ec('0x4a')],null))[_0x61ec('0x25')](respondWithResult(_0x370ad7,null))[_0x61ec('0x48')](handleError(_0x370ad7,null));};exports[_0x61ec('0x26')]=function(_0x1faf89,_0x5d2fa7){return db[_0x61ec('0x2c')]['find']({'where':{'id':_0x1faf89[_0x61ec('0x44')]['id']}})[_0x61ec('0x25')](handleEntityNotFound(_0x5d2fa7,null))[_0x61ec('0x25')](removeEntity(_0x5d2fa7,null))[_0x61ec('0x48')](handleError(_0x5d2fa7,null));};
\ No newline at end of file