Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / whatsappQueueReport / whatsappQueueReport.controller.js
index f1495fb..f9efeca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x83a0=['describe','html-pdf','eml-format','rimraf','zip-dir','request-promise','moment','mustache','util','path','lodash','squel','crypto','jsforce','to-csv','querystring','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','end','count','offset','limit','status','apply','reject','then','destroy','error','stack','name','send','index','map','rawAttributes','fieldName','type','key','query','keys','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','include','WhatsappQueueReport','findAll','params','includeAll','find','catch','create','body','update'];(function(_0x4645dc,_0x21e1fc){var _0x1e8882=function(_0x568ab8){while(--_0x568ab8){_0x4645dc['push'](_0x4645dc['shift']());}};_0x1e8882(++_0x21e1fc);}(_0x83a0,0x91));var _0x083a=function(_0x21fb30,_0x28955f){_0x21fb30=_0x21fb30-0x0;var _0x58f58a=_0x83a0[_0x21fb30];return _0x58f58a;};'use strict';var pdf=require(_0x083a('0x0'));var emlformat=require(_0x083a('0x1'));var rimraf=require(_0x083a('0x2'));var zipdir=require(_0x083a('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0x083a('0x4'));var moment=require(_0x083a('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x083a('0x6'));var util=require(_0x083a('0x7'));var path=require(_0x083a('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require(_0x083a('0x9'));var squel=require(_0x083a('0xa'));var crypto=require(_0x083a('0xb'));var jsforce=require(_0x083a('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x083a('0xd'));var querystring=require(_0x083a('0xe'));var Papa=require('papaparse');var Redis=require(_0x083a('0xf'));var authService=require('../../components/auth/service');var qs=require(_0x083a('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x083a('0x11'));var logger=require(_0x083a('0x12'))(_0x083a('0x13'));var utils=require(_0x083a('0x14'));var config=require(_0x083a('0x15'));var licenseUtil=require(_0x083a('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x39a5b8,_0x401287){_0x401287=_0x401287||0xcc;return function(_0x2ea9a2){if(_0x2ea9a2){return _0x39a5b8[_0x083a('0x17')](_0x401287);}return _0x39a5b8['status'](_0x401287)[_0x083a('0x18')]();};}function respondWithResult(_0x10e0b0,_0x2f9641){_0x2f9641=_0x2f9641||0xc8;return function(_0x5bfadd){if(_0x5bfadd){return _0x10e0b0['status'](_0x2f9641)['json'](_0x5bfadd);}};}function respondWithFilteredResult(_0x36ff3d,_0x30cbef){return function(_0x1e1c8a){if(_0x1e1c8a){var _0x3caf7d=_0x1e1c8a[_0x083a('0x19')],_0x39448c=_0x30cbef[_0x083a('0x1a')],_0x4bbbcb=_0x30cbef[_0x083a('0x1a')]+_0x30cbef[_0x083a('0x1b')],_0x4a80e5;if(_0x4bbbcb>=_0x3caf7d){_0x4bbbcb=_0x3caf7d;_0x4a80e5=0xc8;}else{_0x4a80e5=0xce;}_0x36ff3d[_0x083a('0x1c')](_0x4a80e5);return _0x36ff3d['set']('Content-Range',_0x39448c+'-'+_0x4bbbcb+'/'+_0x3caf7d)['json'](_0x1e1c8a);}return null;};}function patchUpdates(_0x48c347){return function(_0x334b2c){try{jsonpatch[_0x083a('0x1d')](_0x334b2c,_0x48c347,!![]);}catch(_0x595967){return BPromise[_0x083a('0x1e')](_0x595967);}return _0x334b2c['save']();};}function saveUpdates(_0x13ddba,_0x2ba0c9){return function(_0x4cb8e5){if(_0x4cb8e5){return _0x4cb8e5['update'](_0x13ddba)[_0x083a('0x1f')](function(_0x23db23){return _0x23db23;});}return null;};}function removeEntity(_0x1145bd,_0x57abe4){return function(_0x4d4e96){if(_0x4d4e96){return _0x4d4e96[_0x083a('0x20')]()[_0x083a('0x1f')](function(){_0x1145bd[_0x083a('0x1c')](0xcc)[_0x083a('0x18')]();});}};}function handleEntityNotFound(_0x1d5e8e,_0x2a5283){return function(_0x5a4c97){if(!_0x5a4c97){_0x1d5e8e[_0x083a('0x17')](0x194);}return _0x5a4c97;};}function handleError(_0x14bd71,_0x4a26b7){_0x4a26b7=_0x4a26b7||0x1f4;return function(_0x15216a){logger[_0x083a('0x21')](_0x15216a[_0x083a('0x22')]);if(_0x15216a[_0x083a('0x23')]){delete _0x15216a[_0x083a('0x23')];}_0x14bd71[_0x083a('0x1c')](_0x4a26b7)[_0x083a('0x24')](_0x15216a);};}exports[_0x083a('0x25')]=function(_0xcb95a3,_0x214e54){var _0x14e3ea={},_0x1a3865={},_0x402207={'count':0x0,'rows':[]};var _0x4f1a37=_[_0x083a('0x26')](db['WhatsappQueueReport'][_0x083a('0x27')],function(_0x335252){return{'name':_0x335252[_0x083a('0x28')],'type':_0x335252[_0x083a('0x29')][_0x083a('0x2a')]};});_0x1a3865['model']=_[_0x083a('0x26')](_0x4f1a37,'name');_0x1a3865[_0x083a('0x2b')]=_[_0x083a('0x2c')](_0xcb95a3[_0x083a('0x2b')]);_0x1a3865['filters']=_[_0x083a('0x2d')](_0x1a3865[_0x083a('0x2e')],_0x1a3865['query']);_0x14e3ea[_0x083a('0x2f')]=_['intersection'](_0x1a3865[_0x083a('0x2e')],qs['fields'](_0xcb95a3[_0x083a('0x2b')][_0x083a('0x30')]));_0x14e3ea[_0x083a('0x2f')]=_0x14e3ea[_0x083a('0x2f')][_0x083a('0x31')]?_0x14e3ea[_0x083a('0x2f')]:_0x1a3865[_0x083a('0x2e')];if(!_0xcb95a3[_0x083a('0x2b')][_0x083a('0x32')](_0x083a('0x33'))){_0x14e3ea[_0x083a('0x1b')]=qs['limit'](_0xcb95a3['query'][_0x083a('0x1b')]);_0x14e3ea['offset']=qs[_0x083a('0x1a')](_0xcb95a3['query'][_0x083a('0x1a')]);}_0x14e3ea[_0x083a('0x34')]=qs[_0x083a('0x35')](_0xcb95a3[_0x083a('0x2b')][_0x083a('0x35')]);_0x14e3ea[_0x083a('0x36')]=qs[_0x083a('0x37')](_[_0x083a('0x38')](_0xcb95a3[_0x083a('0x2b')],_0x1a3865['filters']),_0x4f1a37);if(_0xcb95a3[_0x083a('0x2b')][_0x083a('0x39')]){_0x14e3ea[_0x083a('0x36')]=_[_0x083a('0x3a')](_0x14e3ea[_0x083a('0x36')],{'$or':_[_0x083a('0x26')](_0x4f1a37,function(_0x2af95a){if(_0x2af95a[_0x083a('0x29')]!==_0x083a('0x3b')){var _0xf1a333={};_0xf1a333[_0x2af95a[_0x083a('0x23')]]={'$like':'%'+_0xcb95a3[_0x083a('0x2b')][_0x083a('0x39')]+'%'};return _0xf1a333;}})});}_0x14e3ea=_[_0x083a('0x3a')]({},_0x14e3ea,_0xcb95a3[_0x083a('0x3c')]);var _0x4134f0={'where':_0x14e3ea[_0x083a('0x36')]};return db['WhatsappQueueReport'][_0x083a('0x19')](_0x4134f0)[_0x083a('0x1f')](function(_0x42a7cf){_0x402207[_0x083a('0x19')]=_0x42a7cf;if(_0xcb95a3[_0x083a('0x2b')]['includeAll']){_0x14e3ea[_0x083a('0x3d')]=[{'all':!![]}];}return db[_0x083a('0x3e')][_0x083a('0x3f')](_0x14e3ea);})['then'](function(_0x425572){_0x402207['rows']=_0x425572;return _0x402207;})[_0x083a('0x1f')](respondWithFilteredResult(_0x214e54,_0x14e3ea))['catch'](handleError(_0x214e54,null));};exports['show']=function(_0x56c397,_0x538090){var _0x5ebba5={'raw':!![],'where':{'id':_0x56c397[_0x083a('0x40')]['id']}},_0x238ba8={};_0x238ba8[_0x083a('0x2e')]=_[_0x083a('0x2c')](db[_0x083a('0x3e')][_0x083a('0x27')]);_0x238ba8[_0x083a('0x2b')]=_[_0x083a('0x2c')](_0x56c397[_0x083a('0x2b')]);_0x238ba8[_0x083a('0x37')]=_[_0x083a('0x2d')](_0x238ba8[_0x083a('0x2e')],_0x238ba8[_0x083a('0x2b')]);_0x5ebba5[_0x083a('0x2f')]=_[_0x083a('0x2d')](_0x238ba8[_0x083a('0x2e')],qs['fields'](_0x56c397[_0x083a('0x2b')][_0x083a('0x30')]));_0x5ebba5[_0x083a('0x2f')]=_0x5ebba5['attributes']['length']?_0x5ebba5[_0x083a('0x2f')]:_0x238ba8[_0x083a('0x2e')];if(_0x56c397[_0x083a('0x2b')][_0x083a('0x41')]){_0x5ebba5[_0x083a('0x3d')]=[{'all':!![]}];}_0x5ebba5=_[_0x083a('0x3a')]({},_0x5ebba5,_0x56c397['options']);return db[_0x083a('0x3e')][_0x083a('0x42')](_0x5ebba5)[_0x083a('0x1f')](handleEntityNotFound(_0x538090,null))['then'](respondWithResult(_0x538090,null))[_0x083a('0x43')](handleError(_0x538090,null));};exports[_0x083a('0x44')]=function(_0x110485,_0x5ca9a3){return db['WhatsappQueueReport']['create'](_0x110485[_0x083a('0x45')],{})[_0x083a('0x1f')](respondWithResult(_0x5ca9a3,0xc9))[_0x083a('0x43')](handleError(_0x5ca9a3,null));};exports[_0x083a('0x46')]=function(_0x3ba08a,_0x1aae1d){if(_0x3ba08a['body']['id']){delete _0x3ba08a[_0x083a('0x45')]['id'];}return db[_0x083a('0x3e')][_0x083a('0x42')]({'where':{'id':_0x3ba08a[_0x083a('0x40')]['id']}})['then'](handleEntityNotFound(_0x1aae1d,null))[_0x083a('0x1f')](saveUpdates(_0x3ba08a[_0x083a('0x45')],null))[_0x083a('0x1f')](respondWithResult(_0x1aae1d,null))[_0x083a('0x43')](handleError(_0x1aae1d,null));};exports[_0x083a('0x20')]=function(_0x3ceabe,_0x13fd42){return db[_0x083a('0x3e')]['find']({'where':{'id':_0x3ceabe[_0x083a('0x40')]['id']}})['then'](handleEntityNotFound(_0x13fd42,null))[_0x083a('0x1f')](removeEntity(_0x13fd42,null))[_0x083a('0x43')](handleError(_0x13fd42,null));};exports[_0x083a('0x47')]=function(_0x4ddf60,_0x1345cc){return db['WhatsappQueueReport'][_0x083a('0x47')]()[_0x083a('0x1f')](respondWithResult(_0x1345cc,null))['catch'](handleError(_0x1345cc,null));};
\ No newline at end of file
+var _0xe2cf=['body','destroy','describe','rimraf','fast-json-patch','moment','bluebird','mustache','util','sox','to-csv','lodash','squel','desk.js','querystring','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','json','offset','undefined','count','limit','Content-Range','apply','reject','save','update','then','end','error','stack','name','index','WhatsappQueueReport','rawAttributes','fieldName','type','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','pick','VIRTUAL','filter','merge','options','includeAll','include','findAll','rows','catch','show','params'];(function(_0x449a4a,_0x10327c){var _0x3a7c40=function(_0x151a61){while(--_0x151a61){_0x449a4a['push'](_0x449a4a['shift']());}};_0x3a7c40(++_0x10327c);}(_0xe2cf,0x1a1));var _0xfe2c=function(_0x37b624,_0x28c3aa){_0x37b624=_0x37b624-0x0;var _0x44abd9=_0xe2cf[_0x37b624];return _0x44abd9;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xfe2c('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xfe2c('0x1'));var rp=require('request-promise');var moment=require(_0xfe2c('0x2'));var BPromise=require(_0xfe2c('0x3'));var Mustache=require(_0xfe2c('0x4'));var util=require(_0xfe2c('0x5'));var path=require('path');var sox=require(_0xfe2c('0x6'));var csv=require(_0xfe2c('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xfe2c('0x8'));var squel=require(_0xfe2c('0x9'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xfe2c('0xa'));var toCsv=require(_0xfe2c('0x7'));var querystring=require(_0xfe2c('0xb'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0xfe2c('0xc'));var qs=require(_0xfe2c('0xd'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xfe2c('0xe'));var logger=require(_0xfe2c('0xf'))(_0xfe2c('0x10'));var utils=require(_0xfe2c('0x11'));var config=require(_0xfe2c('0x12'));var licenseUtil=require(_0xfe2c('0x13'));var db=require(_0xfe2c('0x14'))['db'];function respondWithStatusCode(_0x4af8b7,_0x5e7389){_0x5e7389=_0x5e7389||0xcc;return function(_0x59ecf8){if(_0x59ecf8){return _0x4af8b7['sendStatus'](_0x5e7389);}return _0x4af8b7[_0xfe2c('0x15')](_0x5e7389)['end']();};}function respondWithResult(_0x5a6ad5,_0x38ba2c){_0x38ba2c=_0x38ba2c||0xc8;return function(_0x4d0a10){if(_0x4d0a10){return _0x5a6ad5[_0xfe2c('0x15')](_0x38ba2c)[_0xfe2c('0x16')](_0x4d0a10);}};}function respondWithFilteredResult(_0x522692,_0x5039cb){return function(_0x1a4684){if(_0x1a4684){var _0x3b3ebd=typeof _0x5039cb[_0xfe2c('0x17')]===_0xfe2c('0x18')&&typeof _0x5039cb['limit']===_0xfe2c('0x18');var _0x96a3a3=_0x1a4684[_0xfe2c('0x19')];var _0x23242b=_0x3b3ebd?0x0:_0x5039cb[_0xfe2c('0x17')];var _0x13f233=_0x3b3ebd?_0x1a4684['count']:_0x5039cb[_0xfe2c('0x17')]+_0x5039cb[_0xfe2c('0x1a')];var _0x1d7852;if(_0x13f233>=_0x96a3a3){_0x13f233=_0x96a3a3;_0x1d7852=0xc8;}else{_0x1d7852=0xce;}_0x522692[_0xfe2c('0x15')](_0x1d7852);return _0x522692['set'](_0xfe2c('0x1b'),_0x23242b+'-'+_0x13f233+'/'+_0x96a3a3)['json'](_0x1a4684);}return null;};}function patchUpdates(_0x4e9137){return function(_0x408f31){try{jsonpatch[_0xfe2c('0x1c')](_0x408f31,_0x4e9137,!![]);}catch(_0x4bf7c0){return BPromise[_0xfe2c('0x1d')](_0x4bf7c0);}return _0x408f31[_0xfe2c('0x1e')]();};}function saveUpdates(_0x5e609f,_0x1bd50e){return function(_0x5dd54b){if(_0x5dd54b){return _0x5dd54b[_0xfe2c('0x1f')](_0x5e609f)[_0xfe2c('0x20')](function(_0x8b5c0d){return _0x8b5c0d;});}return null;};}function removeEntity(_0x298819,_0x360928){return function(_0x2ee3b3){if(_0x2ee3b3){return _0x2ee3b3['destroy']()[_0xfe2c('0x20')](function(){_0x298819[_0xfe2c('0x15')](0xcc)[_0xfe2c('0x21')]();});}};}function handleEntityNotFound(_0x26448c,_0x3486b5){return function(_0x10afde){if(!_0x10afde){_0x26448c['sendStatus'](0x194);}return _0x10afde;};}function handleError(_0x205da8,_0x5e8abf){_0x5e8abf=_0x5e8abf||0x1f4;return function(_0x16daf3){logger[_0xfe2c('0x22')](_0x16daf3[_0xfe2c('0x23')]);if(_0x16daf3['name']){delete _0x16daf3[_0xfe2c('0x24')];}_0x205da8[_0xfe2c('0x15')](_0x5e8abf)['send'](_0x16daf3);};}exports[_0xfe2c('0x25')]=function(_0x1b6eb7,_0x3352e8){var _0x53a8c1={},_0x170026={},_0x1b7c91={'count':0x0,'rows':[]};var _0x55aed7=_['map'](db[_0xfe2c('0x26')][_0xfe2c('0x27')],function(_0x1a5e15){return{'name':_0x1a5e15[_0xfe2c('0x28')],'type':_0x1a5e15[_0xfe2c('0x29')]['key']};});_0x170026[_0xfe2c('0x2a')]=_[_0xfe2c('0x2b')](_0x55aed7,_0xfe2c('0x24'));_0x170026[_0xfe2c('0x2c')]=_[_0xfe2c('0x2d')](_0x1b6eb7[_0xfe2c('0x2c')]);_0x170026[_0xfe2c('0x2e')]=_[_0xfe2c('0x2f')](_0x170026[_0xfe2c('0x2a')],_0x170026[_0xfe2c('0x2c')]);_0x53a8c1[_0xfe2c('0x30')]=_[_0xfe2c('0x2f')](_0x170026['model'],qs[_0xfe2c('0x31')](_0x1b6eb7[_0xfe2c('0x2c')][_0xfe2c('0x31')]));_0x53a8c1['attributes']=_0x53a8c1[_0xfe2c('0x30')][_0xfe2c('0x32')]?_0x53a8c1['attributes']:_0x170026[_0xfe2c('0x2a')];if(!_0x1b6eb7[_0xfe2c('0x2c')][_0xfe2c('0x33')]('nolimit')){_0x53a8c1[_0xfe2c('0x1a')]=qs[_0xfe2c('0x1a')](_0x1b6eb7[_0xfe2c('0x2c')][_0xfe2c('0x1a')]);_0x53a8c1[_0xfe2c('0x17')]=qs[_0xfe2c('0x17')](_0x1b6eb7[_0xfe2c('0x2c')]['offset']);}_0x53a8c1['order']=qs[_0xfe2c('0x34')](_0x1b6eb7[_0xfe2c('0x2c')][_0xfe2c('0x34')]);_0x53a8c1[_0xfe2c('0x35')]=qs['filters'](_[_0xfe2c('0x36')](_0x1b6eb7['query'],_0x170026[_0xfe2c('0x2e')]),_0x55aed7);if(_0x1b6eb7[_0xfe2c('0x2c')]['filter']){_0x53a8c1[_0xfe2c('0x35')]=_['merge'](_0x53a8c1['where'],{'$or':_[_0xfe2c('0x2b')](_0x55aed7,function(_0x3d3b5e){if(_0x3d3b5e[_0xfe2c('0x29')]!==_0xfe2c('0x37')){var _0xae2808={};_0xae2808[_0x3d3b5e[_0xfe2c('0x24')]]={'$like':'%'+_0x1b6eb7[_0xfe2c('0x2c')][_0xfe2c('0x38')]+'%'};return _0xae2808;}})});}_0x53a8c1=_[_0xfe2c('0x39')]({},_0x53a8c1,_0x1b6eb7[_0xfe2c('0x3a')]);var _0x222335={'where':_0x53a8c1['where']};return db[_0xfe2c('0x26')][_0xfe2c('0x19')](_0x222335)[_0xfe2c('0x20')](function(_0x55ea45){_0x1b7c91['count']=_0x55ea45;if(_0x1b6eb7['query'][_0xfe2c('0x3b')]){_0x53a8c1[_0xfe2c('0x3c')]=[{'all':!![]}];}return db[_0xfe2c('0x26')][_0xfe2c('0x3d')](_0x53a8c1);})['then'](function(_0x1ed30b){_0x1b7c91[_0xfe2c('0x3e')]=_0x1ed30b;return _0x1b7c91;})[_0xfe2c('0x20')](respondWithFilteredResult(_0x3352e8,_0x53a8c1))[_0xfe2c('0x3f')](handleError(_0x3352e8,null));};exports[_0xfe2c('0x40')]=function(_0x48e361,_0x5a8d4e){var _0xeb04b9={'raw':!![],'where':{'id':_0x48e361[_0xfe2c('0x41')]['id']}},_0x6055dd={};_0x6055dd['model']=_['keys'](db[_0xfe2c('0x26')][_0xfe2c('0x27')]);_0x6055dd['query']=_[_0xfe2c('0x2d')](_0x48e361[_0xfe2c('0x2c')]);_0x6055dd[_0xfe2c('0x2e')]=_[_0xfe2c('0x2f')](_0x6055dd['model'],_0x6055dd[_0xfe2c('0x2c')]);_0xeb04b9[_0xfe2c('0x30')]=_[_0xfe2c('0x2f')](_0x6055dd[_0xfe2c('0x2a')],qs[_0xfe2c('0x31')](_0x48e361[_0xfe2c('0x2c')][_0xfe2c('0x31')]));_0xeb04b9[_0xfe2c('0x30')]=_0xeb04b9['attributes'][_0xfe2c('0x32')]?_0xeb04b9['attributes']:_0x6055dd[_0xfe2c('0x2a')];if(_0x48e361[_0xfe2c('0x2c')][_0xfe2c('0x3b')]){_0xeb04b9[_0xfe2c('0x3c')]=[{'all':!![]}];}_0xeb04b9=_['merge']({},_0xeb04b9,_0x48e361['options']);return db['WhatsappQueueReport']['find'](_0xeb04b9)['then'](handleEntityNotFound(_0x5a8d4e,null))[_0xfe2c('0x20')](respondWithResult(_0x5a8d4e,null))['catch'](handleError(_0x5a8d4e,null));};exports['create']=function(_0x22adee,_0x5d76be){return db[_0xfe2c('0x26')]['create'](_0x22adee[_0xfe2c('0x42')],{})[_0xfe2c('0x20')](respondWithResult(_0x5d76be,0xc9))[_0xfe2c('0x3f')](handleError(_0x5d76be,null));};exports[_0xfe2c('0x1f')]=function(_0x3cfda2,_0x57ad76){if(_0x3cfda2[_0xfe2c('0x42')]['id']){delete _0x3cfda2[_0xfe2c('0x42')]['id'];}return db[_0xfe2c('0x26')]['find']({'where':{'id':_0x3cfda2[_0xfe2c('0x41')]['id']}})[_0xfe2c('0x20')](handleEntityNotFound(_0x57ad76,null))['then'](saveUpdates(_0x3cfda2['body'],null))['then'](respondWithResult(_0x57ad76,null))[_0xfe2c('0x3f')](handleError(_0x57ad76,null));};exports[_0xfe2c('0x43')]=function(_0x47023e,_0x2e0012){return db[_0xfe2c('0x26')]['find']({'where':{'id':_0x47023e[_0xfe2c('0x41')]['id']}})[_0xfe2c('0x20')](handleEntityNotFound(_0x2e0012,null))[_0xfe2c('0x20')](removeEntity(_0x2e0012,null))['catch'](handleError(_0x2e0012,null));};exports['describe']=function(_0x3e7c9f,_0xa711b0){return db[_0xfe2c('0x26')][_0xfe2c('0x44')]()[_0xfe2c('0x20')](respondWithResult(_0xa711b0,null))[_0xfe2c('0x3f')](handleError(_0xa711b0,null));};
\ No newline at end of file