Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.rpc.js
index 082999a..93226b9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x710e=['../../config/environment','jayson/promise','client','http','request','info','debug','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','TeamVoiceQueue,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc'];(function(_0x3bb81e,_0x52b928){var _0x4ed494=function(_0x207002){while(--_0x207002){_0x3bb81e['push'](_0x3bb81e['shift']());}};_0x4ed494(++_0x52b928);}(_0x710e,0x1b9));var _0xe710=function(_0x259214,_0x2e2db5){_0x259214=_0x259214-0x0;var _0x15aa79=_0x710e[_0x259214];return _0x15aa79;};'use strict';var _=require(_0xe710('0x0'));var util=require(_0xe710('0x1'));var moment=require(_0xe710('0x2'));var BPromise=require(_0xe710('0x3'));var rs=require(_0xe710('0x4'));var fs=require('fs');var Redis=require(_0xe710('0x5'));var db=require(_0xe710('0x6'))['db'];var utils=require(_0xe710('0x7'));var logger=require('../../config/logger')(_0xe710('0x8'));var config=require(_0xe710('0x9'));var jayson=require(_0xe710('0xa'));var client=jayson[_0xe710('0xb')][_0xe710('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x349f36,_0x50dffa,_0x1c5e35){return new BPromise(function(_0x4c3e88,_0x3e5ee6){return client[_0xe710('0xd')](_0x349f36,_0x1c5e35)['then'](function(_0x536edd){logger[_0xe710('0xe')]('TeamVoiceQueue,\x20%s,\x20%s',_0x50dffa,'request\x20sent');logger[_0xe710('0xf')](_0xe710('0x10'),_0x50dffa,_0xe710('0x11'),JSON[_0xe710('0x12')](_0x536edd));if(_0x536edd[_0xe710('0x13')]){if(_0x536edd[_0xe710('0x13')][_0xe710('0x14')]===0x1f4){logger[_0xe710('0x13')](_0xe710('0x15'),_0x50dffa,_0x536edd[_0xe710('0x13')]['message']);return _0x3e5ee6(_0x536edd[_0xe710('0x13')]['message']);}logger['error'](_0xe710('0x15'),_0x50dffa,_0x536edd[_0xe710('0x13')][_0xe710('0x16')]);return _0x4c3e88(_0x536edd[_0xe710('0x13')]['message']);}else{logger['info'](_0xe710('0x15'),_0x50dffa,_0xe710('0x11'));_0x4c3e88(_0x536edd[_0xe710('0x17')]['message']);}})[_0xe710('0x18')](function(_0x54cfa8){logger['error'](_0xe710('0x15'),_0x50dffa,_0x54cfa8);_0x3e5ee6(_0x54cfa8);});});}
\ No newline at end of file
+var _0x710e=['result','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','http','info','TeamVoiceQueue,\x20%s,\x20%s','request\x20sent','debug','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message'];(function(_0x4b3032,_0xb06e2d){var _0x139f4d=function(_0x31a55d){while(--_0x31a55d){_0x4b3032['push'](_0x4b3032['shift']());}};_0x139f4d(++_0xb06e2d);}(_0x710e,0xb6));var _0xe710=function(_0x1b7c22,_0x25b097){_0x1b7c22=_0x1b7c22-0x0;var _0x41891b=_0x710e[_0x1b7c22];return _0x41891b;};'use strict';var _=require(_0xe710('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xe710('0x1'));var rs=require(_0xe710('0x2'));var fs=require('fs');var Redis=require(_0xe710('0x3'));var db=require(_0xe710('0x4'))['db'];var utils=require(_0xe710('0x5'));var logger=require('../../config/logger')(_0xe710('0x6'));var config=require(_0xe710('0x7'));var jayson=require('jayson/promise');var client=jayson['client'][_0xe710('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x302291,_0x205db2,_0x211a33){return new BPromise(function(_0xf86a0f,_0x19ab1d){return client['request'](_0x302291,_0x211a33)['then'](function(_0x58d510){logger[_0xe710('0x9')](_0xe710('0xa'),_0x205db2,_0xe710('0xb'));logger[_0xe710('0xc')](_0xe710('0xd'),_0x205db2,_0xe710('0xb'),JSON[_0xe710('0xe')](_0x58d510));if(_0x58d510[_0xe710('0xf')]){if(_0x58d510[_0xe710('0xf')][_0xe710('0x10')]===0x1f4){logger[_0xe710('0xf')](_0xe710('0xa'),_0x205db2,_0x58d510[_0xe710('0xf')]['message']);return _0x19ab1d(_0x58d510['error'][_0xe710('0x11')]);}logger[_0xe710('0xf')](_0xe710('0xa'),_0x205db2,_0x58d510[_0xe710('0xf')][_0xe710('0x11')]);return _0xf86a0f(_0x58d510[_0xe710('0xf')]['message']);}else{logger[_0xe710('0x9')](_0xe710('0xa'),_0x205db2,_0xe710('0xb'));_0xf86a0f(_0x58d510[_0xe710('0x12')][_0xe710('0x11')]);}})[_0xe710('0x13')](function(_0x39bdf7){logger[_0xe710('0xf')](_0xe710('0xa'),_0x205db2,_0x39bdf7);_0x19ab1d(_0x39bdf7);});});}
\ No newline at end of file