Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / openchannelQueueReport / openchannelQueueReport.controller.js
index f8ee690..600db52 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf66a=['VIRTUAL','options','includeAll','include','findAll','rows','show','params','create','catch','body','find','describe','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','undefined','count','offset','limit','Content-Range','apply','reject','save','update','destroy','then','end','error','stack','name','send','index','map','OpenchannelQueueReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','sort','pick','filter','where','merge'];(function(_0x335271,_0x5025f2){var _0xa9fff8=function(_0x28d0bd){while(--_0x28d0bd){_0x335271['push'](_0x335271['shift']());}};_0xa9fff8(++_0x5025f2);}(_0xf66a,0xa7));var _0xaf66=function(_0x48f21e,_0x244a9d){_0x48f21e=_0x48f21e-0x0;var _0xa10e15=_0xf66a[_0x48f21e];return _0xa10e15;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xaf66('0x0'));var zipdir=require(_0xaf66('0x1'));var jsonpatch=require(_0xaf66('0x2'));var rp=require('request-promise');var moment=require(_0xaf66('0x3'));var BPromise=require(_0xaf66('0x4'));var Mustache=require(_0xaf66('0x5'));var util=require(_0xaf66('0x6'));var path=require('path');var sox=require(_0xaf66('0x7'));var csv=require(_0xaf66('0x8'));var ejs=require(_0xaf66('0x9'));var fs=require('fs');var fs_extra=require(_0xaf66('0xa'));var _=require(_0xaf66('0xb'));var squel=require(_0xaf66('0xc'));var crypto=require(_0xaf66('0xd'));var jsforce=require(_0xaf66('0xe'));var deskjs=require(_0xaf66('0xf'));var toCsv=require(_0xaf66('0x8'));var querystring=require(_0xaf66('0x10'));var Papa=require(_0xaf66('0x11'));var Redis=require(_0xaf66('0x12'));var authService=require(_0xaf66('0x13'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xaf66('0x14'));var logger=require('../../config/logger')('api');var utils=require(_0xaf66('0x15'));var config=require(_0xaf66('0x16'));var licenseUtil=require(_0xaf66('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1b998e,_0x1e6999){_0x1e6999=_0x1e6999||0xcc;return function(_0x5cb5f0){if(_0x5cb5f0){return _0x1b998e[_0xaf66('0x18')](_0x1e6999);}return _0x1b998e[_0xaf66('0x19')](_0x1e6999)['end']();};}function respondWithResult(_0x2ea667,_0x3acb8f){_0x3acb8f=_0x3acb8f||0xc8;return function(_0x1045ca){if(_0x1045ca){return _0x2ea667[_0xaf66('0x19')](_0x3acb8f)[_0xaf66('0x1a')](_0x1045ca);}};}function respondWithFilteredResult(_0x5eb6a6,_0x5062f4){return function(_0xafaec0){if(_0xafaec0){var _0x3b07d2=typeof _0x5062f4['offset']===_0xaf66('0x1b')&&typeof _0x5062f4['limit']===_0xaf66('0x1b');var _0x1a07f3=_0xafaec0[_0xaf66('0x1c')];var _0xfca03d=_0x3b07d2?0x0:_0x5062f4[_0xaf66('0x1d')];var _0x54545c=_0x3b07d2?_0xafaec0[_0xaf66('0x1c')]:_0x5062f4[_0xaf66('0x1d')]+_0x5062f4[_0xaf66('0x1e')];var _0x5ec906;if(_0x54545c>=_0x1a07f3){_0x54545c=_0x1a07f3;_0x5ec906=0xc8;}else{_0x5ec906=0xce;}_0x5eb6a6[_0xaf66('0x19')](_0x5ec906);return _0x5eb6a6['set'](_0xaf66('0x1f'),_0xfca03d+'-'+_0x54545c+'/'+_0x1a07f3)[_0xaf66('0x1a')](_0xafaec0);}return null;};}function patchUpdates(_0x4230b8){return function(_0x37b87f){try{jsonpatch[_0xaf66('0x20')](_0x37b87f,_0x4230b8,!![]);}catch(_0x56c8cd){return BPromise[_0xaf66('0x21')](_0x56c8cd);}return _0x37b87f[_0xaf66('0x22')]();};}function saveUpdates(_0x301e72,_0x5d8b5b){return function(_0x3ee84d){if(_0x3ee84d){return _0x3ee84d[_0xaf66('0x23')](_0x301e72)['then'](function(_0xc91bd0){return _0xc91bd0;});}return null;};}function removeEntity(_0x3ed85b,_0x11c577){return function(_0x1bca9a){if(_0x1bca9a){return _0x1bca9a[_0xaf66('0x24')]()[_0xaf66('0x25')](function(){_0x3ed85b['status'](0xcc)[_0xaf66('0x26')]();});}};}function handleEntityNotFound(_0x8220f1,_0x44f2b5){return function(_0x5b2c45){if(!_0x5b2c45){_0x8220f1['sendStatus'](0x194);}return _0x5b2c45;};}function handleError(_0x1a2c64,_0x4ceee7){_0x4ceee7=_0x4ceee7||0x1f4;return function(_0x551c92){logger[_0xaf66('0x27')](_0x551c92[_0xaf66('0x28')]);if(_0x551c92[_0xaf66('0x29')]){delete _0x551c92[_0xaf66('0x29')];}_0x1a2c64[_0xaf66('0x19')](_0x4ceee7)[_0xaf66('0x2a')](_0x551c92);};}exports[_0xaf66('0x2b')]=function(_0x50750a,_0x1c1ec5){var _0x203053={},_0x2719ec={},_0x576047={'count':0x0,'rows':[]};var _0x255e07=_[_0xaf66('0x2c')](db[_0xaf66('0x2d')][_0xaf66('0x2e')],function(_0x51aba1){return{'name':_0x51aba1[_0xaf66('0x2f')],'type':_0x51aba1[_0xaf66('0x30')][_0xaf66('0x31')]};});_0x2719ec[_0xaf66('0x32')]=_[_0xaf66('0x2c')](_0x255e07,'name');_0x2719ec[_0xaf66('0x33')]=_[_0xaf66('0x34')](_0x50750a[_0xaf66('0x33')]);_0x2719ec[_0xaf66('0x35')]=_[_0xaf66('0x36')](_0x2719ec[_0xaf66('0x32')],_0x2719ec[_0xaf66('0x33')]);_0x203053['attributes']=_[_0xaf66('0x36')](_0x2719ec['model'],qs[_0xaf66('0x37')](_0x50750a['query'][_0xaf66('0x37')]));_0x203053[_0xaf66('0x38')]=_0x203053[_0xaf66('0x38')][_0xaf66('0x39')]?_0x203053['attributes']:_0x2719ec[_0xaf66('0x32')];if(!_0x50750a[_0xaf66('0x33')][_0xaf66('0x3a')]('nolimit')){_0x203053[_0xaf66('0x1e')]=qs[_0xaf66('0x1e')](_0x50750a[_0xaf66('0x33')][_0xaf66('0x1e')]);_0x203053['offset']=qs['offset'](_0x50750a[_0xaf66('0x33')]['offset']);}_0x203053['order']=qs[_0xaf66('0x3b')](_0x50750a[_0xaf66('0x33')]['sort']);_0x203053['where']=qs[_0xaf66('0x35')](_[_0xaf66('0x3c')](_0x50750a[_0xaf66('0x33')],_0x2719ec['filters']),_0x255e07);if(_0x50750a[_0xaf66('0x33')][_0xaf66('0x3d')]){_0x203053[_0xaf66('0x3e')]=_[_0xaf66('0x3f')](_0x203053[_0xaf66('0x3e')],{'$or':_[_0xaf66('0x2c')](_0x255e07,function(_0x5dfc07){if(_0x5dfc07[_0xaf66('0x30')]!==_0xaf66('0x40')){var _0x3326fe={};_0x3326fe[_0x5dfc07[_0xaf66('0x29')]]={'$like':'%'+_0x50750a[_0xaf66('0x33')][_0xaf66('0x3d')]+'%'};return _0x3326fe;}})});}_0x203053=_[_0xaf66('0x3f')]({},_0x203053,_0x50750a[_0xaf66('0x41')]);var _0x2bfc59={'where':_0x203053['where']};return db[_0xaf66('0x2d')][_0xaf66('0x1c')](_0x2bfc59)[_0xaf66('0x25')](function(_0x12ff99){_0x576047[_0xaf66('0x1c')]=_0x12ff99;if(_0x50750a['query'][_0xaf66('0x42')]){_0x203053[_0xaf66('0x43')]=[{'all':!![]}];}return db['OpenchannelQueueReport'][_0xaf66('0x44')](_0x203053);})['then'](function(_0x1de6aa){_0x576047[_0xaf66('0x45')]=_0x1de6aa;return _0x576047;})[_0xaf66('0x25')](respondWithFilteredResult(_0x1c1ec5,_0x203053))['catch'](handleError(_0x1c1ec5,null));};exports[_0xaf66('0x46')]=function(_0x1b0f9a,_0x94837){var _0x4dcd03={'raw':!![],'where':{'id':_0x1b0f9a[_0xaf66('0x47')]['id']}},_0x211ae2={};_0x211ae2['model']=_['keys'](db['OpenchannelQueueReport'][_0xaf66('0x2e')]);_0x211ae2['query']=_[_0xaf66('0x34')](_0x1b0f9a[_0xaf66('0x33')]);_0x211ae2['filters']=_['intersection'](_0x211ae2[_0xaf66('0x32')],_0x211ae2[_0xaf66('0x33')]);_0x4dcd03['attributes']=_[_0xaf66('0x36')](_0x211ae2['model'],qs[_0xaf66('0x37')](_0x1b0f9a[_0xaf66('0x33')]['fields']));_0x4dcd03['attributes']=_0x4dcd03[_0xaf66('0x38')][_0xaf66('0x39')]?_0x4dcd03[_0xaf66('0x38')]:_0x211ae2[_0xaf66('0x32')];if(_0x1b0f9a[_0xaf66('0x33')][_0xaf66('0x42')]){_0x4dcd03[_0xaf66('0x43')]=[{'all':!![]}];}_0x4dcd03=_[_0xaf66('0x3f')]({},_0x4dcd03,_0x1b0f9a[_0xaf66('0x41')]);return db[_0xaf66('0x2d')]['find'](_0x4dcd03)[_0xaf66('0x25')](handleEntityNotFound(_0x94837,null))[_0xaf66('0x25')](respondWithResult(_0x94837,null))['catch'](handleError(_0x94837,null));};exports['create']=function(_0x5345b2,_0x25af54){return db[_0xaf66('0x2d')][_0xaf66('0x48')](_0x5345b2['body'],{})[_0xaf66('0x25')](respondWithResult(_0x25af54,0xc9))[_0xaf66('0x49')](handleError(_0x25af54,null));};exports[_0xaf66('0x23')]=function(_0x1b89fb,_0x5306b9){if(_0x1b89fb[_0xaf66('0x4a')]['id']){delete _0x1b89fb[_0xaf66('0x4a')]['id'];}return db[_0xaf66('0x2d')]['find']({'where':{'id':_0x1b89fb[_0xaf66('0x47')]['id']}})[_0xaf66('0x25')](handleEntityNotFound(_0x5306b9,null))[_0xaf66('0x25')](saveUpdates(_0x1b89fb['body'],null))[_0xaf66('0x25')](respondWithResult(_0x5306b9,null))[_0xaf66('0x49')](handleError(_0x5306b9,null));};exports[_0xaf66('0x24')]=function(_0x3b412e,_0x227fe7){return db[_0xaf66('0x2d')][_0xaf66('0x4b')]({'where':{'id':_0x3b412e['params']['id']}})[_0xaf66('0x25')](handleEntityNotFound(_0x227fe7,null))[_0xaf66('0x25')](removeEntity(_0x227fe7,null))[_0xaf66('0x49')](handleError(_0x227fe7,null));};exports[_0xaf66('0x4c')]=function(_0x4f3037,_0x46bf00){return db['OpenchannelQueueReport']['describe']()[_0xaf66('0x25')](respondWithResult(_0x46bf00,null))['catch'](handleError(_0x46bf00,null));};
\ No newline at end of file
+var _0xeeb3=['util','to-csv','ejs','fs-extra','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','apply','reject','update','then','destroy','error','name','send','map','OpenchannelQueueReport','rawAttributes','fieldName','type','key','model','keys','query','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','filters','filter','merge','where','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','describe','eml-format','rimraf','fast-json-patch','moment','bluebird','mustache'];(function(_0x43afbb,_0x448109){var _0xa9ddec=function(_0x4e965f){while(--_0x4e965f){_0x43afbb['push'](_0x43afbb['shift']());}};_0xa9ddec(++_0x448109);}(_0xeeb3,0x162));var _0x3eeb=function(_0x12c333,_0x178cee){_0x12c333=_0x12c333-0x0;var _0x2e6326=_0xeeb3[_0x12c333];return _0x2e6326;};'use strict';var emlformat=require(_0x3eeb('0x0'));var rimraf=require(_0x3eeb('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3eeb('0x2'));var rp=require('request-promise');var moment=require(_0x3eeb('0x3'));var BPromise=require(_0x3eeb('0x4'));var Mustache=require(_0x3eeb('0x5'));var util=require(_0x3eeb('0x6'));var path=require('path');var sox=require('sox');var csv=require(_0x3eeb('0x7'));var ejs=require(_0x3eeb('0x8'));var fs=require('fs');var fs_extra=require(_0x3eeb('0x9'));var _=require('lodash');var squel=require(_0x3eeb('0xa'));var crypto=require(_0x3eeb('0xb'));var jsforce=require(_0x3eeb('0xc'));var deskjs=require(_0x3eeb('0xd'));var toCsv=require(_0x3eeb('0x7'));var querystring=require(_0x3eeb('0xe'));var Papa=require(_0x3eeb('0xf'));var Redis=require(_0x3eeb('0x10'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x3eeb('0x11'));var hardwareService=require(_0x3eeb('0x12'));var logger=require(_0x3eeb('0x13'))('api');var utils=require('../../config/utils');var config=require(_0x3eeb('0x14'));var licenseUtil=require(_0x3eeb('0x15'));var db=require(_0x3eeb('0x16'))['db'];function respondWithStatusCode(_0x173dfd,_0xa835bd){_0xa835bd=_0xa835bd||0xcc;return function(_0x2544f8){if(_0x2544f8){return _0x173dfd[_0x3eeb('0x17')](_0xa835bd);}return _0x173dfd[_0x3eeb('0x18')](_0xa835bd)[_0x3eeb('0x19')]();};}function respondWithResult(_0x4acb30,_0x46a07c){_0x46a07c=_0x46a07c||0xc8;return function(_0x135377){if(_0x135377){return _0x4acb30[_0x3eeb('0x18')](_0x46a07c)[_0x3eeb('0x1a')](_0x135377);}};}function respondWithFilteredResult(_0x546775,_0x4b8dbd){return function(_0x16b082){if(_0x16b082){var _0x5a440f=typeof _0x4b8dbd[_0x3eeb('0x1b')]===_0x3eeb('0x1c')&&typeof _0x4b8dbd[_0x3eeb('0x1d')]==='undefined';var _0x35654f=_0x16b082[_0x3eeb('0x1e')];var _0x30b47a=_0x5a440f?0x0:_0x4b8dbd[_0x3eeb('0x1b')];var _0x38dd63=_0x5a440f?_0x16b082[_0x3eeb('0x1e')]:_0x4b8dbd[_0x3eeb('0x1b')]+_0x4b8dbd[_0x3eeb('0x1d')];var _0x48f35f;if(_0x38dd63>=_0x35654f){_0x38dd63=_0x35654f;_0x48f35f=0xc8;}else{_0x48f35f=0xce;}_0x546775[_0x3eeb('0x18')](_0x48f35f);return _0x546775['set']('Content-Range',_0x30b47a+'-'+_0x38dd63+'/'+_0x35654f)[_0x3eeb('0x1a')](_0x16b082);}return null;};}function patchUpdates(_0x1c7181){return function(_0x108a5c){try{jsonpatch[_0x3eeb('0x1f')](_0x108a5c,_0x1c7181,!![]);}catch(_0x2e50d2){return BPromise[_0x3eeb('0x20')](_0x2e50d2);}return _0x108a5c['save']();};}function saveUpdates(_0x160945,_0x17bd26){return function(_0x43c9dd){if(_0x43c9dd){return _0x43c9dd[_0x3eeb('0x21')](_0x160945)[_0x3eeb('0x22')](function(_0x4ec555){return _0x4ec555;});}return null;};}function removeEntity(_0x4212a7,_0x43b55d){return function(_0x1d541a){if(_0x1d541a){return _0x1d541a[_0x3eeb('0x23')]()['then'](function(){_0x4212a7[_0x3eeb('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x48afdb,_0x351127){return function(_0x30c4f2){if(!_0x30c4f2){_0x48afdb[_0x3eeb('0x17')](0x194);}return _0x30c4f2;};}function handleError(_0x365b17,_0x5b6cfc){_0x5b6cfc=_0x5b6cfc||0x1f4;return function(_0x38f2e4){logger[_0x3eeb('0x24')](_0x38f2e4['stack']);if(_0x38f2e4[_0x3eeb('0x25')]){delete _0x38f2e4[_0x3eeb('0x25')];}_0x365b17[_0x3eeb('0x18')](_0x5b6cfc)[_0x3eeb('0x26')](_0x38f2e4);};}exports['index']=function(_0x3047e4,_0x456744){var _0x897744={},_0x151e0c={},_0x1bd714={'count':0x0,'rows':[]};var _0x2449ac=_[_0x3eeb('0x27')](db[_0x3eeb('0x28')][_0x3eeb('0x29')],function(_0x142067){return{'name':_0x142067[_0x3eeb('0x2a')],'type':_0x142067[_0x3eeb('0x2b')][_0x3eeb('0x2c')]};});_0x151e0c[_0x3eeb('0x2d')]=_[_0x3eeb('0x27')](_0x2449ac,'name');_0x151e0c['query']=_[_0x3eeb('0x2e')](_0x3047e4[_0x3eeb('0x2f')]);_0x151e0c['filters']=_[_0x3eeb('0x30')](_0x151e0c['model'],_0x151e0c['query']);_0x897744['attributes']=_['intersection'](_0x151e0c[_0x3eeb('0x2d')],qs[_0x3eeb('0x31')](_0x3047e4[_0x3eeb('0x2f')][_0x3eeb('0x31')]));_0x897744[_0x3eeb('0x32')]=_0x897744[_0x3eeb('0x32')][_0x3eeb('0x33')]?_0x897744[_0x3eeb('0x32')]:_0x151e0c[_0x3eeb('0x2d')];if(!_0x3047e4['query'][_0x3eeb('0x34')](_0x3eeb('0x35'))){_0x897744[_0x3eeb('0x1d')]=qs[_0x3eeb('0x1d')](_0x3047e4['query'][_0x3eeb('0x1d')]);_0x897744[_0x3eeb('0x1b')]=qs['offset'](_0x3047e4[_0x3eeb('0x2f')][_0x3eeb('0x1b')]);}_0x897744[_0x3eeb('0x36')]=qs[_0x3eeb('0x37')](_0x3047e4[_0x3eeb('0x2f')][_0x3eeb('0x37')]);_0x897744['where']=qs['filters'](_['pick'](_0x3047e4[_0x3eeb('0x2f')],_0x151e0c[_0x3eeb('0x38')]),_0x2449ac);if(_0x3047e4[_0x3eeb('0x2f')][_0x3eeb('0x39')]){_0x897744['where']=_[_0x3eeb('0x3a')](_0x897744[_0x3eeb('0x3b')],{'$or':_[_0x3eeb('0x27')](_0x2449ac,function(_0x292c9f){if(_0x292c9f[_0x3eeb('0x2b')]!=='VIRTUAL'){var _0x303d20={};_0x303d20[_0x292c9f[_0x3eeb('0x25')]]={'$like':'%'+_0x3047e4['query'][_0x3eeb('0x39')]+'%'};return _0x303d20;}})});}_0x897744=_[_0x3eeb('0x3a')]({},_0x897744,_0x3047e4[_0x3eeb('0x3c')]);var _0xbb1506={'where':_0x897744[_0x3eeb('0x3b')]};return db[_0x3eeb('0x28')]['count'](_0xbb1506)[_0x3eeb('0x22')](function(_0x47e8c0){_0x1bd714['count']=_0x47e8c0;if(_0x3047e4['query'][_0x3eeb('0x3d')]){_0x897744[_0x3eeb('0x3e')]=[{'all':!![]}];}return db[_0x3eeb('0x28')][_0x3eeb('0x3f')](_0x897744);})[_0x3eeb('0x22')](function(_0xb053b0){_0x1bd714[_0x3eeb('0x40')]=_0xb053b0;return _0x1bd714;})['then'](respondWithFilteredResult(_0x456744,_0x897744))[_0x3eeb('0x41')](handleError(_0x456744,null));};exports[_0x3eeb('0x42')]=function(_0x7d8f72,_0x252273){var _0x114016={'raw':!![],'where':{'id':_0x7d8f72[_0x3eeb('0x43')]['id']}},_0x5c5f81={};_0x5c5f81['model']=_['keys'](db[_0x3eeb('0x28')][_0x3eeb('0x29')]);_0x5c5f81[_0x3eeb('0x2f')]=_['keys'](_0x7d8f72[_0x3eeb('0x2f')]);_0x5c5f81[_0x3eeb('0x38')]=_[_0x3eeb('0x30')](_0x5c5f81['model'],_0x5c5f81['query']);_0x114016[_0x3eeb('0x32')]=_[_0x3eeb('0x30')](_0x5c5f81[_0x3eeb('0x2d')],qs[_0x3eeb('0x31')](_0x7d8f72[_0x3eeb('0x2f')][_0x3eeb('0x31')]));_0x114016[_0x3eeb('0x32')]=_0x114016['attributes'][_0x3eeb('0x33')]?_0x114016[_0x3eeb('0x32')]:_0x5c5f81[_0x3eeb('0x2d')];if(_0x7d8f72[_0x3eeb('0x2f')][_0x3eeb('0x3d')]){_0x114016['include']=[{'all':!![]}];}_0x114016=_['merge']({},_0x114016,_0x7d8f72[_0x3eeb('0x3c')]);return db[_0x3eeb('0x28')][_0x3eeb('0x44')](_0x114016)[_0x3eeb('0x22')](handleEntityNotFound(_0x252273,null))['then'](respondWithResult(_0x252273,null))[_0x3eeb('0x41')](handleError(_0x252273,null));};exports[_0x3eeb('0x45')]=function(_0x5b5d56,_0x539e17){return db['OpenchannelQueueReport'][_0x3eeb('0x45')](_0x5b5d56[_0x3eeb('0x46')],{})[_0x3eeb('0x22')](respondWithResult(_0x539e17,0xc9))[_0x3eeb('0x41')](handleError(_0x539e17,null));};exports[_0x3eeb('0x21')]=function(_0x1a765d,_0x46f430){if(_0x1a765d[_0x3eeb('0x46')]['id']){delete _0x1a765d[_0x3eeb('0x46')]['id'];}return db[_0x3eeb('0x28')][_0x3eeb('0x44')]({'where':{'id':_0x1a765d[_0x3eeb('0x43')]['id']}})[_0x3eeb('0x22')](handleEntityNotFound(_0x46f430,null))[_0x3eeb('0x22')](saveUpdates(_0x1a765d[_0x3eeb('0x46')],null))[_0x3eeb('0x22')](respondWithResult(_0x46f430,null))['catch'](handleError(_0x46f430,null));};exports[_0x3eeb('0x23')]=function(_0x44aa1e,_0x49d443){return db[_0x3eeb('0x28')][_0x3eeb('0x44')]({'where':{'id':_0x44aa1e['params']['id']}})[_0x3eeb('0x22')](handleEntityNotFound(_0x49d443,null))[_0x3eeb('0x22')](removeEntity(_0x49d443,null))['catch'](handleError(_0x49d443,null));};exports[_0x3eeb('0x47')]=function(_0x5737a9,_0x2d1bc8){return db[_0x3eeb('0x28')]['describe']()[_0x3eeb('0x22')](respondWithResult(_0x2d1bc8,null))[_0x3eeb('0x41')](handleError(_0x2d1bc8,null));};
\ No newline at end of file