Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / voicePrefix / voicePrefix.rpc.js
index 59244b6..c21a155 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6faf=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','redis','defaults','socket.io-emitter','./voicePrefix.socket','then','info','VoicePrefix,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','VoicePrefix,\x20%s,\x20%s','message','result','catch','util'];(function(_0x160c73,_0x2ee678){var _0xd9302=function(_0x169454){while(--_0x169454){_0x160c73['push'](_0x160c73['shift']());}};_0xd9302(++_0x2ee678);}(_0x6faf,0xf9));var _0xf6fa=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x6faf[_0x14add3];return _0x4a174f;};'use strict';var _=require('lodash');var util=require(_0xf6fa('0x0'));var moment=require(_0xf6fa('0x1'));var BPromise=require(_0xf6fa('0x2'));var rs=require(_0xf6fa('0x3'));var fs=require('fs');var Redis=require(_0xf6fa('0x4'));var db=require(_0xf6fa('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xf6fa('0x6'))('rpc');var config=require(_0xf6fa('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xf6fa('0x8')][_0xf6fa('0x9')]({'port':0x232a});config[_0xf6fa('0xa')]=_[_0xf6fa('0xb')](config[_0xf6fa('0xa')],{'host':'localhost','port':0x18eb});var socket=require(_0xf6fa('0xc'))(new Redis(config[_0xf6fa('0xa')]));require(_0xf6fa('0xd'))['register'](socket);function respondWithRpcPromise(_0x4a1d49,_0x3148bd,_0x535fbc){return new BPromise(function(_0x196e0d,_0x336a07){return client['request'](_0x4a1d49,_0x535fbc)[_0xf6fa('0xe')](function(_0x4a1e5e){logger[_0xf6fa('0xf')]('VoicePrefix,\x20%s,\x20%s',_0x3148bd,'request\x20sent');logger['debug'](_0xf6fa('0x10'),_0x3148bd,_0xf6fa('0x11'),JSON[_0xf6fa('0x12')](_0x4a1e5e));if(_0x4a1e5e[_0xf6fa('0x13')]){if(_0x4a1e5e[_0xf6fa('0x13')][_0xf6fa('0x14')]===0x1f4){logger[_0xf6fa('0x13')](_0xf6fa('0x15'),_0x3148bd,_0x4a1e5e[_0xf6fa('0x13')][_0xf6fa('0x16')]);return _0x336a07(_0x4a1e5e[_0xf6fa('0x13')]['message']);}logger[_0xf6fa('0x13')](_0xf6fa('0x15'),_0x3148bd,_0x4a1e5e['error'][_0xf6fa('0x16')]);return _0x196e0d(_0x4a1e5e[_0xf6fa('0x13')][_0xf6fa('0x16')]);}else{logger['info'](_0xf6fa('0x15'),_0x3148bd,_0xf6fa('0x11'));_0x196e0d(_0x4a1e5e[_0xf6fa('0x17')][_0xf6fa('0x16')]);}})[_0xf6fa('0x18')](function(_0x553daa){logger[_0xf6fa('0x13')]('VoicePrefix,\x20%s,\x20%s',_0x3148bd,_0x553daa);_0x336a07(_0x553daa);});});}
\ No newline at end of file
+var _0x781d=['../../config/logger','rpc','../../config/environment','jayson/promise','client','http','defaults','redis','localhost','socket.io-emitter','./voicePrefix.socket','info','VoicePrefix,\x20%s,\x20%s','request\x20sent','debug','VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x781d,0x14a));var _0xd781=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x781d[_0x2dafbe];return _0x58a45a;};'use strict';var _=require(_0xd781('0x0'));var util=require(_0xd781('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xd781('0x2'));var fs=require('fs');var Redis=require(_0xd781('0x3'));var db=require(_0xd781('0x4'))['db'];var utils=require(_0xd781('0x5'));var logger=require(_0xd781('0x6'))(_0xd781('0x7'));var config=require(_0xd781('0x8'));var jayson=require(_0xd781('0x9'));var client=jayson[_0xd781('0xa')][_0xd781('0xb')]({'port':0x232a});config['redis']=_[_0xd781('0xc')](config[_0xd781('0xd')],{'host':_0xd781('0xe'),'port':0x18eb});var socket=require(_0xd781('0xf'))(new Redis(config['redis']));require(_0xd781('0x10'))['register'](socket);function respondWithRpcPromise(_0x43d863,_0x16360f,_0x509ca7){return new BPromise(function(_0x346756,_0x29c2a7){return client['request'](_0x43d863,_0x509ca7)['then'](function(_0x40a900){logger[_0xd781('0x11')](_0xd781('0x12'),_0x16360f,_0xd781('0x13'));logger[_0xd781('0x14')](_0xd781('0x15'),_0x16360f,_0xd781('0x13'),JSON[_0xd781('0x16')](_0x40a900));if(_0x40a900[_0xd781('0x17')]){if(_0x40a900[_0xd781('0x17')][_0xd781('0x18')]===0x1f4){logger['error'](_0xd781('0x12'),_0x16360f,_0x40a900[_0xd781('0x17')]['message']);return _0x29c2a7(_0x40a900[_0xd781('0x17')]['message']);}logger[_0xd781('0x17')](_0xd781('0x12'),_0x16360f,_0x40a900[_0xd781('0x17')][_0xd781('0x19')]);return _0x346756(_0x40a900[_0xd781('0x17')][_0xd781('0x19')]);}else{logger[_0xd781('0x11')]('VoicePrefix,\x20%s,\x20%s',_0x16360f,_0xd781('0x13'));_0x346756(_0x40a900[_0xd781('0x1a')][_0xd781('0x19')]);}})[_0xd781('0x1b')](function(_0x3bf805){logger[_0xd781('0x17')](_0xd781('0x12'),_0x16360f,_0x3bf805);_0x29c2a7(_0x3bf805);});});}
\ No newline at end of file