Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / voiceQueue / voiceQueue.rpc.js
index 2fae1f2..6ec30e2 100644 (file)
@@ -1 +1 @@
-const a907_0x4e40=['findOne','debug','../../rediscache','GetVoiceQueue','model','../../mysqldb','options','where','VoiceQueue','register','include','../../config/logger','attributes','lodash','limit','catch','rpc','stringify','map','info','error','message','ShowVoiceQueue'];(function(_0x15487b,_0x224e60){const _0x4e40b8=function(_0x3072ea){while(--_0x3072ea){_0x15487b['push'](_0x15487b['shift']());}};_0x4e40b8(++_0x224e60);}(a907_0x4e40,0x10d));const a907_0x3072=function(_0x15487b,_0x224e60){_0x15487b=_0x15487b-0x188;let _0x4e40b8=a907_0x4e40[_0x15487b];return _0x4e40b8;};const a907_0x33b108=a907_0x3072;'use strict';const _=require(a907_0x33b108(0x19c)),db=require(a907_0x33b108(0x194))['db'],logger=require(a907_0x33b108(0x19a))(a907_0x33b108(0x188)),{getSocket}=require(a907_0x33b108(0x191)),socket=getSocket();require('./voiceQueue.socket')[a907_0x33b108(0x198)](socket),exports[a907_0x33b108(0x192)]=function(_0x1c40a2){const _0x317b50=this;return new Promise(function(_0x1f1fa4,_0x1cea0e){const _0xe8b084=a907_0x3072;return db[_0xe8b084(0x197)]['findAll']({'raw':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)]['raw']===undefined?!![]:![]:!![],'where':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x196)]||null:null,'attributes':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x19b)]||null:null,'limit':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x19d)]||null:null,'include':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x199)]?_[_0xe8b084(0x18a)](_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x199)],function(_0x109f1d){const _0x6a72cf=_0xe8b084;return{'model':db[_0x109f1d[_0x6a72cf(0x193)]],'as':_0x109f1d['as'],'attributes':_0x109f1d[_0x6a72cf(0x19b)],'include':_0x109f1d[_0x6a72cf(0x199)]?_['map'](_0x109f1d[_0x6a72cf(0x199)],function(_0x17896a){const _0x2aa92e=_0x6a72cf;return{'model':db[_0x17896a[_0x2aa92e(0x193)]],'as':_0x17896a['as'],'attributes':_0x17896a['attributes'],'include':_0x17896a['include']?_[_0x2aa92e(0x18a)](_0x17896a['include'],function(_0xbcc7da){const _0x4d624b=_0x2aa92e;return{'model':db[_0xbcc7da[_0x4d624b(0x193)]],'as':_0xbcc7da['as'],'attributes':_0xbcc7da[_0x4d624b(0x19b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x92516b){const _0x5041ec=_0xe8b084;logger[_0x5041ec(0x18b)]('GetVoiceQueue',_0x1c40a2),logger[_0x5041ec(0x190)](_0x5041ec(0x192),_0x1c40a2,JSON[_0x5041ec(0x189)](_0x92516b)),_0x1f1fa4(_0x92516b);})['catch'](function(_0x29048a){const _0x783835=_0xe8b084;logger[_0x783835(0x18c)](_0x783835(0x192),_0x29048a[_0x783835(0x18d)],_0x1c40a2),_0x1cea0e(_0x317b50[_0x783835(0x18c)](0x1f4,_0x29048a[_0x783835(0x18d)]));});});},exports[a907_0x33b108(0x18e)]=function(_0x42ea7d){const _0x282647=this;return new Promise(function(_0x233a4,_0xe6875){const _0x505613=a907_0x3072;return db[_0x505613(0x197)][_0x505613(0x18f)]({'raw':_0x42ea7d[_0x505613(0x195)]?_0x42ea7d[_0x505613(0x195)]['raw']===undefined?!![]:![]:!![],'where':_0x42ea7d['options']?_0x42ea7d[_0x505613(0x195)][_0x505613(0x196)]||null:null,'attributes':_0x42ea7d[_0x505613(0x195)]?_0x42ea7d[_0x505613(0x195)][_0x505613(0x19b)]||null:null,'include':_0x42ea7d[_0x505613(0x195)]?_0x42ea7d[_0x505613(0x195)][_0x505613(0x199)]?_[_0x505613(0x18a)](_0x42ea7d[_0x505613(0x195)][_0x505613(0x199)],function(_0x4478d3){const _0x444286=_0x505613;return{'model':db[_0x4478d3[_0x444286(0x193)]],'as':_0x4478d3['as'],'attributes':_0x4478d3[_0x444286(0x19b)],'include':_0x4478d3['include']?_[_0x444286(0x18a)](_0x4478d3[_0x444286(0x199)],function(_0x4e40a4){const _0x9f45f9=_0x444286;return{'model':db[_0x4e40a4[_0x9f45f9(0x193)]],'as':_0x4e40a4['as'],'attributes':_0x4e40a4[_0x9f45f9(0x19b)],'include':_0x4e40a4[_0x9f45f9(0x199)]?_[_0x9f45f9(0x18a)](_0x4e40a4['include'],function(_0x2bf15e){const _0x36f231=_0x9f45f9;return{'model':db[_0x2bf15e['model']],'as':_0x2bf15e['as'],'attributes':_0x2bf15e[_0x36f231(0x19b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2efa77){const _0x91bc86=_0x505613;logger[_0x91bc86(0x18b)](_0x91bc86(0x18e),_0x42ea7d),logger[_0x91bc86(0x190)](_0x91bc86(0x18e),_0x42ea7d,JSON['stringify'](_0x2efa77)),_0x233a4(_0x2efa77);})[_0x505613(0x19e)](function(_0xde92f4){const _0x9fe232=_0x505613;logger['error']('ShowVoiceQueue',_0xde92f4[_0x9fe232(0x18d)],_0x42ea7d),_0xe6875(_0x282647['error'](0x1f4,_0xde92f4[_0x9fe232(0x18d)]));});});};
\ No newline at end of file
+const a907_0x3de3=['message','GetVoiceQueue','raw','register','options','limit','../../rediscache','catch','findOne','lodash','attributes','include','model','debug','VoiceQueue','where','rpc','stringify','findAll','./voiceQueue.socket','../../config/logger','map','then','error','ShowVoiceQueue'];(function(_0x4b12fb,_0x3274bf){const _0x3de3dd=function(_0x2a5bf0){while(--_0x2a5bf0){_0x4b12fb['push'](_0x4b12fb['shift']());}};_0x3de3dd(++_0x3274bf);}(a907_0x3de3,0x69));const a907_0x2a5b=function(_0x4b12fb,_0x3274bf){_0x4b12fb=_0x4b12fb-0x1c8;let _0x3de3dd=a907_0x3de3[_0x4b12fb];return _0x3de3dd;};const a907_0x54d225=a907_0x2a5b;'use strict';const _=require(a907_0x54d225(0x1cc)),db=require('../../mysqldb')['db'],logger=require(a907_0x54d225(0x1d7))(a907_0x54d225(0x1d3)),{getSocket}=require(a907_0x54d225(0x1c9)),socket=getSocket();require(a907_0x54d225(0x1d6))[a907_0x54d225(0x1df)](socket),exports[a907_0x54d225(0x1dd)]=function(_0x525c61){const _0x50907d=this;return new Promise(function(_0x30f643,_0x153174){const _0x324d05=a907_0x2a5b;return db[_0x324d05(0x1d1)][_0x324d05(0x1d5)]({'raw':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)][_0x324d05(0x1de)]===undefined?!![]:![]:!![],'where':_0x525c61['options']?_0x525c61['options']['where']||null:null,'attributes':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)]['attributes']||null:null,'limit':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)][_0x324d05(0x1c8)]||null:null,'include':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)][_0x324d05(0x1ce)]?_['map'](_0x525c61['options'][_0x324d05(0x1ce)],function(_0x372d8f){const _0x2d9587=_0x324d05;return{'model':db[_0x372d8f[_0x2d9587(0x1cf)]],'as':_0x372d8f['as'],'attributes':_0x372d8f['attributes'],'include':_0x372d8f['include']?_[_0x2d9587(0x1d8)](_0x372d8f['include'],function(_0x2c0ccc){const _0x5de780=_0x2d9587;return{'model':db[_0x2c0ccc['model']],'as':_0x2c0ccc['as'],'attributes':_0x2c0ccc['attributes'],'include':_0x2c0ccc[_0x5de780(0x1ce)]?_['map'](_0x2c0ccc[_0x5de780(0x1ce)],function(_0x11e80e){const _0x2b1a65=_0x5de780;return{'model':db[_0x11e80e['model']],'as':_0x11e80e['as'],'attributes':_0x11e80e[_0x2b1a65(0x1cd)]};}):[]};}):[]};}):[]:[]})[_0x324d05(0x1d9)](function(_0x28103a){const _0x4c8d81=_0x324d05;logger['info'](_0x4c8d81(0x1dd),_0x525c61),logger[_0x4c8d81(0x1d0)]('GetVoiceQueue',_0x525c61,JSON[_0x4c8d81(0x1d4)](_0x28103a)),_0x30f643(_0x28103a);})[_0x324d05(0x1ca)](function(_0x568358){const _0x20ea1b=_0x324d05;logger['error'](_0x20ea1b(0x1dd),_0x568358[_0x20ea1b(0x1dc)],_0x525c61),_0x153174(_0x50907d[_0x20ea1b(0x1da)](0x1f4,_0x568358['message']));});});},exports[a907_0x54d225(0x1db)]=function(_0x5d4495){const _0x298efc=this;return new Promise(function(_0x106ad0,_0x5bc9fb){const _0x2619aa=a907_0x2a5b;return db['VoiceQueue'][_0x2619aa(0x1cb)]({'raw':_0x5d4495['options']?_0x5d4495[_0x2619aa(0x1e0)][_0x2619aa(0x1de)]===undefined?!![]:![]:!![],'where':_0x5d4495[_0x2619aa(0x1e0)]?_0x5d4495[_0x2619aa(0x1e0)][_0x2619aa(0x1d2)]||null:null,'attributes':_0x5d4495[_0x2619aa(0x1e0)]?_0x5d4495[_0x2619aa(0x1e0)]['attributes']||null:null,'include':_0x5d4495['options']?_0x5d4495[_0x2619aa(0x1e0)][_0x2619aa(0x1ce)]?_[_0x2619aa(0x1d8)](_0x5d4495['options'][_0x2619aa(0x1ce)],function(_0xe42cba){const _0x29e9bb=_0x2619aa;return{'model':db[_0xe42cba[_0x29e9bb(0x1cf)]],'as':_0xe42cba['as'],'attributes':_0xe42cba[_0x29e9bb(0x1cd)],'include':_0xe42cba[_0x29e9bb(0x1ce)]?_[_0x29e9bb(0x1d8)](_0xe42cba[_0x29e9bb(0x1ce)],function(_0x16cd3f){const _0x34ff53=_0x29e9bb;return{'model':db[_0x16cd3f['model']],'as':_0x16cd3f['as'],'attributes':_0x16cd3f['attributes'],'include':_0x16cd3f[_0x34ff53(0x1ce)]?_[_0x34ff53(0x1d8)](_0x16cd3f[_0x34ff53(0x1ce)],function(_0xf90650){const _0x433aef=_0x34ff53;return{'model':db[_0xf90650[_0x433aef(0x1cf)]],'as':_0xf90650['as'],'attributes':_0xf90650[_0x433aef(0x1cd)]};}):[]};}):[]};}):[]:[]})[_0x2619aa(0x1d9)](function(_0x36d972){const _0x3a8559=_0x2619aa;logger['info'](_0x3a8559(0x1db),_0x5d4495),logger[_0x3a8559(0x1d0)](_0x3a8559(0x1db),_0x5d4495,JSON[_0x3a8559(0x1d4)](_0x36d972)),_0x106ad0(_0x36d972);})[_0x2619aa(0x1ca)](function(_0x2e0853){const _0x2064eb=_0x2619aa;logger['error'](_0x2064eb(0x1db),_0x2e0853['message'],_0x5d4495),_0x5bc9fb(_0x298efc[_0x2064eb(0x1da)](0x1f4,_0x2e0853[_0x2064eb(0x1dc)]));});});};
\ No newline at end of file