Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / userVoiceQueue / userVoiceQueue.rpc.js
index 679f9a0..7626cf1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x76fa=['info','UserVoiceQueue,\x20%s,\x20%s','debug','UserVoiceQueue,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','rpc','jayson/promise','client','request'];(function(_0xc77819,_0x139fdc){var _0x1c9434=function(_0x11d15d){while(--_0x11d15d){_0xc77819['push'](_0xc77819['shift']());}};_0x1c9434(++_0x139fdc);}(_0x76fa,0x73));var _0xa76f=function(_0xd791ec,_0x20ad07){_0xd791ec=_0xd791ec-0x0;var _0x485c78=_0x76fa[_0xd791ec];return _0x485c78;};'use strict';var _=require(_0xa76f('0x0'));var util=require(_0xa76f('0x1'));var moment=require(_0xa76f('0x2'));var BPromise=require(_0xa76f('0x3'));var rs=require(_0xa76f('0x4'));var fs=require('fs');var Redis=require(_0xa76f('0x5'));var db=require(_0xa76f('0x6'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xa76f('0x7'));var config=require('../../config/environment');var jayson=require(_0xa76f('0x8'));var client=jayson[_0xa76f('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x141e32,_0x3880f8,_0xccf5ed){return new BPromise(function(_0x5c3367,_0xbeafb3){return client[_0xa76f('0xa')](_0x141e32,_0xccf5ed)['then'](function(_0x46c374){logger[_0xa76f('0xb')](_0xa76f('0xc'),_0x3880f8,'request\x20sent');logger[_0xa76f('0xd')](_0xa76f('0xe'),_0x3880f8,_0xa76f('0xf'),JSON[_0xa76f('0x10')](_0x46c374));if(_0x46c374['error']){if(_0x46c374[_0xa76f('0x11')]['code']===0x1f4){logger[_0xa76f('0x11')](_0xa76f('0xc'),_0x3880f8,_0x46c374[_0xa76f('0x11')][_0xa76f('0x12')]);return _0xbeafb3(_0x46c374[_0xa76f('0x11')][_0xa76f('0x12')]);}logger[_0xa76f('0x11')]('UserVoiceQueue,\x20%s,\x20%s',_0x3880f8,_0x46c374[_0xa76f('0x11')][_0xa76f('0x12')]);return _0x5c3367(_0x46c374['error'][_0xa76f('0x12')]);}else{logger[_0xa76f('0xb')](_0xa76f('0xc'),_0x3880f8,_0xa76f('0xf'));_0x5c3367(_0x46c374[_0xa76f('0x13')][_0xa76f('0x12')]);}})[_0xa76f('0x14')](function(_0x489ca0){logger[_0xa76f('0x11')]('UserVoiceQueue,\x20%s,\x20%s',_0x3880f8,_0x489ca0);_0xbeafb3(_0x489ca0);});});}
\ 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