Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / api / voiceQueueReport / voiceQueueReport.controller.js
index d58fe18..4bf89c8 100644 (file)
@@ -1 +1 @@
-const a760_0x52df=['register','VIRTUAL','fields','VoiceQueueReport','getVoiceQueuesReport','findAll','create','describe','keys','catch','include','filters','findOne','send','map','body','show','key','order','length','Content-Range','intersection','filter','error','update','like','pick','where','rows','merge','sequelize','end','then','sort','offset','name','index','set','stack','options','attributes','json','api','../../components/parsers/qs','count','query','../../mysqldb','includeAll','destroy','status','model','undefined','type','limit'];(function(_0x49f5ff,_0x52df09){const _0xbb6041=function(_0x598dd6){while(--_0x598dd6){_0x49f5ff['push'](_0x49f5ff['shift']());}};_0xbb6041(++_0x52df09);}(a760_0x52df,0x1cd));const a760_0xbb60=function(_0x49f5ff,_0x52df09){_0x49f5ff=_0x49f5ff-0x0;let _0xbb6041=a760_0x52df[_0x49f5ff];return _0xbb6041;};const _0x225b76=a760_0xbb60;'use strict';const _=require('lodash'),qs=require(_0x225b76('0xe')),logger=require('../../config/logger')(_0x225b76('0xd')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x225b76('0x11'))['db'],{Op}=require(_0x225b76('0x1'));require('./voiceQueueReport.socket')[_0x225b76('0x19')](socket);function respondWithResult(_0x598dd6,_0x2f0eeb){return _0x2f0eeb=_0x2f0eeb||0xc8,function(_0x4feae3){const _0x1214a1=a760_0xbb60;if(_0x4feae3)return _0x598dd6[_0x1214a1('0x14')](_0x2f0eeb)[_0x1214a1('0xc')](_0x4feae3);};}function respondWithFilteredResult(_0x68eca8,_0x454c5e){return function(_0x450050){const _0x46153a=a760_0xbb60;if(_0x450050){const _0x983c70=_0x450050[_0x46153a('0xf')],_0x2471cf=_0x454c5e[_0x46153a('0x5')];let _0x37618b=_0x454c5e[_0x46153a('0x5')]+_0x454c5e['limit'],_0x370148;return _0x37618b>=_0x983c70?(_0x37618b=_0x983c70,_0x370148=0xc8):_0x370148=0xce,_0x68eca8['status'](_0x370148),_0x68eca8[_0x46153a('0x8')](_0x46153a('0x2d'),_0x2471cf+'-'+_0x37618b+'/'+_0x983c70)[_0x46153a('0xc')](_0x450050);}return null;};}function saveUpdates(_0x43544b){return function(_0x24f2e6){const _0x493903=a760_0xbb60;if(_0x24f2e6)return _0x24f2e6[_0x493903('0x31')](_0x43544b)[_0x493903('0x3')](function(_0x51e94f){return _0x51e94f;});return null;};}function removeEntity(_0x4e34f3){return function(_0x1ac8fc){const _0x4cb18a=a760_0xbb60;if(_0x1ac8fc)return _0x1ac8fc[_0x4cb18a('0x13')]()[_0x4cb18a('0x3')](function(){const _0xc246d0=_0x4cb18a;_0x4e34f3['status'](0xcc)[_0xc246d0('0x2')]();});};}function handleEntityNotFound(_0x33b90f){return function(_0x57aceb){return!_0x57aceb&&_0x33b90f['sendStatus'](0x194),_0x57aceb;};}function handleError(_0x33bf76,_0x175677){return _0x175677=_0x175677||0x1f4,function(_0x29fbca){const _0x27500b=a760_0xbb60;logger[_0x27500b('0x30')](_0x29fbca[_0x27500b('0x9')]),_0x29fbca[_0x27500b('0x6')]&&delete _0x29fbca[_0x27500b('0x6')],_0x33bf76[_0x27500b('0x14')](_0x175677)[_0x27500b('0x26')](_0x29fbca);};}exports[_0x225b76('0x7')]=function(_0x501ba6,_0x4454e8){const _0x4ad928=_0x225b76;let _0x1d7fb0={};const _0x219cce={},_0x5ce8b8={'count':0x0,'rows':[]},_0x4be9f1=_[_0x4ad928('0x27')](db['VoiceQueueReport']['rawAttributes'],function(_0x3a711b){const _0x7267a7=_0x4ad928;return{'name':_0x3a711b['fieldName'],'type':_0x3a711b[_0x7267a7('0x17')][_0x7267a7('0x2a')]};});_0x219cce[_0x4ad928('0x15')]=_[_0x4ad928('0x27')](_0x4be9f1,_0x4ad928('0x6')),_0x219cce['query']=_[_0x4ad928('0x21')](_0x501ba6[_0x4ad928('0x10')]),_0x219cce[_0x4ad928('0x24')]=_['intersection'](_0x219cce[_0x4ad928('0x15')],_0x219cce[_0x4ad928('0x10')]),_0x1d7fb0[_0x4ad928('0xb')]=_['intersection'](_0x219cce[_0x4ad928('0x15')],qs[_0x4ad928('0x1b')](_0x501ba6[_0x4ad928('0x10')]['fields'])),_0x1d7fb0['attributes']=_0x1d7fb0[_0x4ad928('0xb')][_0x4ad928('0x2c')]?_0x1d7fb0[_0x4ad928('0xb')]:_0x219cce[_0x4ad928('0x15')];typeof _0x501ba6[_0x4ad928('0x10')]['nolimit']==='undefined'&&(_0x1d7fb0[_0x4ad928('0x18')]=qs['limit'](_0x501ba6[_0x4ad928('0x10')]['limit']),_0x1d7fb0[_0x4ad928('0x5')]=qs[_0x4ad928('0x5')](_0x501ba6[_0x4ad928('0x10')][_0x4ad928('0x5')]));_0x1d7fb0[_0x4ad928('0x2b')]=qs['sort'](_0x501ba6['query'][_0x4ad928('0x4')]),_0x1d7fb0['where']=qs['filters'](_['pick'](_0x501ba6[_0x4ad928('0x10')],_0x219cce[_0x4ad928('0x24')]),_0x4be9f1);_0x501ba6[_0x4ad928('0x10')][_0x4ad928('0x2f')]&&(_0x1d7fb0[_0x4ad928('0x34')]=_['merge'](_0x1d7fb0[_0x4ad928('0x34')],{[Op['or']]:_[_0x4ad928('0x27')](_0x4be9f1,function(_0xb021d3){const _0x30ff67=_0x4ad928;if(_0xb021d3['type']!==_0x30ff67('0x1a')){const _0x46cae3={};return _0x46cae3[_0xb021d3[_0x30ff67('0x6')]]={[Op[_0x30ff67('0x32')]]:'%'+_0x501ba6[_0x30ff67('0x10')][_0x30ff67('0x2f')]+'%'},_0x46cae3;}})}));_0x1d7fb0=_[_0x4ad928('0x0')]({},_0x1d7fb0,_0x501ba6[_0x4ad928('0xa')]);const _0x4437ff={'where':_0x1d7fb0['where']};return db[_0x4ad928('0x1c')][_0x4ad928('0xf')](_0x4437ff)[_0x4ad928('0x3')](function(_0x32d721){const _0x69c2ab=_0x4ad928;return _0x5ce8b8['count']=_0x32d721,_0x501ba6[_0x69c2ab('0x10')][_0x69c2ab('0x12')]&&(_0x1d7fb0[_0x69c2ab('0x23')]=[{'all':!![]}]),db[_0x69c2ab('0x1c')]['findAll'](_0x1d7fb0);})[_0x4ad928('0x3')](function(_0x4ad69c){const _0x17c8a7=_0x4ad928;return _0x5ce8b8[_0x17c8a7('0x35')]=_0x4ad69c,_0x5ce8b8;})[_0x4ad928('0x3')](respondWithFilteredResult(_0x4454e8,_0x1d7fb0))['catch'](handleError(_0x4454e8,null));},exports[_0x225b76('0x29')]=function(_0x5bc66c,_0x4ee335){const _0x4e4dff=_0x225b76;let _0x31b1c3={'raw':![],'where':{'id':_0x5bc66c['params']['id']}};const _0x38a0f0={};return _0x38a0f0[_0x4e4dff('0x15')]=_[_0x4e4dff('0x21')](db[_0x4e4dff('0x1c')]['rawAttributes']),_0x38a0f0[_0x4e4dff('0x10')]=_['keys'](_0x5bc66c['query']),_0x38a0f0[_0x4e4dff('0x24')]=_[_0x4e4dff('0x2e')](_0x38a0f0[_0x4e4dff('0x15')],_0x38a0f0['query']),_0x31b1c3[_0x4e4dff('0xb')]=_[_0x4e4dff('0x2e')](_0x38a0f0[_0x4e4dff('0x15')],qs[_0x4e4dff('0x1b')](_0x5bc66c[_0x4e4dff('0x10')][_0x4e4dff('0x1b')])),_0x31b1c3[_0x4e4dff('0xb')]=_0x31b1c3[_0x4e4dff('0xb')][_0x4e4dff('0x2c')]?_0x31b1c3[_0x4e4dff('0xb')]:_0x38a0f0[_0x4e4dff('0x15')],_0x5bc66c[_0x4e4dff('0x10')][_0x4e4dff('0x12')]&&(_0x31b1c3[_0x4e4dff('0x23')]=[{'all':!![]}]),_0x31b1c3=_[_0x4e4dff('0x0')]({},_0x31b1c3,_0x5bc66c[_0x4e4dff('0xa')]),db[_0x4e4dff('0x1c')][_0x4e4dff('0x25')](_0x31b1c3)[_0x4e4dff('0x3')](handleEntityNotFound(_0x4ee335,null))[_0x4e4dff('0x3')](respondWithResult(_0x4ee335,null))[_0x4e4dff('0x22')](handleError(_0x4ee335,null));},exports[_0x225b76('0x1f')]=function(_0x2460e4,_0x434e1b){const _0x30e990=_0x225b76;return db['VoiceQueueReport'][_0x30e990('0x1f')](_0x2460e4[_0x30e990('0x28')],{})[_0x30e990('0x3')](respondWithResult(_0x434e1b,0xc9))[_0x30e990('0x22')](handleError(_0x434e1b,null));},exports[_0x225b76('0x31')]=function(_0x1a5e19,_0x30fa2e){const _0x26ab40=_0x225b76;return _0x1a5e19['body']['id']&&delete _0x1a5e19[_0x26ab40('0x28')]['id'],db[_0x26ab40('0x1c')][_0x26ab40('0x25')]({'where':{'id':_0x1a5e19['params']['id']}})[_0x26ab40('0x3')](handleEntityNotFound(_0x30fa2e,null))['then'](saveUpdates(_0x1a5e19[_0x26ab40('0x28')],null))[_0x26ab40('0x3')](respondWithResult(_0x30fa2e,null))[_0x26ab40('0x22')](handleError(_0x30fa2e,null));},exports[_0x225b76('0x13')]=function(_0x17787d,_0x270172){const _0x34557a=_0x225b76;return db['VoiceQueueReport']['findOne']({'where':{'id':_0x17787d['params']['id']}})['then'](handleEntityNotFound(_0x270172,null))[_0x34557a('0x3')](removeEntity(_0x270172,null))['catch'](handleError(_0x270172,null));},exports[_0x225b76('0x20')]=function(_0x3e5837,_0x582a1a){const _0x158d6f=_0x225b76;return db['VoiceQueueReport'][_0x158d6f('0x20')]()[_0x158d6f('0x3')](respondWithResult(_0x582a1a,null))['catch'](handleError(_0x582a1a,null));},exports[_0x225b76('0x1d')]=function(_0x1d8f74,_0x3e131f){const _0x484959=_0x225b76;let _0x29e8af={};const _0x40d9ce={},_0x3856b4={'count':0x0,'rows':[]};_0x40d9ce['model']=_[_0x484959('0x21')](db[_0x484959('0x1c')]['rawAttributes']),_0x40d9ce[_0x484959('0x10')]=_[_0x484959('0x21')](_0x1d8f74[_0x484959('0x10')]),_0x40d9ce[_0x484959('0x24')]=_[_0x484959('0x2e')](_0x40d9ce[_0x484959('0x15')],_0x40d9ce['query']),_0x29e8af['attributes']=_[_0x484959('0x2e')](_0x40d9ce[_0x484959('0x15')],qs['fields'](_0x1d8f74['query'][_0x484959('0x1b')])),_0x29e8af[_0x484959('0xb')]=_0x29e8af[_0x484959('0xb')][_0x484959('0x2c')]?_0x29e8af['attributes']:_0x40d9ce[_0x484959('0x15')];typeof _0x1d8f74[_0x484959('0x10')]['nolimit']===_0x484959('0x16')&&(_0x29e8af[_0x484959('0x18')]=qs[_0x484959('0x18')](_0x1d8f74[_0x484959('0x10')][_0x484959('0x18')]),_0x29e8af[_0x484959('0x5')]=qs[_0x484959('0x5')](_0x1d8f74[_0x484959('0x10')]['offset']));_0x29e8af[_0x484959('0x2b')]=qs[_0x484959('0x4')](_0x1d8f74[_0x484959('0x10')][_0x484959('0x4')]),_0x29e8af[_0x484959('0x34')]=qs[_0x484959('0x24')](_[_0x484959('0x33')](_0x1d8f74['query'],_0x40d9ce[_0x484959('0x24')]));_0x1d8f74[_0x484959('0x10')]['filter']&&(_0x29e8af[_0x484959('0x34')]=_[_0x484959('0x0')](_0x29e8af['where'],{[Op['or']]:_[_0x484959('0x27')](_0x29e8af[_0x484959('0xb')],function(_0x2ec86b){const _0x488eed=_0x484959,_0x5c9d52={};return _0x5c9d52[_0x2ec86b]={[Op[_0x488eed('0x32')]]:'%'+_0x1d8f74[_0x488eed('0x10')][_0x488eed('0x2f')]+'%'},_0x5c9d52;})}));_0x29e8af=_[_0x484959('0x0')]({},_0x29e8af,_0x1d8f74[_0x484959('0xa')]);const _0x1520ef={'where':_0x29e8af[_0x484959('0x34')]};return db['VoiceQueueReport']['count'](_0x1520ef)[_0x484959('0x3')](function(_0x4a5933){const _0x278d07=_0x484959;return _0x3856b4[_0x278d07('0xf')]=_0x4a5933,_0x1d8f74[_0x278d07('0x10')]['includeAll']&&(_0x29e8af['include']=[{'all':!![]}]),db[_0x278d07('0x1c')][_0x278d07('0x1e')](_0x29e8af);})[_0x484959('0x3')](function(_0x2e7807){const _0x4933d9=_0x484959;return _0x3856b4[_0x4933d9('0x35')]=_0x2e7807,_0x3856b4;})[_0x484959('0x3')](respondWithFilteredResult(_0x3e131f,_0x29e8af,_0x484959('0x1d')))[_0x484959('0x22')](handleError(_0x3e131f,null,_0x484959('0x1d')));};
\ No newline at end of file
+const a760_0x4231=['index','error','length','describe','VIRTUAL','params','then','../../components/parsers/qs','filter','api','include','key','query','keys','sort','sequelize','update','body','model','catch','includeAll','destroy','json','getVoiceQueuesReport','register','lodash','create','order','offset','./voiceQueueReport.socket','findOne','set','pick','rawAttributes','where','send','stack','limit','undefined','VoiceQueueReport','like','count','sendStatus','nolimit','show','rows','findAll','name','fields','map','../../mysqldb','options','Content-Range','status','type','intersection','merge','filters','attributes'];(function(_0x185477,_0x4231b8){const _0x1e33db=function(_0x233e0c){while(--_0x233e0c){_0x185477['push'](_0x185477['shift']());}};_0x1e33db(++_0x4231b8);}(a760_0x4231,0x1de));const a760_0x1e33=function(_0x185477,_0x4231b8){_0x185477=_0x185477-0x0;let _0x1e33db=a760_0x4231[_0x185477];return _0x1e33db;};const _0x9ed270=a760_0x1e33;'use strict';const _=require(_0x9ed270('0x13')),qs=require(_0x9ed270('0x1')),logger=require('../../config/logger')(_0x9ed270('0x3')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x9ed270('0x2c'))['db'],{Op}=require(_0x9ed270('0x9'));require(_0x9ed270('0x17'))[_0x9ed270('0x12')](socket);function respondWithResult(_0x233e0c,_0x367ee4){return _0x367ee4=_0x367ee4||0xc8,function(_0x4b7904){const _0x54a184=a760_0x1e33;if(_0x4b7904)return _0x233e0c[_0x54a184('0x2f')](_0x367ee4)[_0x54a184('0x10')](_0x4b7904);};}function respondWithFilteredResult(_0x4e9b6d,_0x52437c){return function(_0x4977f4){const _0x269811=a760_0x1e33;if(_0x4977f4){const _0x94925e=_0x4977f4[_0x269811('0x23')],_0x59db46=_0x52437c[_0x269811('0x16')];let _0x39488c=_0x52437c['offset']+_0x52437c[_0x269811('0x1f')],_0x2bf821;return _0x39488c>=_0x94925e?(_0x39488c=_0x94925e,_0x2bf821=0xc8):_0x2bf821=0xce,_0x4e9b6d[_0x269811('0x2f')](_0x2bf821),_0x4e9b6d[_0x269811('0x19')](_0x269811('0x2e'),_0x59db46+'-'+_0x39488c+'/'+_0x94925e)['json'](_0x4977f4);}return null;};}function saveUpdates(_0x146574){return function(_0x441b33){const _0x3fa0f1=a760_0x1e33;if(_0x441b33)return _0x441b33[_0x3fa0f1('0xa')](_0x146574)['then'](function(_0xa01905){return _0xa01905;});return null;};}function removeEntity(_0x277e10){return function(_0x545496){const _0x1958dd=a760_0x1e33;if(_0x545496)return _0x545496[_0x1958dd('0xf')]()[_0x1958dd('0x0')](function(){_0x277e10['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x385715){return function(_0x42ecb2){const _0x3b38bd=a760_0x1e33;return!_0x42ecb2&&_0x385715[_0x3b38bd('0x24')](0x194),_0x42ecb2;};}function handleError(_0x431b6f,_0xe1a7d8){return _0xe1a7d8=_0xe1a7d8||0x1f4,function(_0x8b5513){const _0x9365b0=a760_0x1e33;logger[_0x9365b0('0x36')](_0x8b5513[_0x9365b0('0x1e')]),_0x8b5513[_0x9365b0('0x29')]&&delete _0x8b5513['name'],_0x431b6f[_0x9365b0('0x2f')](_0xe1a7d8)[_0x9365b0('0x1d')](_0x8b5513);};}exports[_0x9ed270('0x35')]=function(_0x5c531f,_0x2ac8e7){const _0x4a697a=_0x9ed270;let _0x4c2af2={};const _0x7698ef={},_0x3b93a7={'count':0x0,'rows':[]},_0x7563d4=_['map'](db['VoiceQueueReport']['rawAttributes'],function(_0x519ec1){const _0x5d2dd7=a760_0x1e33;return{'name':_0x519ec1['fieldName'],'type':_0x519ec1[_0x5d2dd7('0x30')][_0x5d2dd7('0x5')]};});_0x7698ef[_0x4a697a('0xc')]=_[_0x4a697a('0x2b')](_0x7563d4,'name'),_0x7698ef[_0x4a697a('0x6')]=_[_0x4a697a('0x7')](_0x5c531f[_0x4a697a('0x6')]),_0x7698ef[_0x4a697a('0x33')]=_[_0x4a697a('0x31')](_0x7698ef[_0x4a697a('0xc')],_0x7698ef[_0x4a697a('0x6')]),_0x4c2af2['attributes']=_['intersection'](_0x7698ef['model'],qs[_0x4a697a('0x2a')](_0x5c531f[_0x4a697a('0x6')][_0x4a697a('0x2a')])),_0x4c2af2['attributes']=_0x4c2af2[_0x4a697a('0x34')][_0x4a697a('0x37')]?_0x4c2af2[_0x4a697a('0x34')]:_0x7698ef['model'];typeof _0x5c531f[_0x4a697a('0x6')][_0x4a697a('0x25')]===_0x4a697a('0x20')&&(_0x4c2af2[_0x4a697a('0x1f')]=qs[_0x4a697a('0x1f')](_0x5c531f['query'][_0x4a697a('0x1f')]),_0x4c2af2[_0x4a697a('0x16')]=qs[_0x4a697a('0x16')](_0x5c531f[_0x4a697a('0x6')]['offset']));_0x4c2af2['order']=qs[_0x4a697a('0x8')](_0x5c531f[_0x4a697a('0x6')][_0x4a697a('0x8')]),_0x4c2af2[_0x4a697a('0x1c')]=qs[_0x4a697a('0x33')](_[_0x4a697a('0x1a')](_0x5c531f['query'],_0x7698ef[_0x4a697a('0x33')]),_0x7563d4);_0x5c531f[_0x4a697a('0x6')]['filter']&&(_0x4c2af2[_0x4a697a('0x1c')]=_[_0x4a697a('0x32')](_0x4c2af2[_0x4a697a('0x1c')],{[Op['or']]:_[_0x4a697a('0x2b')](_0x7563d4,function(_0x309e57){const _0x1147e5=_0x4a697a;if(_0x309e57['type']!==_0x1147e5('0x39')){const _0x58c0fe={};return _0x58c0fe[_0x309e57['name']]={[Op['like']]:'%'+_0x5c531f[_0x1147e5('0x6')][_0x1147e5('0x2')]+'%'},_0x58c0fe;}})}));_0x4c2af2=_[_0x4a697a('0x32')]({},_0x4c2af2,_0x5c531f[_0x4a697a('0x2d')]);const _0x3d4218={'where':_0x4c2af2[_0x4a697a('0x1c')]};return db['VoiceQueueReport']['count'](_0x3d4218)[_0x4a697a('0x0')](function(_0x3a2dcf){const _0x366873=_0x4a697a;return _0x3b93a7[_0x366873('0x23')]=_0x3a2dcf,_0x5c531f[_0x366873('0x6')]['includeAll']&&(_0x4c2af2[_0x366873('0x4')]=[{'all':!![]}]),db[_0x366873('0x21')][_0x366873('0x28')](_0x4c2af2);})['then'](function(_0x235e5e){const _0x25360c=_0x4a697a;return _0x3b93a7[_0x25360c('0x27')]=_0x235e5e,_0x3b93a7;})[_0x4a697a('0x0')](respondWithFilteredResult(_0x2ac8e7,_0x4c2af2))[_0x4a697a('0xd')](handleError(_0x2ac8e7,null));},exports[_0x9ed270('0x26')]=function(_0x36ff90,_0x378bc9){const _0x22b3dc=_0x9ed270;let _0x89f595={'raw':![],'where':{'id':_0x36ff90['params']['id']}};const _0x5c7433={};return _0x5c7433[_0x22b3dc('0xc')]=_[_0x22b3dc('0x7')](db[_0x22b3dc('0x21')][_0x22b3dc('0x1b')]),_0x5c7433[_0x22b3dc('0x6')]=_[_0x22b3dc('0x7')](_0x36ff90[_0x22b3dc('0x6')]),_0x5c7433['filters']=_[_0x22b3dc('0x31')](_0x5c7433['model'],_0x5c7433[_0x22b3dc('0x6')]),_0x89f595['attributes']=_[_0x22b3dc('0x31')](_0x5c7433[_0x22b3dc('0xc')],qs[_0x22b3dc('0x2a')](_0x36ff90[_0x22b3dc('0x6')][_0x22b3dc('0x2a')])),_0x89f595['attributes']=_0x89f595['attributes'][_0x22b3dc('0x37')]?_0x89f595[_0x22b3dc('0x34')]:_0x5c7433['model'],_0x36ff90[_0x22b3dc('0x6')][_0x22b3dc('0xe')]&&(_0x89f595['include']=[{'all':!![]}]),_0x89f595=_[_0x22b3dc('0x32')]({},_0x89f595,_0x36ff90[_0x22b3dc('0x2d')]),db[_0x22b3dc('0x21')][_0x22b3dc('0x18')](_0x89f595)[_0x22b3dc('0x0')](handleEntityNotFound(_0x378bc9,null))[_0x22b3dc('0x0')](respondWithResult(_0x378bc9,null))[_0x22b3dc('0xd')](handleError(_0x378bc9,null));},exports[_0x9ed270('0x14')]=function(_0xe3f894,_0x231421){const _0x47efd6=_0x9ed270;return db[_0x47efd6('0x21')][_0x47efd6('0x14')](_0xe3f894[_0x47efd6('0xb')],{})[_0x47efd6('0x0')](respondWithResult(_0x231421,0xc9))[_0x47efd6('0xd')](handleError(_0x231421,null));},exports['update']=function(_0x518d7f,_0x2080d4){const _0x49bc93=_0x9ed270;return _0x518d7f['body']['id']&&delete _0x518d7f['body']['id'],db['VoiceQueueReport']['findOne']({'where':{'id':_0x518d7f[_0x49bc93('0x3a')]['id']}})[_0x49bc93('0x0')](handleEntityNotFound(_0x2080d4,null))[_0x49bc93('0x0')](saveUpdates(_0x518d7f[_0x49bc93('0xb')],null))[_0x49bc93('0x0')](respondWithResult(_0x2080d4,null))['catch'](handleError(_0x2080d4,null));},exports[_0x9ed270('0xf')]=function(_0x217546,_0x49fb02){const _0x5eddfd=_0x9ed270;return db[_0x5eddfd('0x21')][_0x5eddfd('0x18')]({'where':{'id':_0x217546['params']['id']}})['then'](handleEntityNotFound(_0x49fb02,null))[_0x5eddfd('0x0')](removeEntity(_0x49fb02,null))[_0x5eddfd('0xd')](handleError(_0x49fb02,null));},exports[_0x9ed270('0x38')]=function(_0xd049fc,_0x5e8525){const _0x2c7151=_0x9ed270;return db['VoiceQueueReport'][_0x2c7151('0x38')]()[_0x2c7151('0x0')](respondWithResult(_0x5e8525,null))[_0x2c7151('0xd')](handleError(_0x5e8525,null));},exports[_0x9ed270('0x11')]=function(_0x5ad010,_0x2d65a8){const _0x9f567f=_0x9ed270;let _0x30e0a8={};const _0x45c755={},_0x53accb={'count':0x0,'rows':[]};_0x45c755['model']=_[_0x9f567f('0x7')](db[_0x9f567f('0x21')][_0x9f567f('0x1b')]),_0x45c755[_0x9f567f('0x6')]=_['keys'](_0x5ad010['query']),_0x45c755['filters']=_[_0x9f567f('0x31')](_0x45c755[_0x9f567f('0xc')],_0x45c755[_0x9f567f('0x6')]),_0x30e0a8[_0x9f567f('0x34')]=_[_0x9f567f('0x31')](_0x45c755['model'],qs[_0x9f567f('0x2a')](_0x5ad010[_0x9f567f('0x6')][_0x9f567f('0x2a')])),_0x30e0a8['attributes']=_0x30e0a8[_0x9f567f('0x34')][_0x9f567f('0x37')]?_0x30e0a8[_0x9f567f('0x34')]:_0x45c755[_0x9f567f('0xc')];typeof _0x5ad010[_0x9f567f('0x6')][_0x9f567f('0x25')]==='undefined'&&(_0x30e0a8[_0x9f567f('0x1f')]=qs[_0x9f567f('0x1f')](_0x5ad010[_0x9f567f('0x6')]['limit']),_0x30e0a8['offset']=qs[_0x9f567f('0x16')](_0x5ad010[_0x9f567f('0x6')]['offset']));_0x30e0a8[_0x9f567f('0x15')]=qs['sort'](_0x5ad010[_0x9f567f('0x6')][_0x9f567f('0x8')]),_0x30e0a8['where']=qs[_0x9f567f('0x33')](_[_0x9f567f('0x1a')](_0x5ad010[_0x9f567f('0x6')],_0x45c755[_0x9f567f('0x33')]));_0x5ad010[_0x9f567f('0x6')][_0x9f567f('0x2')]&&(_0x30e0a8[_0x9f567f('0x1c')]=_[_0x9f567f('0x32')](_0x30e0a8[_0x9f567f('0x1c')],{[Op['or']]:_[_0x9f567f('0x2b')](_0x30e0a8[_0x9f567f('0x34')],function(_0x254b12){const _0x3716b8=_0x9f567f,_0x1c44e5={};return _0x1c44e5[_0x254b12]={[Op[_0x3716b8('0x22')]]:'%'+_0x5ad010[_0x3716b8('0x6')][_0x3716b8('0x2')]+'%'},_0x1c44e5;})}));_0x30e0a8=_[_0x9f567f('0x32')]({},_0x30e0a8,_0x5ad010[_0x9f567f('0x2d')]);const _0x50b694={'where':_0x30e0a8[_0x9f567f('0x1c')]};return db[_0x9f567f('0x21')]['count'](_0x50b694)['then'](function(_0x5398dd){const _0x30811a=_0x9f567f;return _0x53accb[_0x30811a('0x23')]=_0x5398dd,_0x5ad010[_0x30811a('0x6')][_0x30811a('0xe')]&&(_0x30e0a8[_0x30811a('0x4')]=[{'all':!![]}]),db[_0x30811a('0x21')]['findAll'](_0x30e0a8);})[_0x9f567f('0x0')](function(_0x62c30a){const _0x4949b5=_0x9f567f;return _0x53accb[_0x4949b5('0x27')]=_0x62c30a,_0x53accb;})[_0x9f567f('0x0')](respondWithFilteredResult(_0x2d65a8,_0x30e0a8,'getVoiceQueuesReport'))[_0x9f567f('0xd')](handleError(_0x2d65a8,null,'getVoiceQueuesReport'));};
\ No newline at end of file