Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.rpc.js
index 8e553f7..f28cecb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa952=['moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','info','request\x20sent','TeamVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','TeamVoiceQueue,\x20%s,\x20%s','message','catch','lodash','util'];(function(_0x1f678d,_0x437f07){var _0x17f8c8=function(_0x12e56e){while(--_0x12e56e){_0x1f678d['push'](_0x1f678d['shift']());}};_0x17f8c8(++_0x437f07);}(_0xa952,0x7c));var _0x2a95=function(_0x9da886,_0x4ad4fa){_0x9da886=_0x9da886-0x0;var _0x279f29=_0xa952[_0x9da886];return _0x279f29;};'use strict';var _=require(_0x2a95('0x0'));var util=require(_0x2a95('0x1'));var moment=require(_0x2a95('0x2'));var BPromise=require(_0x2a95('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x2a95('0x4'));var db=require(_0x2a95('0x5'))['db'];var utils=require(_0x2a95('0x6'));var logger=require('../../config/logger')(_0x2a95('0x7'));var config=require(_0x2a95('0x8'));var jayson=require(_0x2a95('0x9'));var client=jayson[_0x2a95('0xa')][_0x2a95('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x104a49,_0x11469a,_0x582c29){return new BPromise(function(_0x574567,_0x10c102){return client['request'](_0x104a49,_0x582c29)['then'](function(_0x294eac){logger[_0x2a95('0xc')]('TeamVoiceQueue,\x20%s,\x20%s',_0x11469a,_0x2a95('0xd'));logger['debug'](_0x2a95('0xe'),_0x11469a,_0x2a95('0xd'),JSON[_0x2a95('0xf')](_0x294eac));if(_0x294eac[_0x2a95('0x10')]){if(_0x294eac[_0x2a95('0x10')][_0x2a95('0x11')]===0x1f4){logger[_0x2a95('0x10')](_0x2a95('0x12'),_0x11469a,_0x294eac[_0x2a95('0x10')][_0x2a95('0x13')]);return _0x10c102(_0x294eac[_0x2a95('0x10')]['message']);}logger[_0x2a95('0x10')](_0x2a95('0x12'),_0x11469a,_0x294eac[_0x2a95('0x10')][_0x2a95('0x13')]);return _0x574567(_0x294eac[_0x2a95('0x10')][_0x2a95('0x13')]);}else{logger[_0x2a95('0xc')](_0x2a95('0x12'),_0x11469a,_0x2a95('0xd'));_0x574567(_0x294eac['result'][_0x2a95('0x13')]);}})[_0x2a95('0x14')](function(_0x1c21ca){logger['error'](_0x2a95('0x12'),_0x11469a,_0x1c21ca);_0x10c102(_0x1c21ca);});});}
\ No newline at end of file
+var _0xac92=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','request','then','info','TeamVoiceQueue,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','lodash','util','moment'];(function(_0x572717,_0x33ef1f){var _0x46ac6e=function(_0x4a144c){while(--_0x4a144c){_0x572717['push'](_0x572717['shift']());}};_0x46ac6e(++_0x33ef1f);}(_0xac92,0x7b));var _0x2ac9=function(_0xd9f8be,_0x34b8a9){_0xd9f8be=_0xd9f8be-0x0;var _0x496027=_0xac92[_0xd9f8be];return _0x496027;};'use strict';var _=require(_0x2ac9('0x0'));var util=require(_0x2ac9('0x1'));var moment=require(_0x2ac9('0x2'));var BPromise=require(_0x2ac9('0x3'));var rs=require(_0x2ac9('0x4'));var fs=require('fs');var Redis=require(_0x2ac9('0x5'));var db=require(_0x2ac9('0x6'))['db'];var utils=require(_0x2ac9('0x7'));var logger=require('../../config/logger')(_0x2ac9('0x8'));var config=require(_0x2ac9('0x9'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x14108f,_0x2246d9,_0x177a22){return new BPromise(function(_0x24edb4,_0x26f9c8){return client[_0x2ac9('0xa')](_0x14108f,_0x177a22)[_0x2ac9('0xb')](function(_0x4dfc91){logger[_0x2ac9('0xc')](_0x2ac9('0xd'),_0x2246d9,_0x2ac9('0xe'));logger[_0x2ac9('0xf')]('TeamVoiceQueue,\x20%s,\x20%s,\x20%s',_0x2246d9,'request\x20sent',JSON[_0x2ac9('0x10')](_0x4dfc91));if(_0x4dfc91['error']){if(_0x4dfc91[_0x2ac9('0x11')][_0x2ac9('0x12')]===0x1f4){logger[_0x2ac9('0x11')]('TeamVoiceQueue,\x20%s,\x20%s',_0x2246d9,_0x4dfc91[_0x2ac9('0x11')][_0x2ac9('0x13')]);return _0x26f9c8(_0x4dfc91[_0x2ac9('0x11')]['message']);}logger[_0x2ac9('0x11')](_0x2ac9('0xd'),_0x2246d9,_0x4dfc91[_0x2ac9('0x11')][_0x2ac9('0x13')]);return _0x24edb4(_0x4dfc91[_0x2ac9('0x11')]['message']);}else{logger[_0x2ac9('0xc')]('TeamVoiceQueue,\x20%s,\x20%s',_0x2246d9,_0x2ac9('0xe'));_0x24edb4(_0x4dfc91[_0x2ac9('0x14')][_0x2ac9('0x13')]);}})['catch'](function(_0x22d971){logger[_0x2ac9('0x11')]('TeamVoiceQueue,\x20%s,\x20%s',_0x2246d9,_0x22d971);_0x26f9c8(_0x22d971);});});}
\ No newline at end of file