Built motion from commit ff78e754.|2.6.29
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.rpc.js
index 275fd24..b9c7f41 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf149=['stringify','error','code','message','result','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','http','info','TeamVoiceQueue,\x20%s,\x20%s','request\x20sent','TeamVoiceQueue,\x20%s,\x20%s,\x20%s'];(function(_0x537c78,_0x4f882e){var _0x41ac0d=function(_0x2e49df){while(--_0x2e49df){_0x537c78['push'](_0x537c78['shift']());}};_0x41ac0d(++_0x4f882e);}(_0xf149,0xe1));var _0x9f14=function(_0x350796,_0x1bf21f){_0x350796=_0x350796-0x0;var _0x126f19=_0xf149[_0x350796];return _0x126f19;};'use strict';var _=require(_0x9f14('0x0'));var util=require(_0x9f14('0x1'));var moment=require(_0x9f14('0x2'));var BPromise=require('bluebird');var rs=require(_0x9f14('0x3'));var fs=require('fs');var Redis=require(_0x9f14('0x4'));var db=require(_0x9f14('0x5'))['db'];var utils=require(_0x9f14('0x6'));var logger=require(_0x9f14('0x7'))(_0x9f14('0x8'));var config=require(_0x9f14('0x9'));var jayson=require('jayson/promise');var client=jayson['client'][_0x9f14('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x33bf35,_0xf38c70,_0x1fbed3){return new BPromise(function(_0x317ece,_0x1a9f8b){return client['request'](_0x33bf35,_0x1fbed3)['then'](function(_0x4f5e64){logger[_0x9f14('0xb')](_0x9f14('0xc'),_0xf38c70,_0x9f14('0xd'));logger['debug'](_0x9f14('0xe'),_0xf38c70,_0x9f14('0xd'),JSON[_0x9f14('0xf')](_0x4f5e64));if(_0x4f5e64[_0x9f14('0x10')]){if(_0x4f5e64[_0x9f14('0x10')][_0x9f14('0x11')]===0x1f4){logger['error'](_0x9f14('0xc'),_0xf38c70,_0x4f5e64[_0x9f14('0x10')][_0x9f14('0x12')]);return _0x1a9f8b(_0x4f5e64[_0x9f14('0x10')][_0x9f14('0x12')]);}logger[_0x9f14('0x10')](_0x9f14('0xc'),_0xf38c70,_0x4f5e64[_0x9f14('0x10')][_0x9f14('0x12')]);return _0x317ece(_0x4f5e64[_0x9f14('0x10')][_0x9f14('0x12')]);}else{logger[_0x9f14('0xb')](_0x9f14('0xc'),_0xf38c70,_0x9f14('0xd'));_0x317ece(_0x4f5e64[_0x9f14('0x13')][_0x9f14('0x12')]);}})['catch'](function(_0x380e67){logger[_0x9f14('0x10')](_0x9f14('0xc'),_0xf38c70,_0x380e67);_0x1a9f8b(_0x380e67);});});}
\ No newline at end of file
+var _0x35cb=['../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','message','TeamVoiceQueue,\x20%s,\x20%s','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x5759e0,_0x31984b){var _0x1a64cd=function(_0x586c59){while(--_0x586c59){_0x5759e0['push'](_0x5759e0['shift']());}};_0x1a64cd(++_0x31984b);}(_0x35cb,0xb8));var _0xb35c=function(_0x38c280,_0x38c8a6){_0x38c280=_0x38c280-0x0;var _0x527f69=_0x35cb[_0x38c280];return _0x527f69;};'use strict';var _=require(_0xb35c('0x0'));var util=require(_0xb35c('0x1'));var moment=require(_0xb35c('0x2'));var BPromise=require(_0xb35c('0x3'));var rs=require(_0xb35c('0x4'));var fs=require('fs');var Redis=require(_0xb35c('0x5'));var db=require(_0xb35c('0x6'))['db'];var utils=require(_0xb35c('0x7'));var logger=require(_0xb35c('0x8'))('rpc');var config=require(_0xb35c('0x9'));var jayson=require(_0xb35c('0xa'));var client=jayson[_0xb35c('0xb')][_0xb35c('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x25f1da,_0x167548,_0x2129f2){return new BPromise(function(_0x5e5528,_0x348333){return client[_0xb35c('0xd')](_0x25f1da,_0x2129f2)[_0xb35c('0xe')](function(_0x46285f){logger[_0xb35c('0xf')]('TeamVoiceQueue,\x20%s,\x20%s',_0x167548,_0xb35c('0x10'));logger[_0xb35c('0x11')](_0xb35c('0x12'),_0x167548,_0xb35c('0x10'),JSON[_0xb35c('0x13')](_0x46285f));if(_0x46285f[_0xb35c('0x14')]){if(_0x46285f[_0xb35c('0x14')]['code']===0x1f4){logger['error']('TeamVoiceQueue,\x20%s,\x20%s',_0x167548,_0x46285f[_0xb35c('0x14')][_0xb35c('0x15')]);return _0x348333(_0x46285f[_0xb35c('0x14')][_0xb35c('0x15')]);}logger[_0xb35c('0x14')](_0xb35c('0x16'),_0x167548,_0x46285f[_0xb35c('0x14')][_0xb35c('0x15')]);return _0x5e5528(_0x46285f[_0xb35c('0x14')][_0xb35c('0x15')]);}else{logger[_0xb35c('0xf')](_0xb35c('0x16'),_0x167548,_0xb35c('0x10'));_0x5e5528(_0x46285f[_0xb35c('0x17')][_0xb35c('0x15')]);}})['catch'](function(_0x577136){logger[_0xb35c('0x14')](_0xb35c('0x16'),_0x167548,_0x577136);_0x348333(_0x577136);});});}
\ No newline at end of file