Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / chatQueueReport / chatQueueReport.controller.js
index 14337d5..526851e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc21c=['path','sox','to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js','papaparse','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','status','json','undefined','count','offset','limit','set','Content-Range','reject','update','then','error','stack','name','send','index','map','ChatQueueReport','type','query','intersection','model','fields','attributes','nolimit','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','includeAll','include','rows','catch','show','params','keys','rawAttributes','length','find','create','body','destroy','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','util'];(function(_0x19416d,_0x54c85e){var _0x17528f=function(_0x29fb3f){while(--_0x29fb3f){_0x19416d['push'](_0x19416d['shift']());}};_0x17528f(++_0x54c85e);}(_0xc21c,0x166));var _0xcc21=function(_0x4e9e28,_0x2d65eb){_0x4e9e28=_0x4e9e28-0x0;var _0x2e5e01=_0xc21c[_0x4e9e28];return _0x2e5e01;};'use strict';var emlformat=require(_0xcc21('0x0'));var rimraf=require(_0xcc21('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xcc21('0x2'));var rp=require(_0xcc21('0x3'));var moment=require(_0xcc21('0x4'));var BPromise=require(_0xcc21('0x5'));var Mustache=require('mustache');var util=require(_0xcc21('0x6'));var path=require(_0xcc21('0x7'));var sox=require(_0xcc21('0x8'));var csv=require(_0xcc21('0x9'));var ejs=require(_0xcc21('0xa'));var fs=require('fs');var fs_extra=require(_0xcc21('0xb'));var _=require(_0xcc21('0xc'));var squel=require('squel');var crypto=require(_0xcc21('0xd'));var jsforce=require(_0xcc21('0xe'));var deskjs=require(_0xcc21('0xf'));var toCsv=require(_0xcc21('0x9'));var querystring=require('querystring');var Papa=require(_0xcc21('0x10'));var Redis=require('ioredis');var authService=require(_0xcc21('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0xcc21('0x12'));var hardwareService=require(_0xcc21('0x13'));var logger=require('../../config/logger')('api');var utils=require(_0xcc21('0x14'));var config=require(_0xcc21('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0xcc21('0x16'))['db'];function respondWithStatusCode(_0x5a9e2e,_0x3c45c7){_0x3c45c7=_0x3c45c7||0xcc;return function(_0x1b0454){if(_0x1b0454){return _0x5a9e2e[_0xcc21('0x17')](_0x3c45c7);}return _0x5a9e2e['status'](_0x3c45c7)[_0xcc21('0x18')]();};}function respondWithResult(_0x4d183b,_0xdd42cd){_0xdd42cd=_0xdd42cd||0xc8;return function(_0x35b642){if(_0x35b642){return _0x4d183b[_0xcc21('0x19')](_0xdd42cd)[_0xcc21('0x1a')](_0x35b642);}};}function respondWithFilteredResult(_0x6e9b5a,_0x123438){return function(_0x160e8d){if(_0x160e8d){var _0x5b3cd2=typeof _0x123438['offset']===_0xcc21('0x1b')&&typeof _0x123438['limit']===_0xcc21('0x1b');var _0x207b02=_0x160e8d[_0xcc21('0x1c')];var _0x132145=_0x5b3cd2?0x0:_0x123438[_0xcc21('0x1d')];var _0x5a727c=_0x5b3cd2?_0x160e8d[_0xcc21('0x1c')]:_0x123438[_0xcc21('0x1d')]+_0x123438[_0xcc21('0x1e')];var _0x309350;if(_0x5a727c>=_0x207b02){_0x5a727c=_0x207b02;_0x309350=0xc8;}else{_0x309350=0xce;}_0x6e9b5a['status'](_0x309350);return _0x6e9b5a[_0xcc21('0x1f')](_0xcc21('0x20'),_0x132145+'-'+_0x5a727c+'/'+_0x207b02)[_0xcc21('0x1a')](_0x160e8d);}return null;};}function patchUpdates(_0x36cf4e){return function(_0x21e12c){try{jsonpatch['apply'](_0x21e12c,_0x36cf4e,!![]);}catch(_0x668f39){return BPromise[_0xcc21('0x21')](_0x668f39);}return _0x21e12c['save']();};}function saveUpdates(_0x5d8ce3,_0x10f49b){return function(_0x597ecf){if(_0x597ecf){return _0x597ecf[_0xcc21('0x22')](_0x5d8ce3)[_0xcc21('0x23')](function(_0x38ec30){return _0x38ec30;});}return null;};}function removeEntity(_0x44e857,_0x438d6c){return function(_0x266c92){if(_0x266c92){return _0x266c92['destroy']()[_0xcc21('0x23')](function(){_0x44e857['status'](0xcc)[_0xcc21('0x18')]();});}};}function handleEntityNotFound(_0x3a5c4a,_0x3cc9ab){return function(_0x2dcd5e){if(!_0x2dcd5e){_0x3a5c4a['sendStatus'](0x194);}return _0x2dcd5e;};}function handleError(_0xedaa8a,_0x522348){_0x522348=_0x522348||0x1f4;return function(_0x6280ac){logger[_0xcc21('0x24')](_0x6280ac[_0xcc21('0x25')]);if(_0x6280ac[_0xcc21('0x26')]){delete _0x6280ac[_0xcc21('0x26')];}_0xedaa8a[_0xcc21('0x19')](_0x522348)[_0xcc21('0x27')](_0x6280ac);};}exports[_0xcc21('0x28')]=function(_0x1a8fef,_0x4274f1){var _0x5b85b3={},_0x304658={},_0x55caf0={'count':0x0,'rows':[]};var _0x10b19f=_[_0xcc21('0x29')](db[_0xcc21('0x2a')]['rawAttributes'],function(_0x3c6a7e){return{'name':_0x3c6a7e['fieldName'],'type':_0x3c6a7e[_0xcc21('0x2b')]['key']};});_0x304658['model']=_['map'](_0x10b19f,'name');_0x304658[_0xcc21('0x2c')]=_['keys'](_0x1a8fef[_0xcc21('0x2c')]);_0x304658['filters']=_[_0xcc21('0x2d')](_0x304658[_0xcc21('0x2e')],_0x304658[_0xcc21('0x2c')]);_0x5b85b3['attributes']=_[_0xcc21('0x2d')](_0x304658[_0xcc21('0x2e')],qs[_0xcc21('0x2f')](_0x1a8fef[_0xcc21('0x2c')]['fields']));_0x5b85b3['attributes']=_0x5b85b3[_0xcc21('0x30')]['length']?_0x5b85b3[_0xcc21('0x30')]:_0x304658[_0xcc21('0x2e')];if(!_0x1a8fef[_0xcc21('0x2c')]['hasOwnProperty'](_0xcc21('0x31'))){_0x5b85b3['limit']=qs['limit'](_0x1a8fef[_0xcc21('0x2c')][_0xcc21('0x1e')]);_0x5b85b3['offset']=qs[_0xcc21('0x1d')](_0x1a8fef[_0xcc21('0x2c')][_0xcc21('0x1d')]);}_0x5b85b3[_0xcc21('0x32')]=qs[_0xcc21('0x33')](_0x1a8fef[_0xcc21('0x2c')]['sort']);_0x5b85b3[_0xcc21('0x34')]=qs[_0xcc21('0x35')](_[_0xcc21('0x36')](_0x1a8fef[_0xcc21('0x2c')],_0x304658[_0xcc21('0x35')]),_0x10b19f);if(_0x1a8fef['query'][_0xcc21('0x37')]){_0x5b85b3[_0xcc21('0x34')]=_[_0xcc21('0x38')](_0x5b85b3['where'],{'$or':_[_0xcc21('0x29')](_0x10b19f,function(_0x46748e){if(_0x46748e[_0xcc21('0x2b')]!==_0xcc21('0x39')){var _0x4aec97={};_0x4aec97[_0x46748e['name']]={'$like':'%'+_0x1a8fef[_0xcc21('0x2c')][_0xcc21('0x37')]+'%'};return _0x4aec97;}})});}_0x5b85b3=_['merge']({},_0x5b85b3,_0x1a8fef[_0xcc21('0x3a')]);var _0x3a58af={'where':_0x5b85b3[_0xcc21('0x34')]};return db[_0xcc21('0x2a')][_0xcc21('0x1c')](_0x3a58af)[_0xcc21('0x23')](function(_0xd01693){_0x55caf0[_0xcc21('0x1c')]=_0xd01693;if(_0x1a8fef['query'][_0xcc21('0x3b')]){_0x5b85b3[_0xcc21('0x3c')]=[{'all':!![]}];}return db[_0xcc21('0x2a')]['findAll'](_0x5b85b3);})['then'](function(_0x4ab60e){_0x55caf0[_0xcc21('0x3d')]=_0x4ab60e;return _0x55caf0;})[_0xcc21('0x23')](respondWithFilteredResult(_0x4274f1,_0x5b85b3))[_0xcc21('0x3e')](handleError(_0x4274f1,null));};exports[_0xcc21('0x3f')]=function(_0x3799fb,_0x5db3dc){var _0x2ea49b={'raw':!![],'where':{'id':_0x3799fb[_0xcc21('0x40')]['id']}},_0x2a733a={};_0x2a733a[_0xcc21('0x2e')]=_[_0xcc21('0x41')](db[_0xcc21('0x2a')][_0xcc21('0x42')]);_0x2a733a[_0xcc21('0x2c')]=_[_0xcc21('0x41')](_0x3799fb[_0xcc21('0x2c')]);_0x2a733a[_0xcc21('0x35')]=_[_0xcc21('0x2d')](_0x2a733a['model'],_0x2a733a['query']);_0x2ea49b['attributes']=_[_0xcc21('0x2d')](_0x2a733a[_0xcc21('0x2e')],qs[_0xcc21('0x2f')](_0x3799fb['query']['fields']));_0x2ea49b['attributes']=_0x2ea49b[_0xcc21('0x30')][_0xcc21('0x43')]?_0x2ea49b[_0xcc21('0x30')]:_0x2a733a[_0xcc21('0x2e')];if(_0x3799fb[_0xcc21('0x2c')][_0xcc21('0x3b')]){_0x2ea49b[_0xcc21('0x3c')]=[{'all':!![]}];}_0x2ea49b=_['merge']({},_0x2ea49b,_0x3799fb['options']);return db[_0xcc21('0x2a')][_0xcc21('0x44')](_0x2ea49b)[_0xcc21('0x23')](handleEntityNotFound(_0x5db3dc,null))['then'](respondWithResult(_0x5db3dc,null))[_0xcc21('0x3e')](handleError(_0x5db3dc,null));};exports[_0xcc21('0x45')]=function(_0x2dea80,_0x1ecacd){return db['ChatQueueReport'][_0xcc21('0x45')](_0x2dea80[_0xcc21('0x46')],{})[_0xcc21('0x23')](respondWithResult(_0x1ecacd,0xc9))[_0xcc21('0x3e')](handleError(_0x1ecacd,null));};exports[_0xcc21('0x22')]=function(_0x8e3e18,_0x241506){if(_0x8e3e18[_0xcc21('0x46')]['id']){delete _0x8e3e18['body']['id'];}return db['ChatQueueReport']['find']({'where':{'id':_0x8e3e18['params']['id']}})['then'](handleEntityNotFound(_0x241506,null))[_0xcc21('0x23')](saveUpdates(_0x8e3e18[_0xcc21('0x46')],null))['then'](respondWithResult(_0x241506,null))[_0xcc21('0x3e')](handleError(_0x241506,null));};exports[_0xcc21('0x47')]=function(_0x2cfee1,_0x7e0db3){return db[_0xcc21('0x2a')][_0xcc21('0x44')]({'where':{'id':_0x2cfee1[_0xcc21('0x40')]['id']}})['then'](handleEntityNotFound(_0x7e0db3,null))[_0xcc21('0x23')](removeEntity(_0x7e0db3,null))['catch'](handleError(_0x7e0db3,null));};exports['describe']=function(_0x13addd,_0x3da82b){return db['ChatQueueReport'][_0xcc21('0x48')]()[_0xcc21('0x23')](respondWithResult(_0x3da82b,null))[_0xcc21('0x3e')](handleError(_0x3da82b,null));};
\ No newline at end of file
+var _0xf603=['moment','bluebird','mustache','util','path','sox','to-csv','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/license/util','../../mysqldb','sendStatus','end','json','offset','limit','undefined','count','status','set','apply','reject','save','update','then','destroy','stack','name','send','index','map','ChatQueueReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','pick','filter','merge','options','include','findAll','rows','show','params','find','catch','body','describe','eml-format','rimraf','fast-json-patch','request-promise'];(function(_0x1c1c4d,_0x50a4c1){var _0x248419=function(_0x4338fe){while(--_0x4338fe){_0x1c1c4d['push'](_0x1c1c4d['shift']());}};_0x248419(++_0x50a4c1);}(_0xf603,0x124));var _0x3f60=function(_0x4bb214,_0x5b8720){_0x4bb214=_0x4bb214-0x0;var _0x3b91ac=_0xf603[_0x4bb214];return _0x3b91ac;};'use strict';var emlformat=require(_0x3f60('0x0'));var rimraf=require(_0x3f60('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3f60('0x2'));var rp=require(_0x3f60('0x3'));var moment=require(_0x3f60('0x4'));var BPromise=require(_0x3f60('0x5'));var Mustache=require(_0x3f60('0x6'));var util=require(_0x3f60('0x7'));var path=require(_0x3f60('0x8'));var sox=require(_0x3f60('0x9'));var csv=require(_0x3f60('0xa'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x3f60('0xb'));var crypto=require(_0x3f60('0xc'));var jsforce=require(_0x3f60('0xd'));var deskjs=require(_0x3f60('0xe'));var toCsv=require(_0x3f60('0xa'));var querystring=require(_0x3f60('0xf'));var Papa=require(_0x3f60('0x10'));var Redis=require(_0x3f60('0x11'));var authService=require(_0x3f60('0x12'));var qs=require(_0x3f60('0x13'));var as=require(_0x3f60('0x14'));var hardwareService=require(_0x3f60('0x15'));var logger=require(_0x3f60('0x16'))('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x3f60('0x17'));var db=require(_0x3f60('0x18'))['db'];function respondWithStatusCode(_0x2e79e8,_0x58e120){_0x58e120=_0x58e120||0xcc;return function(_0xeb6151){if(_0xeb6151){return _0x2e79e8[_0x3f60('0x19')](_0x58e120);}return _0x2e79e8['status'](_0x58e120)[_0x3f60('0x1a')]();};}function respondWithResult(_0x1b3e74,_0x53ec7a){_0x53ec7a=_0x53ec7a||0xc8;return function(_0x1ec7f4){if(_0x1ec7f4){return _0x1b3e74['status'](_0x53ec7a)[_0x3f60('0x1b')](_0x1ec7f4);}};}function respondWithFilteredResult(_0x2cd28f,_0x5e7718){return function(_0x3c0e9d){if(_0x3c0e9d){var _0x4e84b5=typeof _0x5e7718[_0x3f60('0x1c')]==='undefined'&&typeof _0x5e7718[_0x3f60('0x1d')]===_0x3f60('0x1e');var _0xbc26c=_0x3c0e9d[_0x3f60('0x1f')];var _0x3ae771=_0x4e84b5?0x0:_0x5e7718[_0x3f60('0x1c')];var _0x52aa44=_0x4e84b5?_0x3c0e9d[_0x3f60('0x1f')]:_0x5e7718[_0x3f60('0x1c')]+_0x5e7718[_0x3f60('0x1d')];var _0x9c845f;if(_0x52aa44>=_0xbc26c){_0x52aa44=_0xbc26c;_0x9c845f=0xc8;}else{_0x9c845f=0xce;}_0x2cd28f[_0x3f60('0x20')](_0x9c845f);return _0x2cd28f[_0x3f60('0x21')]('Content-Range',_0x3ae771+'-'+_0x52aa44+'/'+_0xbc26c)[_0x3f60('0x1b')](_0x3c0e9d);}return null;};}function patchUpdates(_0x2f1735){return function(_0x4dace9){try{jsonpatch[_0x3f60('0x22')](_0x4dace9,_0x2f1735,!![]);}catch(_0x2dba08){return BPromise[_0x3f60('0x23')](_0x2dba08);}return _0x4dace9[_0x3f60('0x24')]();};}function saveUpdates(_0x1d23bb,_0x1b161e){return function(_0x44b665){if(_0x44b665){return _0x44b665[_0x3f60('0x25')](_0x1d23bb)[_0x3f60('0x26')](function(_0x31847d){return _0x31847d;});}return null;};}function removeEntity(_0x3f6fa7,_0x35b8f6){return function(_0x1f9390){if(_0x1f9390){return _0x1f9390[_0x3f60('0x27')]()[_0x3f60('0x26')](function(){_0x3f6fa7['status'](0xcc)[_0x3f60('0x1a')]();});}};}function handleEntityNotFound(_0x3cdef4,_0x15315b){return function(_0x4581d6){if(!_0x4581d6){_0x3cdef4[_0x3f60('0x19')](0x194);}return _0x4581d6;};}function handleError(_0x36dfdb,_0xc106a9){_0xc106a9=_0xc106a9||0x1f4;return function(_0x23e265){logger['error'](_0x23e265[_0x3f60('0x28')]);if(_0x23e265[_0x3f60('0x29')]){delete _0x23e265[_0x3f60('0x29')];}_0x36dfdb[_0x3f60('0x20')](_0xc106a9)[_0x3f60('0x2a')](_0x23e265);};}exports[_0x3f60('0x2b')]=function(_0x39e14c,_0x4520a5){var _0x16b590={},_0x3cd0a7={},_0x2f1bc9={'count':0x0,'rows':[]};var _0x457e5b=_[_0x3f60('0x2c')](db[_0x3f60('0x2d')][_0x3f60('0x2e')],function(_0x14d83c){return{'name':_0x14d83c[_0x3f60('0x2f')],'type':_0x14d83c[_0x3f60('0x30')][_0x3f60('0x31')]};});_0x3cd0a7[_0x3f60('0x32')]=_[_0x3f60('0x2c')](_0x457e5b,_0x3f60('0x29'));_0x3cd0a7[_0x3f60('0x33')]=_[_0x3f60('0x34')](_0x39e14c[_0x3f60('0x33')]);_0x3cd0a7[_0x3f60('0x35')]=_[_0x3f60('0x36')](_0x3cd0a7[_0x3f60('0x32')],_0x3cd0a7[_0x3f60('0x33')]);_0x16b590[_0x3f60('0x37')]=_[_0x3f60('0x36')](_0x3cd0a7['model'],qs[_0x3f60('0x38')](_0x39e14c[_0x3f60('0x33')]['fields']));_0x16b590[_0x3f60('0x37')]=_0x16b590[_0x3f60('0x37')][_0x3f60('0x39')]?_0x16b590[_0x3f60('0x37')]:_0x3cd0a7['model'];if(!_0x39e14c[_0x3f60('0x33')][_0x3f60('0x3a')]('nolimit')){_0x16b590['limit']=qs[_0x3f60('0x1d')](_0x39e14c['query'][_0x3f60('0x1d')]);_0x16b590[_0x3f60('0x1c')]=qs[_0x3f60('0x1c')](_0x39e14c[_0x3f60('0x33')]['offset']);}_0x16b590['order']=qs[_0x3f60('0x3b')](_0x39e14c[_0x3f60('0x33')][_0x3f60('0x3b')]);_0x16b590[_0x3f60('0x3c')]=qs[_0x3f60('0x35')](_[_0x3f60('0x3d')](_0x39e14c['query'],_0x3cd0a7[_0x3f60('0x35')]),_0x457e5b);if(_0x39e14c['query'][_0x3f60('0x3e')]){_0x16b590['where']=_[_0x3f60('0x3f')](_0x16b590[_0x3f60('0x3c')],{'$or':_[_0x3f60('0x2c')](_0x457e5b,function(_0x466d05){if(_0x466d05[_0x3f60('0x30')]!=='VIRTUAL'){var _0x4fa98d={};_0x4fa98d[_0x466d05[_0x3f60('0x29')]]={'$like':'%'+_0x39e14c[_0x3f60('0x33')][_0x3f60('0x3e')]+'%'};return _0x4fa98d;}})});}_0x16b590=_['merge']({},_0x16b590,_0x39e14c[_0x3f60('0x40')]);var _0x42f82d={'where':_0x16b590['where']};return db['ChatQueueReport'][_0x3f60('0x1f')](_0x42f82d)[_0x3f60('0x26')](function(_0x3f2129){_0x2f1bc9[_0x3f60('0x1f')]=_0x3f2129;if(_0x39e14c[_0x3f60('0x33')]['includeAll']){_0x16b590[_0x3f60('0x41')]=[{'all':!![]}];}return db[_0x3f60('0x2d')][_0x3f60('0x42')](_0x16b590);})[_0x3f60('0x26')](function(_0x4c6346){_0x2f1bc9[_0x3f60('0x43')]=_0x4c6346;return _0x2f1bc9;})['then'](respondWithFilteredResult(_0x4520a5,_0x16b590))['catch'](handleError(_0x4520a5,null));};exports[_0x3f60('0x44')]=function(_0x20422a,_0x4ef8f2){var _0x5cfc2f={'raw':!![],'where':{'id':_0x20422a[_0x3f60('0x45')]['id']}},_0x4f0752={};_0x4f0752[_0x3f60('0x32')]=_['keys'](db['ChatQueueReport']['rawAttributes']);_0x4f0752[_0x3f60('0x33')]=_['keys'](_0x20422a['query']);_0x4f0752[_0x3f60('0x35')]=_[_0x3f60('0x36')](_0x4f0752['model'],_0x4f0752['query']);_0x5cfc2f[_0x3f60('0x37')]=_['intersection'](_0x4f0752[_0x3f60('0x32')],qs['fields'](_0x20422a[_0x3f60('0x33')][_0x3f60('0x38')]));_0x5cfc2f[_0x3f60('0x37')]=_0x5cfc2f[_0x3f60('0x37')][_0x3f60('0x39')]?_0x5cfc2f['attributes']:_0x4f0752[_0x3f60('0x32')];if(_0x20422a[_0x3f60('0x33')]['includeAll']){_0x5cfc2f['include']=[{'all':!![]}];}_0x5cfc2f=_[_0x3f60('0x3f')]({},_0x5cfc2f,_0x20422a[_0x3f60('0x40')]);return db[_0x3f60('0x2d')][_0x3f60('0x46')](_0x5cfc2f)[_0x3f60('0x26')](handleEntityNotFound(_0x4ef8f2,null))['then'](respondWithResult(_0x4ef8f2,null))[_0x3f60('0x47')](handleError(_0x4ef8f2,null));};exports['create']=function(_0xe5a2a6,_0x253d2f){return db[_0x3f60('0x2d')]['create'](_0xe5a2a6[_0x3f60('0x48')],{})[_0x3f60('0x26')](respondWithResult(_0x253d2f,0xc9))[_0x3f60('0x47')](handleError(_0x253d2f,null));};exports['update']=function(_0x217348,_0x55f75f){if(_0x217348[_0x3f60('0x48')]['id']){delete _0x217348[_0x3f60('0x48')]['id'];}return db[_0x3f60('0x2d')][_0x3f60('0x46')]({'where':{'id':_0x217348['params']['id']}})[_0x3f60('0x26')](handleEntityNotFound(_0x55f75f,null))[_0x3f60('0x26')](saveUpdates(_0x217348['body'],null))[_0x3f60('0x26')](respondWithResult(_0x55f75f,null))['catch'](handleError(_0x55f75f,null));};exports['destroy']=function(_0x4ce17d,_0x55dd97){return db['ChatQueueReport'][_0x3f60('0x46')]({'where':{'id':_0x4ce17d['params']['id']}})[_0x3f60('0x26')](handleEntityNotFound(_0x55dd97,null))[_0x3f60('0x26')](removeEntity(_0x55dd97,null))[_0x3f60('0x47')](handleError(_0x55dd97,null));};exports['describe']=function(_0x1f9921,_0x1c09a0){return db[_0x3f60('0x2d')][_0x3f60('0x49')]()[_0x3f60('0x26')](respondWithResult(_0x1c09a0,null))[_0x3f60('0x47')](handleError(_0x1c09a0,null));};
\ No newline at end of file