Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voicePrefix / voicePrefix.rpc.js
index b55fb7e..92160d5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xac35=['request','then','info','VoicePrefix,\x20%s,\x20%s','request\x20sent','VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','defaults','localhost','socket.io-emitter','redis','./voicePrefix.socket','register'];(function(_0x25ab80,_0x1fc7d4){var _0x4af8ae=function(_0x317f8c){while(--_0x317f8c){_0x25ab80['push'](_0x25ab80['shift']());}};_0x4af8ae(++_0x1fc7d4);}(_0xac35,0x141));var _0x5ac3=function(_0x3d5416,_0x28a599){_0x3d5416=_0x3d5416-0x0;var _0x17712c=_0xac35[_0x3d5416];return _0x17712c;};'use strict';var _=require(_0x5ac3('0x0'));var util=require(_0x5ac3('0x1'));var moment=require(_0x5ac3('0x2'));var BPromise=require(_0x5ac3('0x3'));var rs=require(_0x5ac3('0x4'));var fs=require('fs');var Redis=require(_0x5ac3('0x5'));var db=require(_0x5ac3('0x6'))['db'];var utils=require(_0x5ac3('0x7'));var logger=require(_0x5ac3('0x8'))(_0x5ac3('0x9'));var config=require(_0x5ac3('0xa'));var jayson=require(_0x5ac3('0xb'));var client=jayson[_0x5ac3('0xc')][_0x5ac3('0xd')]({'port':0x232a});config['redis']=_[_0x5ac3('0xe')](config['redis'],{'host':_0x5ac3('0xf'),'port':0x18eb});var socket=require(_0x5ac3('0x10'))(new Redis(config[_0x5ac3('0x11')]));require(_0x5ac3('0x12'))[_0x5ac3('0x13')](socket);function respondWithRpcPromise(_0x26e7fe,_0x4df25f,_0x139f05){return new BPromise(function(_0x5e3a51,_0x1d9420){return client[_0x5ac3('0x14')](_0x26e7fe,_0x139f05)[_0x5ac3('0x15')](function(_0x17c212){logger[_0x5ac3('0x16')](_0x5ac3('0x17'),_0x4df25f,_0x5ac3('0x18'));logger['debug'](_0x5ac3('0x19'),_0x4df25f,_0x5ac3('0x18'),JSON[_0x5ac3('0x1a')](_0x17c212));if(_0x17c212[_0x5ac3('0x1b')]){if(_0x17c212[_0x5ac3('0x1b')][_0x5ac3('0x1c')]===0x1f4){logger[_0x5ac3('0x1b')](_0x5ac3('0x17'),_0x4df25f,_0x17c212['error']['message']);return _0x1d9420(_0x17c212[_0x5ac3('0x1b')][_0x5ac3('0x1d')]);}logger['error'](_0x5ac3('0x17'),_0x4df25f,_0x17c212['error'][_0x5ac3('0x1d')]);return _0x5e3a51(_0x17c212[_0x5ac3('0x1b')][_0x5ac3('0x1d')]);}else{logger['info'](_0x5ac3('0x17'),_0x4df25f,_0x5ac3('0x18'));_0x5e3a51(_0x17c212[_0x5ac3('0x1e')][_0x5ac3('0x1d')]);}})['catch'](function(_0x22907d){logger[_0x5ac3('0x1b')](_0x5ac3('0x17'),_0x4df25f,_0x22907d);_0x1d9420(_0x22907d);});});}
\ No newline at end of file
+var _0xdcd5=['rpc','../../config/environment','jayson/promise','client','http','redis','defaults','socket.io-emitter','./voicePrefix.socket','request','then','VoicePrefix,\x20%s,\x20%s','request\x20sent','VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xdcd5,0x110));var _0x5dcd=function(_0x1d0499,_0x23e22f){_0x1d0499=_0x1d0499-0x0;var _0x153fb3=_0xdcd5[_0x1d0499];return _0x153fb3;};'use strict';var _=require(_0x5dcd('0x0'));var util=require(_0x5dcd('0x1'));var moment=require(_0x5dcd('0x2'));var BPromise=require(_0x5dcd('0x3'));var rs=require(_0x5dcd('0x4'));var fs=require('fs');var Redis=require(_0x5dcd('0x5'));var db=require(_0x5dcd('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x5dcd('0x7'))(_0x5dcd('0x8'));var config=require(_0x5dcd('0x9'));var jayson=require(_0x5dcd('0xa'));var client=jayson[_0x5dcd('0xb')][_0x5dcd('0xc')]({'port':0x232a});config[_0x5dcd('0xd')]=_[_0x5dcd('0xe')](config['redis'],{'host':'localhost','port':0x18eb});var socket=require(_0x5dcd('0xf'))(new Redis(config[_0x5dcd('0xd')]));require(_0x5dcd('0x10'))['register'](socket);function respondWithRpcPromise(_0x1e1161,_0x29c3e1,_0xf0e115){return new BPromise(function(_0x1d46bc,_0x22680f){return client[_0x5dcd('0x11')](_0x1e1161,_0xf0e115)[_0x5dcd('0x12')](function(_0x57c64d){logger['info'](_0x5dcd('0x13'),_0x29c3e1,_0x5dcd('0x14'));logger['debug'](_0x5dcd('0x15'),_0x29c3e1,_0x5dcd('0x14'),JSON[_0x5dcd('0x16')](_0x57c64d));if(_0x57c64d[_0x5dcd('0x17')]){if(_0x57c64d[_0x5dcd('0x17')][_0x5dcd('0x18')]===0x1f4){logger[_0x5dcd('0x17')](_0x5dcd('0x13'),_0x29c3e1,_0x57c64d['error'][_0x5dcd('0x19')]);return _0x22680f(_0x57c64d[_0x5dcd('0x17')]['message']);}logger[_0x5dcd('0x17')]('VoicePrefix,\x20%s,\x20%s',_0x29c3e1,_0x57c64d[_0x5dcd('0x17')][_0x5dcd('0x19')]);return _0x1d46bc(_0x57c64d[_0x5dcd('0x17')]['message']);}else{logger[_0x5dcd('0x1a')](_0x5dcd('0x13'),_0x29c3e1,_0x5dcd('0x14'));_0x1d46bc(_0x57c64d['result'][_0x5dcd('0x19')]);}})[_0x5dcd('0x1b')](function(_0x564b){logger['error'](_0x5dcd('0x13'),_0x29c3e1,_0x564b);_0x22680f(_0x564b);});});}
\ No newline at end of file