Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / api / userVoiceQueue / userVoiceQueue.rpc.js
index 9b17bd1..25d1dbb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaae1=['then','UserVoiceQueue,\x20%s,\x20%s','request\x20sent','debug','UserVoiceQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client'];(function(_0x6d9911,_0x337167){var _0x2a8e15=function(_0x351aef){while(--_0x351aef){_0x6d9911['push'](_0x6d9911['shift']());}};_0x2a8e15(++_0x337167);}(_0xaae1,0x1c2));var _0x1aae=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xaae1[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x1aae('0x0'));var util=require(_0x1aae('0x1'));var moment=require(_0x1aae('0x2'));var BPromise=require('bluebird');var rs=require(_0x1aae('0x3'));var fs=require('fs');var Redis=require(_0x1aae('0x4'));var db=require(_0x1aae('0x5'))['db'];var utils=require(_0x1aae('0x6'));var logger=require(_0x1aae('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0x1aae('0x8'));var client=jayson[_0x1aae('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x30be81,_0x27933d,_0x255938){return new BPromise(function(_0x2eab52,_0x59d82f){return client['request'](_0x30be81,_0x255938)[_0x1aae('0xa')](function(_0x40dfc4){logger['info'](_0x1aae('0xb'),_0x27933d,_0x1aae('0xc'));logger[_0x1aae('0xd')](_0x1aae('0xe'),_0x27933d,_0x1aae('0xc'),JSON[_0x1aae('0xf')](_0x40dfc4));if(_0x40dfc4[_0x1aae('0x10')]){if(_0x40dfc4['error'][_0x1aae('0x11')]===0x1f4){logger['error']('UserVoiceQueue,\x20%s,\x20%s',_0x27933d,_0x40dfc4[_0x1aae('0x10')][_0x1aae('0x12')]);return _0x59d82f(_0x40dfc4['error'][_0x1aae('0x12')]);}logger['error'](_0x1aae('0xb'),_0x27933d,_0x40dfc4[_0x1aae('0x10')][_0x1aae('0x12')]);return _0x2eab52(_0x40dfc4[_0x1aae('0x10')][_0x1aae('0x12')]);}else{logger['info']('UserVoiceQueue,\x20%s,\x20%s',_0x27933d,_0x1aae('0xc'));_0x2eab52(_0x40dfc4[_0x1aae('0x13')]['message']);}})['catch'](function(_0x2e0729){logger[_0x1aae('0x10')](_0x1aae('0xb'),_0x27933d,_0x2e0729);_0x59d82f(_0x2e0729);});});}
\ No newline at end of file
+var _0x575f=['UserVoiceQueue,\x20%s,\x20%s','debug','UserVoiceQueue,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info'];(function(_0x4efcf4,_0x20f39b){var _0x4d9d20=function(_0x563c4b){while(--_0x563c4b){_0x4efcf4['push'](_0x4efcf4['shift']());}};_0x4d9d20(++_0x20f39b);}(_0x575f,0x86));var _0xf575=function(_0x58b2e3,_0xccacc4){_0x58b2e3=_0x58b2e3-0x0;var _0x1c8282=_0x575f[_0x58b2e3];return _0x1c8282;};'use strict';var _=require(_0xf575('0x0'));var util=require(_0xf575('0x1'));var moment=require(_0xf575('0x2'));var BPromise=require(_0xf575('0x3'));var rs=require(_0xf575('0x4'));var fs=require('fs');var Redis=require(_0xf575('0x5'));var db=require(_0xf575('0x6'))['db'];var utils=require(_0xf575('0x7'));var logger=require(_0xf575('0x8'))('rpc');var config=require(_0xf575('0x9'));var jayson=require(_0xf575('0xa'));var client=jayson[_0xf575('0xb')][_0xf575('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x18270e,_0x177a19,_0x428e0c){return new BPromise(function(_0x799798,_0x1ff636){return client[_0xf575('0xd')](_0x18270e,_0x428e0c)[_0xf575('0xe')](function(_0xf59a7){logger[_0xf575('0xf')](_0xf575('0x10'),_0x177a19,'request\x20sent');logger[_0xf575('0x11')](_0xf575('0x12'),_0x177a19,_0xf575('0x13'),JSON['stringify'](_0xf59a7));if(_0xf59a7[_0xf575('0x14')]){if(_0xf59a7[_0xf575('0x14')][_0xf575('0x15')]===0x1f4){logger[_0xf575('0x14')](_0xf575('0x10'),_0x177a19,_0xf59a7[_0xf575('0x14')][_0xf575('0x16')]);return _0x1ff636(_0xf59a7[_0xf575('0x14')][_0xf575('0x16')]);}logger[_0xf575('0x14')](_0xf575('0x10'),_0x177a19,_0xf59a7[_0xf575('0x14')]['message']);return _0x799798(_0xf59a7['error']['message']);}else{logger[_0xf575('0xf')](_0xf575('0x10'),_0x177a19,_0xf575('0x13'));_0x799798(_0xf59a7[_0xf575('0x17')][_0xf575('0x16')]);}})[_0xf575('0x18')](function(_0x1c8cd8){logger['error'](_0xf575('0x10'),_0x177a19,_0x1c8cd8);_0x1ff636(_0x1c8cd8);});});}
\ No newline at end of file