Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.rpc.js
index d9d9f87..01336d4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x12aa=['bluebird','randomstring','ioredis','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','then','request\x20sent','debug','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','TeamVoiceQueue,\x20%s,\x20%s','message','info','result','catch','lodash','util'];(function(_0x55fbde,_0x5545fd){var _0x3f00d6=function(_0x306dfc){while(--_0x306dfc){_0x55fbde['push'](_0x55fbde['shift']());}};_0x3f00d6(++_0x5545fd);}(_0x12aa,0x1a0));var _0xa12a=function(_0x315f55,_0x2f6f44){_0x315f55=_0x315f55-0x0;var _0x42d002=_0x12aa[_0x315f55];return _0x42d002;};'use strict';var _=require(_0xa12a('0x0'));var util=require(_0xa12a('0x1'));var moment=require('moment');var BPromise=require(_0xa12a('0x2'));var rs=require(_0xa12a('0x3'));var fs=require('fs');var Redis=require(_0xa12a('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xa12a('0x5'));var logger=require(_0xa12a('0x6'))('rpc');var config=require(_0xa12a('0x7'));var jayson=require(_0xa12a('0x8'));var client=jayson[_0xa12a('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0xf785c7,_0x261987,_0xfc8356){return new BPromise(function(_0x5a6901,_0x365fa5){return client[_0xa12a('0xa')](_0xf785c7,_0xfc8356)[_0xa12a('0xb')](function(_0x30d8e6){logger['info']('TeamVoiceQueue,\x20%s,\x20%s',_0x261987,_0xa12a('0xc'));logger[_0xa12a('0xd')](_0xa12a('0xe'),_0x261987,_0xa12a('0xc'),JSON[_0xa12a('0xf')](_0x30d8e6));if(_0x30d8e6['error']){if(_0x30d8e6[_0xa12a('0x10')]['code']===0x1f4){logger[_0xa12a('0x10')](_0xa12a('0x11'),_0x261987,_0x30d8e6[_0xa12a('0x10')]['message']);return _0x365fa5(_0x30d8e6[_0xa12a('0x10')][_0xa12a('0x12')]);}logger[_0xa12a('0x10')](_0xa12a('0x11'),_0x261987,_0x30d8e6['error'][_0xa12a('0x12')]);return _0x5a6901(_0x30d8e6[_0xa12a('0x10')]['message']);}else{logger[_0xa12a('0x13')](_0xa12a('0x11'),_0x261987,_0xa12a('0xc'));_0x5a6901(_0x30d8e6[_0xa12a('0x14')]['message']);}})[_0xa12a('0x15')](function(_0x28bdbe){logger['error'](_0xa12a('0x11'),_0x261987,_0x28bdbe);_0x365fa5(_0x28bdbe);});});}
\ No newline at end of file
+var _0xff96=['TeamVoiceQueue,\x20%s,\x20%s','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','request\x20sent','debug','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message'];(function(_0x3caa84,_0x7e8d4e){var _0x5235bd=function(_0x194834){while(--_0x194834){_0x3caa84['push'](_0x3caa84['shift']());}};_0x5235bd(++_0x7e8d4e);}(_0xff96,0x179));var _0x6ff9=function(_0x15f43a,_0x57c8b5){_0x15f43a=_0x15f43a-0x0;var _0x2369bc=_0xff96[_0x15f43a];return _0x2369bc;};'use strict';var _=require(_0x6ff9('0x0'));var util=require(_0x6ff9('0x1'));var moment=require(_0x6ff9('0x2'));var BPromise=require(_0x6ff9('0x3'));var rs=require(_0x6ff9('0x4'));var fs=require('fs');var Redis=require(_0x6ff9('0x5'));var db=require(_0x6ff9('0x6'))['db'];var utils=require(_0x6ff9('0x7'));var logger=require(_0x6ff9('0x8'))(_0x6ff9('0x9'));var config=require(_0x6ff9('0xa'));var jayson=require(_0x6ff9('0xb'));var client=jayson['client'][_0x6ff9('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x5509ee,_0x502cf2,_0x4f982b){return new BPromise(function(_0x5d56f4,_0x2b1b7d){return client[_0x6ff9('0xd')](_0x5509ee,_0x4f982b)[_0x6ff9('0xe')](function(_0x1ce5a3){logger[_0x6ff9('0xf')]('TeamVoiceQueue,\x20%s,\x20%s',_0x502cf2,_0x6ff9('0x10'));logger[_0x6ff9('0x11')](_0x6ff9('0x12'),_0x502cf2,_0x6ff9('0x10'),JSON[_0x6ff9('0x13')](_0x1ce5a3));if(_0x1ce5a3[_0x6ff9('0x14')]){if(_0x1ce5a3[_0x6ff9('0x14')][_0x6ff9('0x15')]===0x1f4){logger[_0x6ff9('0x14')]('TeamVoiceQueue,\x20%s,\x20%s',_0x502cf2,_0x1ce5a3['error'][_0x6ff9('0x16')]);return _0x2b1b7d(_0x1ce5a3['error'][_0x6ff9('0x16')]);}logger[_0x6ff9('0x14')](_0x6ff9('0x17'),_0x502cf2,_0x1ce5a3['error']['message']);return _0x5d56f4(_0x1ce5a3[_0x6ff9('0x14')][_0x6ff9('0x16')]);}else{logger[_0x6ff9('0xf')](_0x6ff9('0x17'),_0x502cf2,'request\x20sent');_0x5d56f4(_0x1ce5a3['result'][_0x6ff9('0x16')]);}})[_0x6ff9('0x18')](function(_0x3d4268){logger[_0x6ff9('0x14')](_0x6ff9('0x17'),_0x502cf2,_0x3d4268);_0x2b1b7d(_0x3d4268);});});}
\ No newline at end of file