Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / api / voicePrefix / voicePrefix.rpc.js
index ac5e2ae..7b1cead 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x887f=['../../config/environment','http','redis','localhost','socket.io-emitter','./voicePrefix.socket','register','then','info','VoicePrefix,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0xdac8d8,_0x17ca8c){var _0xe73855=function(_0x4332cd){while(--_0x4332cd){_0xdac8d8['push'](_0xdac8d8['shift']());}};_0xe73855(++_0x17ca8c);}(_0x887f,0x116));var _0xf887=function(_0x5a64e2,_0x22433f){_0x5a64e2=_0x5a64e2-0x0;var _0x8fe8a4=_0x887f[_0x5a64e2];return _0x8fe8a4;};'use strict';var _=require(_0xf887('0x0'));var util=require(_0xf887('0x1'));var moment=require(_0xf887('0x2'));var BPromise=require('bluebird');var rs=require(_0xf887('0x3'));var fs=require('fs');var Redis=require(_0xf887('0x4'));var db=require(_0xf887('0x5'))['db'];var utils=require(_0xf887('0x6'));var logger=require(_0xf887('0x7'))('rpc');var config=require(_0xf887('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0xf887('0x9')]({'port':0x232a});config[_0xf887('0xa')]=_['defaults'](config[_0xf887('0xa')],{'host':_0xf887('0xb'),'port':0x18eb});var socket=require(_0xf887('0xc'))(new Redis(config['redis']));require(_0xf887('0xd'))[_0xf887('0xe')](socket);function respondWithRpcPromise(_0x38ee7e,_0x2b672c,_0x5b9972){return new BPromise(function(_0x524186,_0x3cc0e0){return client['request'](_0x38ee7e,_0x5b9972)[_0xf887('0xf')](function(_0x444f56){logger[_0xf887('0x10')](_0xf887('0x11'),_0x2b672c,_0xf887('0x12'));logger[_0xf887('0x13')]('VoicePrefix,\x20%s,\x20%s,\x20%s',_0x2b672c,'request\x20sent',JSON[_0xf887('0x14')](_0x444f56));if(_0x444f56['error']){if(_0x444f56[_0xf887('0x15')][_0xf887('0x16')]===0x1f4){logger[_0xf887('0x15')]('VoicePrefix,\x20%s,\x20%s',_0x2b672c,_0x444f56[_0xf887('0x15')][_0xf887('0x17')]);return _0x3cc0e0(_0x444f56[_0xf887('0x15')][_0xf887('0x17')]);}logger[_0xf887('0x15')](_0xf887('0x11'),_0x2b672c,_0x444f56['error']['message']);return _0x524186(_0x444f56[_0xf887('0x15')][_0xf887('0x17')]);}else{logger['info']('VoicePrefix,\x20%s,\x20%s',_0x2b672c,_0xf887('0x12'));_0x524186(_0x444f56[_0xf887('0x18')][_0xf887('0x17')]);}})[_0xf887('0x19')](function(_0xc4feba){logger[_0xf887('0x15')](_0xf887('0x11'),_0x2b672c,_0xc4feba);_0x3cc0e0(_0xc4feba);});});}
\ No newline at end of file
+var _0x7ed6=['request\x20sent','debug','VoicePrefix,\x20%s,\x20%s,\x20%s','error','VoicePrefix,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','defaults','redis','localhost','socket.io-emitter','./voicePrefix.socket','register','then','info'];(function(_0x26b650,_0x12ecbd){var _0x10cdce=function(_0x58962c){while(--_0x58962c){_0x26b650['push'](_0x26b650['shift']());}};_0x10cdce(++_0x12ecbd);}(_0x7ed6,0xcc));var _0x67ed=function(_0x32034f,_0x3c97eb){_0x32034f=_0x32034f-0x0;var _0x3c2928=_0x7ed6[_0x32034f];return _0x3c2928;};'use strict';var _=require(_0x67ed('0x0'));var util=require(_0x67ed('0x1'));var moment=require(_0x67ed('0x2'));var BPromise=require(_0x67ed('0x3'));var rs=require(_0x67ed('0x4'));var fs=require('fs');var Redis=require(_0x67ed('0x5'));var db=require(_0x67ed('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x67ed('0x7'))(_0x67ed('0x8'));var config=require(_0x67ed('0x9'));var jayson=require(_0x67ed('0xa'));var client=jayson['client'][_0x67ed('0xb')]({'port':0x232a});config['redis']=_[_0x67ed('0xc')](config[_0x67ed('0xd')],{'host':_0x67ed('0xe'),'port':0x18eb});var socket=require(_0x67ed('0xf'))(new Redis(config[_0x67ed('0xd')]));require(_0x67ed('0x10'))[_0x67ed('0x11')](socket);function respondWithRpcPromise(_0x48d637,_0x1cc038,_0x313ec7){return new BPromise(function(_0xd657f3,_0x3d0548){return client['request'](_0x48d637,_0x313ec7)[_0x67ed('0x12')](function(_0x1f18f5){logger[_0x67ed('0x13')]('VoicePrefix,\x20%s,\x20%s',_0x1cc038,_0x67ed('0x14'));logger[_0x67ed('0x15')](_0x67ed('0x16'),_0x1cc038,_0x67ed('0x14'),JSON['stringify'](_0x1f18f5));if(_0x1f18f5[_0x67ed('0x17')]){if(_0x1f18f5[_0x67ed('0x17')]['code']===0x1f4){logger[_0x67ed('0x17')](_0x67ed('0x18'),_0x1cc038,_0x1f18f5[_0x67ed('0x17')][_0x67ed('0x19')]);return _0x3d0548(_0x1f18f5[_0x67ed('0x17')][_0x67ed('0x19')]);}logger[_0x67ed('0x17')](_0x67ed('0x18'),_0x1cc038,_0x1f18f5[_0x67ed('0x17')]['message']);return _0xd657f3(_0x1f18f5['error'][_0x67ed('0x19')]);}else{logger[_0x67ed('0x13')](_0x67ed('0x18'),_0x1cc038,_0x67ed('0x14'));_0xd657f3(_0x1f18f5[_0x67ed('0x1a')]['message']);}})[_0x67ed('0x1b')](function(_0x1f242d){logger['error'](_0x67ed('0x18'),_0x1cc038,_0x1f242d);_0x3d0548(_0x1f242d);});});}
\ No newline at end of file