Built motion from commit fda31434.|2.5.44
[motion2.git] / server / api / voicePrefix / voicePrefix.rpc.js
index 6fea0c1..c349ec9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbd36=['../../config/environment','jayson/promise','http','redis','defaults','localhost','socket.io-emitter','request','then','info','VoicePrefix,\x20%s,\x20%s','debug','VoicePrefix,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','ioredis','../../mysqldb','../../config/logger','rpc'];(function(_0x1e4cdc,_0x3fddbb){var _0x7e7c8d=function(_0x51ecfe){while(--_0x51ecfe){_0x1e4cdc['push'](_0x1e4cdc['shift']());}};_0x7e7c8d(++_0x3fddbb);}(_0xbd36,0x65));var _0x6bd3=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0xbd36[_0x3d42d8];return _0x27fc41;};'use strict';var _=require(_0x6bd3('0x0'));var util=require(_0x6bd3('0x1'));var moment=require(_0x6bd3('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x6bd3('0x3'));var db=require(_0x6bd3('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x6bd3('0x5'))(_0x6bd3('0x6'));var config=require(_0x6bd3('0x7'));var jayson=require(_0x6bd3('0x8'));var client=jayson['client'][_0x6bd3('0x9')]({'port':0x232a});config[_0x6bd3('0xa')]=_[_0x6bd3('0xb')](config[_0x6bd3('0xa')],{'host':_0x6bd3('0xc'),'port':0x18eb});var socket=require(_0x6bd3('0xd'))(new Redis(config[_0x6bd3('0xa')]));require('./voicePrefix.socket')['register'](socket);function respondWithRpcPromise(_0x310f54,_0x50f7f4,_0x2ce148){return new BPromise(function(_0x18004a,_0x25056a){return client[_0x6bd3('0xe')](_0x310f54,_0x2ce148)[_0x6bd3('0xf')](function(_0x56e88f){logger[_0x6bd3('0x10')](_0x6bd3('0x11'),_0x50f7f4,'request\x20sent');logger[_0x6bd3('0x12')](_0x6bd3('0x13'),_0x50f7f4,_0x6bd3('0x14'),JSON[_0x6bd3('0x15')](_0x56e88f));if(_0x56e88f[_0x6bd3('0x16')]){if(_0x56e88f[_0x6bd3('0x16')][_0x6bd3('0x17')]===0x1f4){logger[_0x6bd3('0x16')]('VoicePrefix,\x20%s,\x20%s',_0x50f7f4,_0x56e88f[_0x6bd3('0x16')][_0x6bd3('0x18')]);return _0x25056a(_0x56e88f['error']['message']);}logger['error'](_0x6bd3('0x11'),_0x50f7f4,_0x56e88f['error'][_0x6bd3('0x18')]);return _0x18004a(_0x56e88f[_0x6bd3('0x16')][_0x6bd3('0x18')]);}else{logger[_0x6bd3('0x10')]('VoicePrefix,\x20%s,\x20%s',_0x50f7f4,'request\x20sent');_0x18004a(_0x56e88f[_0x6bd3('0x19')][_0x6bd3('0x18')]);}})[_0x6bd3('0x1a')](function(_0x45ae0e){logger[_0x6bd3('0x16')](_0x6bd3('0x11'),_0x50f7f4,_0x45ae0e);_0x25056a(_0x45ae0e);});});}
\ No newline at end of file
+var _0xcaef=['VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','util','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','jayson/promise','client','redis','localhost','socket.io-emitter','register','request','then','info','VoicePrefix,\x20%s,\x20%s','request\x20sent'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xcaef,0x1c9));var _0xfcae=function(_0x1928c9,_0x13a6d1){_0x1928c9=_0x1928c9-0x0;var _0x51b5fb=_0xcaef[_0x1928c9];return _0x51b5fb;};'use strict';var _=require('lodash');var util=require(_0xfcae('0x0'));var moment=require(_0xfcae('0x1'));var BPromise=require(_0xfcae('0x2'));var rs=require(_0xfcae('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xfcae('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xfcae('0x5'))(_0xfcae('0x6'));var config=require('../../config/environment');var jayson=require(_0xfcae('0x7'));var client=jayson[_0xfcae('0x8')]['http']({'port':0x232a});config[_0xfcae('0x9')]=_['defaults'](config['redis'],{'host':_0xfcae('0xa'),'port':0x18eb});var socket=require(_0xfcae('0xb'))(new Redis(config[_0xfcae('0x9')]));require('./voicePrefix.socket')[_0xfcae('0xc')](socket);function respondWithRpcPromise(_0x551d80,_0x5bbe56,_0x4065c9){return new BPromise(function(_0x360d42,_0x434288){return client[_0xfcae('0xd')](_0x551d80,_0x4065c9)[_0xfcae('0xe')](function(_0x25f440){logger[_0xfcae('0xf')](_0xfcae('0x10'),_0x5bbe56,_0xfcae('0x11'));logger['debug'](_0xfcae('0x12'),_0x5bbe56,_0xfcae('0x11'),JSON[_0xfcae('0x13')](_0x25f440));if(_0x25f440[_0xfcae('0x14')]){if(_0x25f440[_0xfcae('0x14')][_0xfcae('0x15')]===0x1f4){logger[_0xfcae('0x14')](_0xfcae('0x10'),_0x5bbe56,_0x25f440['error'][_0xfcae('0x16')]);return _0x434288(_0x25f440['error'][_0xfcae('0x16')]);}logger[_0xfcae('0x14')](_0xfcae('0x10'),_0x5bbe56,_0x25f440[_0xfcae('0x14')][_0xfcae('0x16')]);return _0x360d42(_0x25f440[_0xfcae('0x14')][_0xfcae('0x16')]);}else{logger[_0xfcae('0xf')](_0xfcae('0x10'),_0x5bbe56,'request\x20sent');_0x360d42(_0x25f440[_0xfcae('0x17')]['message']);}})[_0xfcae('0x18')](function(_0xb79156){logger[_0xfcae('0x14')](_0xfcae('0x10'),_0x5bbe56,_0xb79156);_0x434288(_0xb79156);});});}
\ No newline at end of file