Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / voiceQueueReport / voiceQueueReport.rpc.js
index b5cee63..8b09c68 100644 (file)
@@ -1 +1 @@
-const a763_0xf486=['GetVoiceQueueReport','limit','body','message','UpdateVoiceQueueReport','stringify','where','map','CreateVoiceQueueReport','../../mysqldb','include','rpc','create','info','options','debug','../../rediscache','update','then','model','attributes','error','lodash','raw','register','./voiceQueueReport.socket','VoiceQueueReport','catch'];(function(_0x46389e,_0xf4865){const _0x3d11ee=function(_0x394885){while(--_0x394885){_0x46389e['push'](_0x46389e['shift']());}};_0x3d11ee(++_0xf4865);}(a763_0xf486,0xd9));const a763_0x3d11=function(_0x46389e,_0xf4865){_0x46389e=_0x46389e-0x0;let _0x3d11ee=a763_0xf486[_0x46389e];return _0x3d11ee;};const _0xed76ae=a763_0x3d11;'use strict';const _=require(_0xed76ae('0x1')),db=require(_0xed76ae('0x10'))['db'],logger=require('../../config/logger')(_0xed76ae('0x12')),{getSocket}=require(_0xed76ae('0x17')),socket=getSocket();require(_0xed76ae('0x4'))[_0xed76ae('0x3')](socket),exports[_0xed76ae('0x7')]=function(_0x394885){const _0xc7fd92=this;return new Promise(function(_0x1d3292,_0x2306e3){const _0x2f50ee=a763_0x3d11;return db['VoiceQueueReport']['findAll']({'raw':_0x394885['options']?_0x394885['options'][_0x2f50ee('0x2')]===undefined?!![]:![]:!![],'where':_0x394885[_0x2f50ee('0x15')]?_0x394885[_0x2f50ee('0x15')][_0x2f50ee('0xd')]||null:null,'attributes':_0x394885['options']?_0x394885[_0x2f50ee('0x15')][_0x2f50ee('0x1b')]||null:null,'limit':_0x394885[_0x2f50ee('0x15')]?_0x394885[_0x2f50ee('0x15')][_0x2f50ee('0x8')]||null:null,'include':_0x394885[_0x2f50ee('0x15')]?_0x394885[_0x2f50ee('0x15')][_0x2f50ee('0x11')]?_[_0x2f50ee('0xe')](_0x394885[_0x2f50ee('0x15')][_0x2f50ee('0x11')],function(_0x1a3517){const _0x12bc15=_0x2f50ee;return{'model':db[_0x1a3517['model']],'as':_0x1a3517['as'],'attributes':_0x1a3517[_0x12bc15('0x1b')],'include':_0x1a3517[_0x12bc15('0x11')]?_[_0x12bc15('0xe')](_0x1a3517[_0x12bc15('0x11')],function(_0x2b8263){const _0x4efeb6=_0x12bc15;return{'model':db[_0x2b8263[_0x4efeb6('0x1a')]],'as':_0x2b8263['as'],'attributes':_0x2b8263[_0x4efeb6('0x1b')],'include':_0x2b8263[_0x4efeb6('0x11')]?_[_0x4efeb6('0xe')](_0x2b8263[_0x4efeb6('0x11')],function(_0x5c8a62){const _0x1b6b04=_0x4efeb6;return{'model':db[_0x5c8a62[_0x1b6b04('0x1a')]],'as':_0x5c8a62['as'],'attributes':_0x5c8a62['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x4b5d5d){const _0x15f927=_0x2f50ee;logger[_0x15f927('0x14')](_0x15f927('0x7'),_0x394885),logger[_0x15f927('0x16')]('GetVoiceQueueReport',_0x394885,JSON[_0x15f927('0xc')](_0x4b5d5d)),_0x1d3292(_0x4b5d5d);})[_0x2f50ee('0x6')](function(_0xc7a7b6){const _0x35ebc7=_0x2f50ee;logger[_0x35ebc7('0x0')](_0x35ebc7('0x7'),_0xc7a7b6[_0x35ebc7('0xa')],_0x394885),_0x2306e3(_0xc7fd92[_0x35ebc7('0x0')](0x1f4,_0xc7a7b6[_0x35ebc7('0xa')]));});});},exports['CreateVoiceQueueReport']=function(_0x50b3b4){const _0x3c3fb9=this;return new Promise(function(_0x2417e8,_0x595dae){const _0x3ef5db=a763_0x3d11;return db[_0x3ef5db('0x5')][_0x3ef5db('0x13')](_0x50b3b4[_0x3ef5db('0x9')],{'raw':_0x50b3b4[_0x3ef5db('0x15')]?_0x50b3b4['options']['raw']===undefined?!![]:![]:!![]})[_0x3ef5db('0x19')](function(_0x196566){const _0x3fb86d=_0x3ef5db;logger[_0x3fb86d('0x14')](_0x3fb86d('0xf'),_0x50b3b4),logger['debug'](_0x3fb86d('0xf'),_0x50b3b4,JSON['stringify'](_0x196566)),_0x2417e8(_0x196566);})['catch'](function(_0x6f965c){const _0x5a9bef=_0x3ef5db;logger[_0x5a9bef('0x0')]('CreateVoiceQueueReport',_0x6f965c[_0x5a9bef('0xa')],_0x50b3b4),_0x595dae(_0x3c3fb9[_0x5a9bef('0x0')](0x1f4,_0x6f965c['message']));});});},exports[_0xed76ae('0xb')]=function(_0x2ef6ac){const _0x407c19=this;return new Promise(function(_0x32206c,_0x1fa271){const _0x4c324b=a763_0x3d11;return db['VoiceQueueReport'][_0x4c324b('0x18')](_0x2ef6ac['body'],{'raw':_0x2ef6ac['options']?_0x2ef6ac[_0x4c324b('0x15')][_0x4c324b('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2ef6ac[_0x4c324b('0x15')]?_0x2ef6ac[_0x4c324b('0x15')][_0x4c324b('0xd')]||null:null,'attributes':_0x2ef6ac['options']?_0x2ef6ac[_0x4c324b('0x15')][_0x4c324b('0x1b')]||null:null,'limit':_0x2ef6ac[_0x4c324b('0x15')]?_0x2ef6ac[_0x4c324b('0x15')][_0x4c324b('0x8')]||null:null})[_0x4c324b('0x19')](function(_0x1e07ae){const _0x393147=_0x4c324b;logger[_0x393147('0x14')]('UpdateVoiceQueueReport',_0x2ef6ac),logger[_0x393147('0x16')](_0x393147('0xb'),_0x2ef6ac,JSON[_0x393147('0xc')](_0x1e07ae)),_0x32206c(_0x1e07ae);})[_0x4c324b('0x6')](function(_0x4b0d49){const _0x1fde02=_0x4c324b;logger[_0x1fde02('0x0')]('UpdateVoiceQueueReport',_0x4b0d49[_0x1fde02('0xa')],_0x2ef6ac),_0x1fa271(_0x407c19[_0x1fde02('0x0')](0x1f4,_0x4b0d49[_0x1fde02('0xa')]));});});};
\ No newline at end of file
+const a763_0x3801=['lodash','then','debug','where','../../rediscache','message','info','GetVoiceQueueReport','attributes','body','CreateVoiceQueueReport','UpdateVoiceQueueReport','catch','error','include','../../config/logger','VoiceQueueReport','update','raw','options','map','create','stringify','register'];(function(_0xbfcd19,_0x3801d8){const _0x58b244=function(_0x187dd3){while(--_0x187dd3){_0xbfcd19['push'](_0xbfcd19['shift']());}};_0x58b244(++_0x3801d8);}(a763_0x3801,0x9b));const a763_0x58b2=function(_0xbfcd19,_0x3801d8){_0xbfcd19=_0xbfcd19-0x0;let _0x58b244=a763_0x3801[_0xbfcd19];return _0x58b244;};const _0x16678e=a763_0x58b2;'use strict';const _=require(_0x16678e('0xd')),db=require('../../mysqldb')['db'],logger=require(_0x16678e('0x4'))('rpc'),{getSocket}=require(_0x16678e('0x11')),socket=getSocket();require('./voiceQueueReport.socket')[_0x16678e('0xc')](socket),exports['GetVoiceQueueReport']=function(_0x187dd3){const _0x223b69=this;return new Promise(function(_0x4fbc4b,_0x4ee836){const _0x5c19df=a763_0x58b2;return db[_0x5c19df('0x5')]['findAll']({'raw':_0x187dd3[_0x5c19df('0x8')]?_0x187dd3[_0x5c19df('0x8')][_0x5c19df('0x7')]===undefined?!![]:![]:!![],'where':_0x187dd3[_0x5c19df('0x8')]?_0x187dd3[_0x5c19df('0x8')]['where']||null:null,'attributes':_0x187dd3[_0x5c19df('0x8')]?_0x187dd3[_0x5c19df('0x8')][_0x5c19df('0x15')]||null:null,'limit':_0x187dd3[_0x5c19df('0x8')]?_0x187dd3[_0x5c19df('0x8')]['limit']||null:null,'include':_0x187dd3['options']?_0x187dd3[_0x5c19df('0x8')][_0x5c19df('0x3')]?_['map'](_0x187dd3['options']['include'],function(_0x3762a2){const _0xb00ef2=_0x5c19df;return{'model':db[_0x3762a2['model']],'as':_0x3762a2['as'],'attributes':_0x3762a2[_0xb00ef2('0x15')],'include':_0x3762a2[_0xb00ef2('0x3')]?_[_0xb00ef2('0x9')](_0x3762a2[_0xb00ef2('0x3')],function(_0x25af4c){const _0x4ffcfd=_0xb00ef2;return{'model':db[_0x25af4c['model']],'as':_0x25af4c['as'],'attributes':_0x25af4c[_0x4ffcfd('0x15')],'include':_0x25af4c['include']?_['map'](_0x25af4c['include'],function(_0xdcba64){const _0x1e53a6=_0x4ffcfd;return{'model':db[_0xdcba64['model']],'as':_0xdcba64['as'],'attributes':_0xdcba64[_0x1e53a6('0x15')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x226fac){const _0xa9e654=_0x5c19df;logger[_0xa9e654('0x13')]('GetVoiceQueueReport',_0x187dd3),logger['debug'](_0xa9e654('0x14'),_0x187dd3,JSON['stringify'](_0x226fac)),_0x4fbc4b(_0x226fac);})[_0x5c19df('0x1')](function(_0x233fce){const _0x13a832=_0x5c19df;logger[_0x13a832('0x2')]('GetVoiceQueueReport',_0x233fce[_0x13a832('0x12')],_0x187dd3),_0x4ee836(_0x223b69[_0x13a832('0x2')](0x1f4,_0x233fce[_0x13a832('0x12')]));});});},exports[_0x16678e('0x17')]=function(_0x23b379){const _0x231c0b=this;return new Promise(function(_0x2477a1,_0x5e27a0){const _0x161b08=a763_0x58b2;return db[_0x161b08('0x5')][_0x161b08('0xa')](_0x23b379[_0x161b08('0x16')],{'raw':_0x23b379['options']?_0x23b379[_0x161b08('0x8')][_0x161b08('0x7')]===undefined?!![]:![]:!![]})[_0x161b08('0xe')](function(_0x5d98c8){const _0x8e79af=_0x161b08;logger['info'](_0x8e79af('0x17'),_0x23b379),logger[_0x8e79af('0xf')](_0x8e79af('0x17'),_0x23b379,JSON[_0x8e79af('0xb')](_0x5d98c8)),_0x2477a1(_0x5d98c8);})[_0x161b08('0x1')](function(_0x4c5ff4){const _0x1d7168=_0x161b08;logger[_0x1d7168('0x2')]('CreateVoiceQueueReport',_0x4c5ff4[_0x1d7168('0x12')],_0x23b379),_0x5e27a0(_0x231c0b[_0x1d7168('0x2')](0x1f4,_0x4c5ff4[_0x1d7168('0x12')]));});});},exports[_0x16678e('0x0')]=function(_0x4c30cc){const _0x46b3b8=this;return new Promise(function(_0x54e90d,_0x641714){const _0x4aa317=a763_0x58b2;return db[_0x4aa317('0x5')][_0x4aa317('0x6')](_0x4c30cc[_0x4aa317('0x16')],{'raw':_0x4c30cc[_0x4aa317('0x8')]?_0x4c30cc[_0x4aa317('0x8')][_0x4aa317('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4c30cc[_0x4aa317('0x8')]?_0x4c30cc[_0x4aa317('0x8')][_0x4aa317('0x10')]||null:null,'attributes':_0x4c30cc[_0x4aa317('0x8')]?_0x4c30cc[_0x4aa317('0x8')][_0x4aa317('0x15')]||null:null,'limit':_0x4c30cc[_0x4aa317('0x8')]?_0x4c30cc[_0x4aa317('0x8')]['limit']||null:null})[_0x4aa317('0xe')](function(_0x20b531){const _0x43d9a3=_0x4aa317;logger[_0x43d9a3('0x13')](_0x43d9a3('0x0'),_0x4c30cc),logger['debug'](_0x43d9a3('0x0'),_0x4c30cc,JSON[_0x43d9a3('0xb')](_0x20b531)),_0x54e90d(_0x20b531);})[_0x4aa317('0x1')](function(_0x58ea63){const _0x33695a=_0x4aa317;logger[_0x33695a('0x2')](_0x33695a('0x0'),_0x58ea63['message'],_0x4c30cc),_0x641714(_0x46b3b8[_0x33695a('0x2')](0x1f4,_0x58ea63[_0x33695a('0x12')]));});});};
\ No newline at end of file