Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / chatQueueReport / chatQueueReport.controller.js
index 26d6cb2..526851e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9aea=['query','keys','filters','attributes','intersection','fields','length','nolimit','order','sort','pick','filter','where','merge','options','includeAll','include','findAll','catch','show','params','find','create','body','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','to-csv','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','count','offset','limit','set','Content-Range','json','apply','reject','update','then','destroy','end','error','name','send','map','ChatQueueReport','rawAttributes','fieldName','type','key','model'];(function(_0x4a9d1c,_0x122fba){var _0x5ef6e4=function(_0x453f22){while(--_0x453f22){_0x4a9d1c['push'](_0x4a9d1c['shift']());}};_0x5ef6e4(++_0x122fba);}(_0x9aea,0x139));var _0xa9ae=function(_0x1a9589,_0x43aef1){_0x1a9589=_0x1a9589-0x0;var _0x102906=_0x9aea[_0x1a9589];return _0x102906;};'use strict';var pdf=require(_0xa9ae('0x0'));var emlformat=require(_0xa9ae('0x1'));var rimraf=require(_0xa9ae('0x2'));var zipdir=require(_0xa9ae('0x3'));var jsonpatch=require(_0xa9ae('0x4'));var rp=require(_0xa9ae('0x5'));var moment=require(_0xa9ae('0x6'));var BPromise=require(_0xa9ae('0x7'));var Mustache=require(_0xa9ae('0x8'));var util=require('util');var path=require(_0xa9ae('0x9'));var sox=require('sox');var csv=require(_0xa9ae('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require(_0xa9ae('0xb'));var crypto=require(_0xa9ae('0xc'));var jsforce=require(_0xa9ae('0xd'));var deskjs=require(_0xa9ae('0xe'));var toCsv=require(_0xa9ae('0xa'));var querystring=require(_0xa9ae('0xf'));var Papa=require(_0xa9ae('0x10'));var Redis=require(_0xa9ae('0x11'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xa9ae('0x12'));var logger=require('../../config/logger')('api');var utils=require(_0xa9ae('0x13'));var config=require(_0xa9ae('0x14'));var licenseUtil=require(_0xa9ae('0x15'));var db=require(_0xa9ae('0x16'))['db'];function respondWithStatusCode(_0xc4c434,_0x37bf91){_0x37bf91=_0x37bf91||0xcc;return function(_0xfca2ac){if(_0xfca2ac){return _0xc4c434[_0xa9ae('0x17')](_0x37bf91);}return _0xc4c434['status'](_0x37bf91)['end']();};}function respondWithResult(_0x49a4ad,_0x172d66){_0x172d66=_0x172d66||0xc8;return function(_0x41884e){if(_0x41884e){return _0x49a4ad[_0xa9ae('0x18')](_0x172d66)['json'](_0x41884e);}};}function respondWithFilteredResult(_0x3e5e04,_0x186ec9){return function(_0x4b0ab5){if(_0x4b0ab5){var _0x2d84dd=_0x4b0ab5[_0xa9ae('0x19')],_0x573534=_0x186ec9[_0xa9ae('0x1a')],_0x4e51d3=_0x186ec9[_0xa9ae('0x1a')]+_0x186ec9[_0xa9ae('0x1b')],_0x2ee279;if(_0x4e51d3>=_0x2d84dd){_0x4e51d3=_0x2d84dd;_0x2ee279=0xc8;}else{_0x2ee279=0xce;}_0x3e5e04['status'](_0x2ee279);return _0x3e5e04[_0xa9ae('0x1c')](_0xa9ae('0x1d'),_0x573534+'-'+_0x4e51d3+'/'+_0x2d84dd)[_0xa9ae('0x1e')](_0x4b0ab5);}return null;};}function patchUpdates(_0x8aaea){return function(_0x57215c){try{jsonpatch[_0xa9ae('0x1f')](_0x57215c,_0x8aaea,!![]);}catch(_0x518708){return BPromise[_0xa9ae('0x20')](_0x518708);}return _0x57215c['save']();};}function saveUpdates(_0x39481c,_0x413e1a){return function(_0x45ebc5){if(_0x45ebc5){return _0x45ebc5[_0xa9ae('0x21')](_0x39481c)[_0xa9ae('0x22')](function(_0x305b01){return _0x305b01;});}return null;};}function removeEntity(_0x406c3e,_0x11f29a){return function(_0x421faa){if(_0x421faa){return _0x421faa[_0xa9ae('0x23')]()['then'](function(){_0x406c3e['status'](0xcc)[_0xa9ae('0x24')]();});}};}function handleEntityNotFound(_0x55b61f,_0x27b65c){return function(_0x18cf13){if(!_0x18cf13){_0x55b61f['sendStatus'](0x194);}return _0x18cf13;};}function handleError(_0x55c6b0,_0x34d8d4){_0x34d8d4=_0x34d8d4||0x1f4;return function(_0x4c3096){logger[_0xa9ae('0x25')](_0x4c3096['stack']);if(_0x4c3096[_0xa9ae('0x26')]){delete _0x4c3096[_0xa9ae('0x26')];}_0x55c6b0[_0xa9ae('0x18')](_0x34d8d4)[_0xa9ae('0x27')](_0x4c3096);};}exports['index']=function(_0x179157,_0x1f209a){var _0x2dbc49={},_0x2f8426={},_0x35079c={'count':0x0,'rows':[]};var _0x4bb429=_[_0xa9ae('0x28')](db[_0xa9ae('0x29')][_0xa9ae('0x2a')],function(_0xea9e09){return{'name':_0xea9e09[_0xa9ae('0x2b')],'type':_0xea9e09[_0xa9ae('0x2c')][_0xa9ae('0x2d')]};});_0x2f8426[_0xa9ae('0x2e')]=_[_0xa9ae('0x28')](_0x4bb429,_0xa9ae('0x26'));_0x2f8426[_0xa9ae('0x2f')]=_[_0xa9ae('0x30')](_0x179157[_0xa9ae('0x2f')]);_0x2f8426[_0xa9ae('0x31')]=_['intersection'](_0x2f8426[_0xa9ae('0x2e')],_0x2f8426['query']);_0x2dbc49[_0xa9ae('0x32')]=_[_0xa9ae('0x33')](_0x2f8426[_0xa9ae('0x2e')],qs['fields'](_0x179157[_0xa9ae('0x2f')][_0xa9ae('0x34')]));_0x2dbc49[_0xa9ae('0x32')]=_0x2dbc49['attributes'][_0xa9ae('0x35')]?_0x2dbc49['attributes']:_0x2f8426[_0xa9ae('0x2e')];if(!_0x179157[_0xa9ae('0x2f')]['hasOwnProperty'](_0xa9ae('0x36'))){_0x2dbc49[_0xa9ae('0x1b')]=qs['limit'](_0x179157[_0xa9ae('0x2f')][_0xa9ae('0x1b')]);_0x2dbc49[_0xa9ae('0x1a')]=qs['offset'](_0x179157[_0xa9ae('0x2f')][_0xa9ae('0x1a')]);}_0x2dbc49[_0xa9ae('0x37')]=qs[_0xa9ae('0x38')](_0x179157['query']['sort']);_0x2dbc49['where']=qs['filters'](_[_0xa9ae('0x39')](_0x179157[_0xa9ae('0x2f')],_0x2f8426[_0xa9ae('0x31')]),_0x4bb429);if(_0x179157[_0xa9ae('0x2f')][_0xa9ae('0x3a')]){_0x2dbc49[_0xa9ae('0x3b')]=_[_0xa9ae('0x3c')](_0x2dbc49['where'],{'$or':_[_0xa9ae('0x28')](_0x4bb429,function(_0x30c05b){if(_0x30c05b['type']!=='VIRTUAL'){var _0x4237d3={};_0x4237d3[_0x30c05b[_0xa9ae('0x26')]]={'$like':'%'+_0x179157[_0xa9ae('0x2f')][_0xa9ae('0x3a')]+'%'};return _0x4237d3;}})});}_0x2dbc49=_[_0xa9ae('0x3c')]({},_0x2dbc49,_0x179157[_0xa9ae('0x3d')]);var _0x4ad6be={'where':_0x2dbc49[_0xa9ae('0x3b')]};return db['ChatQueueReport'][_0xa9ae('0x19')](_0x4ad6be)[_0xa9ae('0x22')](function(_0x1b6a47){_0x35079c[_0xa9ae('0x19')]=_0x1b6a47;if(_0x179157['query'][_0xa9ae('0x3e')]){_0x2dbc49[_0xa9ae('0x3f')]=[{'all':!![]}];}return db[_0xa9ae('0x29')][_0xa9ae('0x40')](_0x2dbc49);})[_0xa9ae('0x22')](function(_0xbcdfe4){_0x35079c['rows']=_0xbcdfe4;return _0x35079c;})[_0xa9ae('0x22')](respondWithFilteredResult(_0x1f209a,_0x2dbc49))[_0xa9ae('0x41')](handleError(_0x1f209a,null));};exports[_0xa9ae('0x42')]=function(_0x223f0d,_0x3aa2d6){var _0x462da6={'raw':!![],'where':{'id':_0x223f0d[_0xa9ae('0x43')]['id']}},_0x4d29f2={};_0x4d29f2[_0xa9ae('0x2e')]=_['keys'](db[_0xa9ae('0x29')][_0xa9ae('0x2a')]);_0x4d29f2[_0xa9ae('0x2f')]=_['keys'](_0x223f0d[_0xa9ae('0x2f')]);_0x4d29f2['filters']=_['intersection'](_0x4d29f2[_0xa9ae('0x2e')],_0x4d29f2[_0xa9ae('0x2f')]);_0x462da6[_0xa9ae('0x32')]=_[_0xa9ae('0x33')](_0x4d29f2[_0xa9ae('0x2e')],qs[_0xa9ae('0x34')](_0x223f0d[_0xa9ae('0x2f')]['fields']));_0x462da6['attributes']=_0x462da6[_0xa9ae('0x32')]['length']?_0x462da6[_0xa9ae('0x32')]:_0x4d29f2['model'];if(_0x223f0d[_0xa9ae('0x2f')][_0xa9ae('0x3e')]){_0x462da6['include']=[{'all':!![]}];}_0x462da6=_[_0xa9ae('0x3c')]({},_0x462da6,_0x223f0d[_0xa9ae('0x3d')]);return db['ChatQueueReport'][_0xa9ae('0x44')](_0x462da6)[_0xa9ae('0x22')](handleEntityNotFound(_0x3aa2d6,null))[_0xa9ae('0x22')](respondWithResult(_0x3aa2d6,null))[_0xa9ae('0x41')](handleError(_0x3aa2d6,null));};exports[_0xa9ae('0x45')]=function(_0x454398,_0x42b876){return db[_0xa9ae('0x29')]['create'](_0x454398[_0xa9ae('0x46')],{})[_0xa9ae('0x22')](respondWithResult(_0x42b876,0xc9))[_0xa9ae('0x41')](handleError(_0x42b876,null));};exports[_0xa9ae('0x21')]=function(_0x5f3d53,_0x11fc05){if(_0x5f3d53['body']['id']){delete _0x5f3d53[_0xa9ae('0x46')]['id'];}return db['ChatQueueReport'][_0xa9ae('0x44')]({'where':{'id':_0x5f3d53['params']['id']}})[_0xa9ae('0x22')](handleEntityNotFound(_0x11fc05,null))[_0xa9ae('0x22')](saveUpdates(_0x5f3d53[_0xa9ae('0x46')],null))[_0xa9ae('0x22')](respondWithResult(_0x11fc05,null))[_0xa9ae('0x41')](handleError(_0x11fc05,null));};exports['destroy']=function(_0x4552ca,_0x48cec6){return db['ChatQueueReport'][_0xa9ae('0x44')]({'where':{'id':_0x4552ca[_0xa9ae('0x43')]['id']}})[_0xa9ae('0x22')](handleEntityNotFound(_0x48cec6,null))[_0xa9ae('0x22')](removeEntity(_0x48cec6,null))[_0xa9ae('0x41')](handleError(_0x48cec6,null));};exports[_0xa9ae('0x47')]=function(_0x77c22b,_0x105786){return db[_0xa9ae('0x29')]['describe']()[_0xa9ae('0x22')](respondWithResult(_0x105786,null))[_0xa9ae('0x41')](handleError(_0x105786,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