Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.rpc.js
index f7c890d..93226b9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaf09=['error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','http','request','then','info','TeamVoiceQueue,\x20%s,\x20%s','request\x20sent','debug','TeamVoiceQueue,\x20%s,\x20%s,\x20%s'];(function(_0x5c4165,_0x264905){var _0x521e50=function(_0x10cb11){while(--_0x10cb11){_0x5c4165['push'](_0x5c4165['shift']());}};_0x521e50(++_0x264905);}(_0xaf09,0x10d));var _0x9af0=function(_0x1cbcf1,_0x3f9fd9){_0x1cbcf1=_0x1cbcf1-0x0;var _0x3a06f0=_0xaf09[_0x1cbcf1];return _0x3a06f0;};'use strict';var _=require(_0x9af0('0x0'));var util=require(_0x9af0('0x1'));var moment=require(_0x9af0('0x2'));var BPromise=require(_0x9af0('0x3'));var rs=require(_0x9af0('0x4'));var fs=require('fs');var Redis=require(_0x9af0('0x5'));var db=require(_0x9af0('0x6'))['db'];var utils=require(_0x9af0('0x7'));var logger=require(_0x9af0('0x8'))('rpc');var config=require(_0x9af0('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x9af0('0xa')][_0x9af0('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x52162e,_0xf7e92,_0x556d1a){return new BPromise(function(_0x51663a,_0xad63de){return client[_0x9af0('0xc')](_0x52162e,_0x556d1a)[_0x9af0('0xd')](function(_0x220f3c){logger[_0x9af0('0xe')](_0x9af0('0xf'),_0xf7e92,_0x9af0('0x10'));logger[_0x9af0('0x11')](_0x9af0('0x12'),_0xf7e92,_0x9af0('0x10'),JSON['stringify'](_0x220f3c));if(_0x220f3c['error']){if(_0x220f3c[_0x9af0('0x13')][_0x9af0('0x14')]===0x1f4){logger[_0x9af0('0x13')]('TeamVoiceQueue,\x20%s,\x20%s',_0xf7e92,_0x220f3c[_0x9af0('0x13')][_0x9af0('0x15')]);return _0xad63de(_0x220f3c[_0x9af0('0x13')]['message']);}logger['error'](_0x9af0('0xf'),_0xf7e92,_0x220f3c[_0x9af0('0x13')][_0x9af0('0x15')]);return _0x51663a(_0x220f3c['error'][_0x9af0('0x15')]);}else{logger[_0x9af0('0xe')]('TeamVoiceQueue,\x20%s,\x20%s',_0xf7e92,'request\x20sent');_0x51663a(_0x220f3c[_0x9af0('0x16')][_0x9af0('0x15')]);}})[_0x9af0('0x17')](function(_0x40ad66){logger[_0x9af0('0x13')]('TeamVoiceQueue,\x20%s,\x20%s',_0xf7e92,_0x40ad66);_0xad63de(_0x40ad66);});});}
\ 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