Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / voicePrefix / voicePrefix.rpc.js
index ad250fe..f6978c4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb6c9=['socket.io-emitter','./voicePrefix.socket','register','request','then','info','VoicePrefix,\x20%s,\x20%s','request\x20sent','debug','VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','client','http','redis','defaults','localhost'];(function(_0xa5b952,_0x126965){var _0x4d7d28=function(_0x1d38bb){while(--_0x1d38bb){_0xa5b952['push'](_0xa5b952['shift']());}};_0x4d7d28(++_0x126965);}(_0xb6c9,0x114));var _0x9b6c=function(_0x5d72da,_0xb7ce32){_0x5d72da=_0x5d72da-0x0;var _0x43ebe7=_0xb6c9[_0x5d72da];return _0x43ebe7;};'use strict';var _=require(_0x9b6c('0x0'));var util=require(_0x9b6c('0x1'));var moment=require(_0x9b6c('0x2'));var BPromise=require(_0x9b6c('0x3'));var rs=require(_0x9b6c('0x4'));var fs=require('fs');var Redis=require(_0x9b6c('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x9b6c('0x6'))(_0x9b6c('0x7'));var config=require(_0x9b6c('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x9b6c('0x9')][_0x9b6c('0xa')]({'port':0x232a});config[_0x9b6c('0xb')]=_[_0x9b6c('0xc')](config['redis'],{'host':_0x9b6c('0xd'),'port':0x18eb});var socket=require(_0x9b6c('0xe'))(new Redis(config[_0x9b6c('0xb')]));require(_0x9b6c('0xf'))[_0x9b6c('0x10')](socket);function respondWithRpcPromise(_0x35081c,_0x239006,_0x568115){return new BPromise(function(_0x340108,_0x520965){return client[_0x9b6c('0x11')](_0x35081c,_0x568115)[_0x9b6c('0x12')](function(_0x391ed4){logger[_0x9b6c('0x13')](_0x9b6c('0x14'),_0x239006,_0x9b6c('0x15'));logger[_0x9b6c('0x16')](_0x9b6c('0x17'),_0x239006,'request\x20sent',JSON[_0x9b6c('0x18')](_0x391ed4));if(_0x391ed4[_0x9b6c('0x19')]){if(_0x391ed4[_0x9b6c('0x19')]['code']===0x1f4){logger[_0x9b6c('0x19')](_0x9b6c('0x14'),_0x239006,_0x391ed4[_0x9b6c('0x19')][_0x9b6c('0x1a')]);return _0x520965(_0x391ed4[_0x9b6c('0x19')][_0x9b6c('0x1a')]);}logger[_0x9b6c('0x19')](_0x9b6c('0x14'),_0x239006,_0x391ed4[_0x9b6c('0x19')]['message']);return _0x340108(_0x391ed4[_0x9b6c('0x19')]['message']);}else{logger[_0x9b6c('0x13')](_0x9b6c('0x14'),_0x239006,_0x9b6c('0x15'));_0x340108(_0x391ed4[_0x9b6c('0x1b')][_0x9b6c('0x1a')]);}})[_0x9b6c('0x1c')](function(_0x4114f9){logger[_0x9b6c('0x19')](_0x9b6c('0x14'),_0x239006,_0x4114f9);_0x520965(_0x4114f9);});});}
\ No newline at end of file
+var _0x2754=['rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./voicePrefix.socket','then','info','request\x20sent','debug','VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','VoicePrefix,\x20%s,\x20%s','message','catch','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x234e1a,_0x500d79){var _0x55aad2=function(_0x272396){while(--_0x272396){_0x234e1a['push'](_0x234e1a['shift']());}};_0x55aad2(++_0x500d79);}(_0x2754,0x173));var _0x4275=function(_0x15fdff,_0x40d5b2){_0x15fdff=_0x15fdff-0x0;var _0x5450ed=_0x2754[_0x15fdff];return _0x5450ed;};'use strict';var _=require('lodash');var util=require(_0x4275('0x0'));var moment=require(_0x4275('0x1'));var BPromise=require(_0x4275('0x2'));var rs=require(_0x4275('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x4275('0x4'))['db'];var utils=require(_0x4275('0x5'));var logger=require(_0x4275('0x6'))(_0x4275('0x7'));var config=require(_0x4275('0x8'));var jayson=require(_0x4275('0x9'));var client=jayson[_0x4275('0xa')][_0x4275('0xb')]({'port':0x232a});config[_0x4275('0xc')]=_[_0x4275('0xd')](config[_0x4275('0xc')],{'host':_0x4275('0xe'),'port':0x18eb});var socket=require(_0x4275('0xf'))(new Redis(config['redis']));require(_0x4275('0x10'))['register'](socket);function respondWithRpcPromise(_0x24d311,_0x562ece,_0x404eb6){return new BPromise(function(_0x1b8fc3,_0x186df0){return client['request'](_0x24d311,_0x404eb6)[_0x4275('0x11')](function(_0x63a281){logger[_0x4275('0x12')]('VoicePrefix,\x20%s,\x20%s',_0x562ece,_0x4275('0x13'));logger[_0x4275('0x14')](_0x4275('0x15'),_0x562ece,'request\x20sent',JSON[_0x4275('0x16')](_0x63a281));if(_0x63a281[_0x4275('0x17')]){if(_0x63a281['error']['code']===0x1f4){logger['error'](_0x4275('0x18'),_0x562ece,_0x63a281[_0x4275('0x17')]['message']);return _0x186df0(_0x63a281[_0x4275('0x17')][_0x4275('0x19')]);}logger[_0x4275('0x17')](_0x4275('0x18'),_0x562ece,_0x63a281[_0x4275('0x17')][_0x4275('0x19')]);return _0x1b8fc3(_0x63a281[_0x4275('0x17')]['message']);}else{logger[_0x4275('0x12')]('VoicePrefix,\x20%s,\x20%s',_0x562ece,_0x4275('0x13'));_0x1b8fc3(_0x63a281['result'][_0x4275('0x19')]);}})[_0x4275('0x1a')](function(_0x21793d){logger[_0x4275('0x17')](_0x4275('0x18'),_0x562ece,_0x21793d);_0x186df0(_0x21793d);});});}
\ No newline at end of file