Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / userVoiceQueue / userVoiceQueue.rpc.js
index ae028ef..7626cf1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdd83=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','UserVoiceQueue,\x20%s,\x20%s','request\x20sent','debug','UserVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','moment','bluebird','randomstring','../../mysqldb'];(function(_0x431e76,_0xe29ef1){var _0x2a85f0=function(_0x5e2413){while(--_0x5e2413){_0x431e76['push'](_0x431e76['shift']());}};_0x2a85f0(++_0xe29ef1);}(_0xdd83,0x85));var _0x3dd8=function(_0x209941,_0x5c9988){_0x209941=_0x209941-0x0;var _0x1e8729=_0xdd83[_0x209941];return _0x1e8729;};'use strict';var _=require(_0x3dd8('0x0'));var util=require('util');var moment=require(_0x3dd8('0x1'));var BPromise=require(_0x3dd8('0x2'));var rs=require(_0x3dd8('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x3dd8('0x4'))['db'];var utils=require(_0x3dd8('0x5'));var logger=require(_0x3dd8('0x6'))(_0x3dd8('0x7'));var config=require(_0x3dd8('0x8'));var jayson=require(_0x3dd8('0x9'));var client=jayson[_0x3dd8('0xa')][_0x3dd8('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5bd642,_0x5b4211,_0x12c274){return new BPromise(function(_0x53f845,_0x96352f){return client['request'](_0x5bd642,_0x12c274)[_0x3dd8('0xc')](function(_0x4782a4){logger[_0x3dd8('0xd')](_0x3dd8('0xe'),_0x5b4211,_0x3dd8('0xf'));logger[_0x3dd8('0x10')](_0x3dd8('0x11'),_0x5b4211,_0x3dd8('0xf'),JSON[_0x3dd8('0x12')](_0x4782a4));if(_0x4782a4[_0x3dd8('0x13')]){if(_0x4782a4[_0x3dd8('0x13')][_0x3dd8('0x14')]===0x1f4){logger[_0x3dd8('0x13')]('UserVoiceQueue,\x20%s,\x20%s',_0x5b4211,_0x4782a4['error'][_0x3dd8('0x15')]);return _0x96352f(_0x4782a4[_0x3dd8('0x13')]['message']);}logger['error'](_0x3dd8('0xe'),_0x5b4211,_0x4782a4[_0x3dd8('0x13')][_0x3dd8('0x15')]);return _0x53f845(_0x4782a4[_0x3dd8('0x13')][_0x3dd8('0x15')]);}else{logger['info'](_0x3dd8('0xe'),_0x5b4211,_0x3dd8('0xf'));_0x53f845(_0x4782a4[_0x3dd8('0x16')]['message']);}})['catch'](function(_0x13d295){logger[_0x3dd8('0x13')](_0x3dd8('0xe'),_0x5b4211,_0x13d295);_0x96352f(_0x13d295);});});}
\ No newline at end of file
+var _0x3716=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','http','request','info','UserVoiceQueue,\x20%s,\x20%s','request\x20sent','debug','UserVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','bluebird','randomstring'];(function(_0x2521cf,_0x3e7918){var _0x33d042=function(_0x159b1d){while(--_0x159b1d){_0x2521cf['push'](_0x2521cf['shift']());}};_0x33d042(++_0x3e7918);}(_0x3716,0x105));var _0x6371=function(_0x166742,_0x55520c){_0x166742=_0x166742-0x0;var _0xb7814a=_0x3716[_0x166742];return _0xb7814a;};'use strict';var _=require(_0x6371('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x6371('0x1'));var rs=require(_0x6371('0x2'));var fs=require('fs');var Redis=require(_0x6371('0x3'));var db=require(_0x6371('0x4'))['db'];var utils=require(_0x6371('0x5'));var logger=require(_0x6371('0x6'))(_0x6371('0x7'));var config=require(_0x6371('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0x6371('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5e2b7d,_0x1aca6b,_0x2c6c23){return new BPromise(function(_0x1a542a,_0x1be5e1){return client[_0x6371('0xa')](_0x5e2b7d,_0x2c6c23)['then'](function(_0x59fb90){logger[_0x6371('0xb')](_0x6371('0xc'),_0x1aca6b,_0x6371('0xd'));logger[_0x6371('0xe')](_0x6371('0xf'),_0x1aca6b,'request\x20sent',JSON[_0x6371('0x10')](_0x59fb90));if(_0x59fb90['error']){if(_0x59fb90[_0x6371('0x11')][_0x6371('0x12')]===0x1f4){logger[_0x6371('0x11')]('UserVoiceQueue,\x20%s,\x20%s',_0x1aca6b,_0x59fb90[_0x6371('0x11')][_0x6371('0x13')]);return _0x1be5e1(_0x59fb90[_0x6371('0x11')][_0x6371('0x13')]);}logger[_0x6371('0x11')](_0x6371('0xc'),_0x1aca6b,_0x59fb90[_0x6371('0x11')][_0x6371('0x13')]);return _0x1a542a(_0x59fb90[_0x6371('0x11')][_0x6371('0x13')]);}else{logger[_0x6371('0xb')](_0x6371('0xc'),_0x1aca6b,_0x6371('0xd'));_0x1a542a(_0x59fb90[_0x6371('0x14')]['message']);}})[_0x6371('0x15')](function(_0x1ac0c4){logger[_0x6371('0x11')](_0x6371('0xc'),_0x1aca6b,_0x1ac0c4);_0x1be5e1(_0x1ac0c4);});});}
\ No newline at end of file