Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / openchannelQueueReport / openchannelQueueReport.controller.js
index fd5ed79..a95819f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f99=['path','sox','to-csv','ejs','lodash','crypto','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','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','then','destroy','name','rawAttributes','type','key','model','map','query','keys','filters','attributes','intersection','fields','hasOwnProperty','order','sort','where','merge','VIRTUAL','filter','options','OpenchannelQueueReport','includeAll','include','show','params','length','find','catch','create','update','body','html-pdf','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache'];(function(_0x770f7,_0x3af003){var _0xe797c6=function(_0x47d92a){while(--_0x47d92a){_0x770f7['push'](_0x770f7['shift']());}};_0xe797c6(++_0x3af003);}(_0x4f99,0x157));var _0x94f9=function(_0x5d5ab2,_0x1d3681){_0x5d5ab2=_0x5d5ab2-0x0;var _0xb8fe37=_0x4f99[_0x5d5ab2];return _0xb8fe37;};'use strict';var pdf=require(_0x94f9('0x0'));var emlformat=require(_0x94f9('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x94f9('0x2'));var jsonpatch=require(_0x94f9('0x3'));var rp=require(_0x94f9('0x4'));var moment=require('moment');var BPromise=require(_0x94f9('0x5'));var Mustache=require(_0x94f9('0x6'));var util=require('util');var path=require(_0x94f9('0x7'));var sox=require(_0x94f9('0x8'));var csv=require(_0x94f9('0x9'));var ejs=require(_0x94f9('0xa'));var fs=require('fs');var _=require(_0x94f9('0xb'));var squel=require('squel');var crypto=require(_0x94f9('0xc'));var jsforce=require('jsforce');var deskjs=require(_0x94f9('0xd'));var toCsv=require('to-csv');var querystring=require(_0x94f9('0xe'));var Papa=require('papaparse');var Redis=require(_0x94f9('0xf'));var authService=require(_0x94f9('0x10'));var qs=require(_0x94f9('0x11'));var as=require(_0x94f9('0x12'));var hardwareService=require(_0x94f9('0x13'));var logger=require(_0x94f9('0x14'))(_0x94f9('0x15'));var utils=require('../../config/utils');var config=require(_0x94f9('0x16'));var licenseUtil=require(_0x94f9('0x17'));var db=require(_0x94f9('0x18'))['db'];function respondWithStatusCode(_0x7ec6db,_0x1320e2){_0x1320e2=_0x1320e2||0xcc;return function(_0x4597f4){if(_0x4597f4){return _0x7ec6db[_0x94f9('0x19')](_0x1320e2);}return _0x7ec6db[_0x94f9('0x1a')](_0x1320e2)[_0x94f9('0x1b')]();};}function respondWithResult(_0x13aa55,_0x25e664){_0x25e664=_0x25e664||0xc8;return function(_0x1f2be8){if(_0x1f2be8){return _0x13aa55[_0x94f9('0x1a')](_0x25e664)[_0x94f9('0x1c')](_0x1f2be8);}};}function respondWithFilteredResult(_0x3791c0,_0x53a842){return function(_0x262645){if(_0x262645){var _0x1b2cde=_0x262645[_0x94f9('0x1d')],_0x2f4232=_0x53a842[_0x94f9('0x1e')],_0x5217d4=_0x53a842['offset']+_0x53a842[_0x94f9('0x1f')],_0x490841;if(_0x5217d4>=_0x1b2cde){_0x5217d4=_0x1b2cde;_0x490841=0xc8;}else{_0x490841=0xce;}_0x3791c0['status'](_0x490841);return _0x3791c0[_0x94f9('0x20')](_0x94f9('0x21'),_0x2f4232+'-'+_0x5217d4+'/'+_0x1b2cde)['json'](_0x262645);}return null;};}function patchUpdates(_0x255219){return function(_0x258dd4){try{jsonpatch[_0x94f9('0x22')](_0x258dd4,_0x255219,!![]);}catch(_0x1dc5e7){return BPromise[_0x94f9('0x23')](_0x1dc5e7);}return _0x258dd4[_0x94f9('0x24')]();};}function saveUpdates(_0x4b9051,_0x23a85a){return function(_0x494785){if(_0x494785){return _0x494785['update'](_0x4b9051)[_0x94f9('0x25')](function(_0xd604ee){return _0xd604ee;});}return null;};}function removeEntity(_0x59f2e8,_0x8dca1c){return function(_0x3ddab9){if(_0x3ddab9){return _0x3ddab9[_0x94f9('0x26')]()[_0x94f9('0x25')](function(){_0x59f2e8[_0x94f9('0x1a')](0xcc)[_0x94f9('0x1b')]();});}};}function handleEntityNotFound(_0x4e1eba,_0x35851e){return function(_0x152f40){if(!_0x152f40){_0x4e1eba[_0x94f9('0x19')](0x194);}return _0x152f40;};}function handleError(_0x267216,_0x3d6603){_0x3d6603=_0x3d6603||0x1f4;return function(_0x4bf818){logger['error'](_0x4bf818['stack']);if(_0x4bf818['name']){delete _0x4bf818[_0x94f9('0x27')];}_0x267216['status'](_0x3d6603)['send'](_0x4bf818);};}exports['index']=function(_0x3caaaf,_0x165cb8){var _0x142609={},_0x3d78bf={},_0x24525d={'count':0x0,'rows':[]};var _0x12a99e=_['map'](db['OpenchannelQueueReport'][_0x94f9('0x28')],function(_0x46815d){return{'name':_0x46815d['fieldName'],'type':_0x46815d[_0x94f9('0x29')][_0x94f9('0x2a')]};});_0x3d78bf[_0x94f9('0x2b')]=_[_0x94f9('0x2c')](_0x12a99e,_0x94f9('0x27'));_0x3d78bf[_0x94f9('0x2d')]=_[_0x94f9('0x2e')](_0x3caaaf['query']);_0x3d78bf[_0x94f9('0x2f')]=_['intersection'](_0x3d78bf[_0x94f9('0x2b')],_0x3d78bf[_0x94f9('0x2d')]);_0x142609[_0x94f9('0x30')]=_[_0x94f9('0x31')](_0x3d78bf[_0x94f9('0x2b')],qs[_0x94f9('0x32')](_0x3caaaf[_0x94f9('0x2d')][_0x94f9('0x32')]));_0x142609['attributes']=_0x142609[_0x94f9('0x30')]['length']?_0x142609[_0x94f9('0x30')]:_0x3d78bf[_0x94f9('0x2b')];if(!_0x3caaaf[_0x94f9('0x2d')][_0x94f9('0x33')]('nolimit')){_0x142609[_0x94f9('0x1f')]=qs[_0x94f9('0x1f')](_0x3caaaf['query'][_0x94f9('0x1f')]);_0x142609[_0x94f9('0x1e')]=qs[_0x94f9('0x1e')](_0x3caaaf[_0x94f9('0x2d')][_0x94f9('0x1e')]);}_0x142609[_0x94f9('0x34')]=qs[_0x94f9('0x35')](_0x3caaaf[_0x94f9('0x2d')][_0x94f9('0x35')]);_0x142609['where']=qs['filters'](_['pick'](_0x3caaaf[_0x94f9('0x2d')],_0x3d78bf[_0x94f9('0x2f')]),_0x12a99e);if(_0x3caaaf[_0x94f9('0x2d')]['filter']){_0x142609[_0x94f9('0x36')]=_[_0x94f9('0x37')](_0x142609[_0x94f9('0x36')],{'$or':_['map'](_0x12a99e,function(_0x5d3c03){if(_0x5d3c03[_0x94f9('0x29')]!==_0x94f9('0x38')){var _0x325b73={};_0x325b73[_0x5d3c03['name']]={'$like':'%'+_0x3caaaf[_0x94f9('0x2d')][_0x94f9('0x39')]+'%'};return _0x325b73;}})});}_0x142609=_[_0x94f9('0x37')]({},_0x142609,_0x3caaaf[_0x94f9('0x3a')]);var _0x4cd902={'where':_0x142609[_0x94f9('0x36')]};return db[_0x94f9('0x3b')][_0x94f9('0x1d')](_0x4cd902)[_0x94f9('0x25')](function(_0x3503b0){_0x24525d[_0x94f9('0x1d')]=_0x3503b0;if(_0x3caaaf['query'][_0x94f9('0x3c')]){_0x142609[_0x94f9('0x3d')]=[{'all':!![]}];}return db[_0x94f9('0x3b')]['findAll'](_0x142609);})[_0x94f9('0x25')](function(_0x4f2634){_0x24525d['rows']=_0x4f2634;return _0x24525d;})[_0x94f9('0x25')](respondWithFilteredResult(_0x165cb8,_0x142609))['catch'](handleError(_0x165cb8,null));};exports[_0x94f9('0x3e')]=function(_0x210ace,_0x1f146f){var _0x5c0544={'raw':!![],'where':{'id':_0x210ace[_0x94f9('0x3f')]['id']}},_0x48068c={};_0x48068c[_0x94f9('0x2b')]=_[_0x94f9('0x2e')](db[_0x94f9('0x3b')][_0x94f9('0x28')]);_0x48068c[_0x94f9('0x2d')]=_[_0x94f9('0x2e')](_0x210ace[_0x94f9('0x2d')]);_0x48068c['filters']=_[_0x94f9('0x31')](_0x48068c['model'],_0x48068c['query']);_0x5c0544[_0x94f9('0x30')]=_[_0x94f9('0x31')](_0x48068c['model'],qs[_0x94f9('0x32')](_0x210ace[_0x94f9('0x2d')][_0x94f9('0x32')]));_0x5c0544['attributes']=_0x5c0544[_0x94f9('0x30')][_0x94f9('0x40')]?_0x5c0544[_0x94f9('0x30')]:_0x48068c[_0x94f9('0x2b')];if(_0x210ace[_0x94f9('0x2d')][_0x94f9('0x3c')]){_0x5c0544[_0x94f9('0x3d')]=[{'all':!![]}];}_0x5c0544=_[_0x94f9('0x37')]({},_0x5c0544,_0x210ace['options']);return db[_0x94f9('0x3b')][_0x94f9('0x41')](_0x5c0544)[_0x94f9('0x25')](handleEntityNotFound(_0x1f146f,null))[_0x94f9('0x25')](respondWithResult(_0x1f146f,null))[_0x94f9('0x42')](handleError(_0x1f146f,null));};exports[_0x94f9('0x43')]=function(_0x1519d8,_0x4bd458){return db[_0x94f9('0x3b')][_0x94f9('0x43')](_0x1519d8['body'],{})['then'](respondWithResult(_0x4bd458,0xc9))[_0x94f9('0x42')](handleError(_0x4bd458,null));};exports[_0x94f9('0x44')]=function(_0x6c938b,_0x111071){if(_0x6c938b[_0x94f9('0x45')]['id']){delete _0x6c938b[_0x94f9('0x45')]['id'];}return db[_0x94f9('0x3b')][_0x94f9('0x41')]({'where':{'id':_0x6c938b[_0x94f9('0x3f')]['id']}})[_0x94f9('0x25')](handleEntityNotFound(_0x111071,null))[_0x94f9('0x25')](saveUpdates(_0x6c938b[_0x94f9('0x45')],null))[_0x94f9('0x25')](respondWithResult(_0x111071,null))['catch'](handleError(_0x111071,null));};exports[_0x94f9('0x26')]=function(_0x37ed34,_0x3ed240){return db[_0x94f9('0x3b')][_0x94f9('0x41')]({'where':{'id':_0x37ed34[_0x94f9('0x3f')]['id']}})['then'](handleEntityNotFound(_0x3ed240,null))['then'](removeEntity(_0x3ed240,null))[_0x94f9('0x42')](handleError(_0x3ed240,null));};exports['describe']=function(_0x2d74e1,_0x16b35d){return db[_0x94f9('0x3b')]['describe']()[_0x94f9('0x25')](respondWithResult(_0x16b35d,null))[_0x94f9('0x42')](handleError(_0x16b35d,null));};
\ No newline at end of file
+var _0xa521=['desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','offset','undefined','limit','count','set','json','apply','reject','save','update','then','error','name','index','map','OpenchannelQueueReport','rawAttributes','fieldName','type','key','model','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','params','keys','create','body','find','describe','eml-format','rimraf','request-promise','moment','bluebird','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce'];(function(_0x1d0184,_0x3fa782){var _0x364129=function(_0x14475f){while(--_0x14475f){_0x1d0184['push'](_0x1d0184['shift']());}};_0x364129(++_0x3fa782);}(_0xa521,0x1c0));var _0x1a52=function(_0x3f377b,_0x197ac1){_0x3f377b=_0x3f377b-0x0;var _0x394626=_0xa521[_0x3f377b];return _0x394626;};'use strict';var emlformat=require(_0x1a52('0x0'));var rimraf=require(_0x1a52('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x1a52('0x2'));var moment=require(_0x1a52('0x3'));var BPromise=require(_0x1a52('0x4'));var Mustache=require('mustache');var util=require(_0x1a52('0x5'));var path=require('path');var sox=require(_0x1a52('0x6'));var csv=require(_0x1a52('0x7'));var ejs=require(_0x1a52('0x8'));var fs=require('fs');var fs_extra=require(_0x1a52('0x9'));var _=require(_0x1a52('0xa'));var squel=require(_0x1a52('0xb'));var crypto=require(_0x1a52('0xc'));var jsforce=require(_0x1a52('0xd'));var deskjs=require(_0x1a52('0xe'));var toCsv=require(_0x1a52('0x7'));var querystring=require(_0x1a52('0xf'));var Papa=require(_0x1a52('0x10'));var Redis=require(_0x1a52('0x11'));var authService=require(_0x1a52('0x12'));var qs=require(_0x1a52('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x1a52('0x14'));var logger=require(_0x1a52('0x15'))(_0x1a52('0x16'));var utils=require(_0x1a52('0x17'));var config=require(_0x1a52('0x18'));var licenseUtil=require('../../config/license/util');var db=require(_0x1a52('0x19'))['db'];function respondWithStatusCode(_0x543aed,_0x214408){_0x214408=_0x214408||0xcc;return function(_0x34b9dc){if(_0x34b9dc){return _0x543aed[_0x1a52('0x1a')](_0x214408);}return _0x543aed[_0x1a52('0x1b')](_0x214408)[_0x1a52('0x1c')]();};}function respondWithResult(_0x5c01bb,_0x3cccec){_0x3cccec=_0x3cccec||0xc8;return function(_0x31d999){if(_0x31d999){return _0x5c01bb[_0x1a52('0x1b')](_0x3cccec)['json'](_0x31d999);}};}function respondWithFilteredResult(_0x238b9f,_0x74b35){return function(_0x273506){if(_0x273506){var _0x5b7283=typeof _0x74b35[_0x1a52('0x1d')]===_0x1a52('0x1e')&&typeof _0x74b35[_0x1a52('0x1f')]===_0x1a52('0x1e');var _0xe22ca1=_0x273506[_0x1a52('0x20')];var _0x3aa539=_0x5b7283?0x0:_0x74b35[_0x1a52('0x1d')];var _0x3f4d9e=_0x5b7283?_0x273506['count']:_0x74b35['offset']+_0x74b35[_0x1a52('0x1f')];var _0x5904b3;if(_0x3f4d9e>=_0xe22ca1){_0x3f4d9e=_0xe22ca1;_0x5904b3=0xc8;}else{_0x5904b3=0xce;}_0x238b9f[_0x1a52('0x1b')](_0x5904b3);return _0x238b9f[_0x1a52('0x21')]('Content-Range',_0x3aa539+'-'+_0x3f4d9e+'/'+_0xe22ca1)[_0x1a52('0x22')](_0x273506);}return null;};}function patchUpdates(_0x381c66){return function(_0xaf42a6){try{jsonpatch[_0x1a52('0x23')](_0xaf42a6,_0x381c66,!![]);}catch(_0x31276c){return BPromise[_0x1a52('0x24')](_0x31276c);}return _0xaf42a6[_0x1a52('0x25')]();};}function saveUpdates(_0x4b5f2c,_0x3f3a4c){return function(_0x421601){if(_0x421601){return _0x421601[_0x1a52('0x26')](_0x4b5f2c)[_0x1a52('0x27')](function(_0x2850c0){return _0x2850c0;});}return null;};}function removeEntity(_0x4e2cfc,_0x1e268f){return function(_0x1998b4){if(_0x1998b4){return _0x1998b4['destroy']()[_0x1a52('0x27')](function(){_0x4e2cfc[_0x1a52('0x1b')](0xcc)[_0x1a52('0x1c')]();});}};}function handleEntityNotFound(_0x418f57,_0x923d01){return function(_0x537b84){if(!_0x537b84){_0x418f57[_0x1a52('0x1a')](0x194);}return _0x537b84;};}function handleError(_0x2322b2,_0x427951){_0x427951=_0x427951||0x1f4;return function(_0x478dec){logger[_0x1a52('0x28')](_0x478dec['stack']);if(_0x478dec[_0x1a52('0x29')]){delete _0x478dec[_0x1a52('0x29')];}_0x2322b2[_0x1a52('0x1b')](_0x427951)['send'](_0x478dec);};}exports[_0x1a52('0x2a')]=function(_0x3b1f,_0x25edb4){var _0x4b0c45={},_0x25d260={},_0x2618b0={'count':0x0,'rows':[]};var _0x192802=_[_0x1a52('0x2b')](db[_0x1a52('0x2c')][_0x1a52('0x2d')],function(_0x27e8a2){return{'name':_0x27e8a2[_0x1a52('0x2e')],'type':_0x27e8a2[_0x1a52('0x2f')][_0x1a52('0x30')]};});_0x25d260[_0x1a52('0x31')]=_[_0x1a52('0x2b')](_0x192802,_0x1a52('0x29'));_0x25d260['query']=_['keys'](_0x3b1f[_0x1a52('0x32')]);_0x25d260[_0x1a52('0x33')]=_[_0x1a52('0x34')](_0x25d260[_0x1a52('0x31')],_0x25d260[_0x1a52('0x32')]);_0x4b0c45[_0x1a52('0x35')]=_['intersection'](_0x25d260[_0x1a52('0x31')],qs[_0x1a52('0x36')](_0x3b1f[_0x1a52('0x32')][_0x1a52('0x36')]));_0x4b0c45[_0x1a52('0x35')]=_0x4b0c45['attributes'][_0x1a52('0x37')]?_0x4b0c45[_0x1a52('0x35')]:_0x25d260[_0x1a52('0x31')];if(!_0x3b1f[_0x1a52('0x32')][_0x1a52('0x38')](_0x1a52('0x39'))){_0x4b0c45[_0x1a52('0x1f')]=qs[_0x1a52('0x1f')](_0x3b1f[_0x1a52('0x32')][_0x1a52('0x1f')]);_0x4b0c45[_0x1a52('0x1d')]=qs[_0x1a52('0x1d')](_0x3b1f[_0x1a52('0x32')][_0x1a52('0x1d')]);}_0x4b0c45[_0x1a52('0x3a')]=qs['sort'](_0x3b1f['query'][_0x1a52('0x3b')]);_0x4b0c45[_0x1a52('0x3c')]=qs[_0x1a52('0x33')](_[_0x1a52('0x3d')](_0x3b1f[_0x1a52('0x32')],_0x25d260[_0x1a52('0x33')]),_0x192802);if(_0x3b1f[_0x1a52('0x32')][_0x1a52('0x3e')]){_0x4b0c45['where']=_[_0x1a52('0x3f')](_0x4b0c45[_0x1a52('0x3c')],{'$or':_[_0x1a52('0x2b')](_0x192802,function(_0x3aa062){if(_0x3aa062['type']!==_0x1a52('0x40')){var _0x59e8b0={};_0x59e8b0[_0x3aa062[_0x1a52('0x29')]]={'$like':'%'+_0x3b1f[_0x1a52('0x32')][_0x1a52('0x3e')]+'%'};return _0x59e8b0;}})});}_0x4b0c45=_['merge']({},_0x4b0c45,_0x3b1f[_0x1a52('0x41')]);var _0x2d81ec={'where':_0x4b0c45[_0x1a52('0x3c')]};return db[_0x1a52('0x2c')][_0x1a52('0x20')](_0x2d81ec)[_0x1a52('0x27')](function(_0x35a936){_0x2618b0[_0x1a52('0x20')]=_0x35a936;if(_0x3b1f[_0x1a52('0x32')][_0x1a52('0x42')]){_0x4b0c45[_0x1a52('0x43')]=[{'all':!![]}];}return db[_0x1a52('0x2c')][_0x1a52('0x44')](_0x4b0c45);})[_0x1a52('0x27')](function(_0x94484c){_0x2618b0[_0x1a52('0x45')]=_0x94484c;return _0x2618b0;})[_0x1a52('0x27')](respondWithFilteredResult(_0x25edb4,_0x4b0c45))[_0x1a52('0x46')](handleError(_0x25edb4,null));};exports['show']=function(_0x3c45cb,_0x206dc4){var _0x3f314f={'raw':!![],'where':{'id':_0x3c45cb[_0x1a52('0x47')]['id']}},_0x2f15f7={};_0x2f15f7['model']=_['keys'](db['OpenchannelQueueReport'][_0x1a52('0x2d')]);_0x2f15f7['query']=_[_0x1a52('0x48')](_0x3c45cb[_0x1a52('0x32')]);_0x2f15f7[_0x1a52('0x33')]=_[_0x1a52('0x34')](_0x2f15f7[_0x1a52('0x31')],_0x2f15f7[_0x1a52('0x32')]);_0x3f314f[_0x1a52('0x35')]=_[_0x1a52('0x34')](_0x2f15f7[_0x1a52('0x31')],qs[_0x1a52('0x36')](_0x3c45cb[_0x1a52('0x32')][_0x1a52('0x36')]));_0x3f314f[_0x1a52('0x35')]=_0x3f314f[_0x1a52('0x35')][_0x1a52('0x37')]?_0x3f314f['attributes']:_0x2f15f7[_0x1a52('0x31')];if(_0x3c45cb[_0x1a52('0x32')]['includeAll']){_0x3f314f[_0x1a52('0x43')]=[{'all':!![]}];}_0x3f314f=_[_0x1a52('0x3f')]({},_0x3f314f,_0x3c45cb[_0x1a52('0x41')]);return db[_0x1a52('0x2c')]['find'](_0x3f314f)[_0x1a52('0x27')](handleEntityNotFound(_0x206dc4,null))[_0x1a52('0x27')](respondWithResult(_0x206dc4,null))[_0x1a52('0x46')](handleError(_0x206dc4,null));};exports['create']=function(_0x22efed,_0x3ef074){return db[_0x1a52('0x2c')][_0x1a52('0x49')](_0x22efed[_0x1a52('0x4a')],{})[_0x1a52('0x27')](respondWithResult(_0x3ef074,0xc9))[_0x1a52('0x46')](handleError(_0x3ef074,null));};exports['update']=function(_0x438ca8,_0x5e4d15){if(_0x438ca8['body']['id']){delete _0x438ca8[_0x1a52('0x4a')]['id'];}return db[_0x1a52('0x2c')][_0x1a52('0x4b')]({'where':{'id':_0x438ca8[_0x1a52('0x47')]['id']}})[_0x1a52('0x27')](handleEntityNotFound(_0x5e4d15,null))[_0x1a52('0x27')](saveUpdates(_0x438ca8[_0x1a52('0x4a')],null))[_0x1a52('0x27')](respondWithResult(_0x5e4d15,null))[_0x1a52('0x46')](handleError(_0x5e4d15,null));};exports['destroy']=function(_0x30466d,_0x49297f){return db[_0x1a52('0x2c')][_0x1a52('0x4b')]({'where':{'id':_0x30466d[_0x1a52('0x47')]['id']}})['then'](handleEntityNotFound(_0x49297f,null))[_0x1a52('0x27')](removeEntity(_0x49297f,null))['catch'](handleError(_0x49297f,null));};exports[_0x1a52('0x4c')]=function(_0xcb8b0d,_0x1363a0){return db[_0x1a52('0x2c')][_0x1a52('0x4c')]()['then'](respondWithResult(_0x1363a0,null))[_0x1a52('0x46')](handleError(_0x1363a0,null));};
\ No newline at end of file