Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / voicePrefix / voicePrefix.rpc.js
index 4f829fb..07e51aa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1136=['VoicePrefix,\x20%s,\x20%s','debug','VoicePrefix,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','result','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','client','redis','defaults','localhost','socket.io-emitter','./voicePrefix.socket','request','then','info'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1136,0x76));var _0x6113=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x1136[_0x2dafbe];return _0x58a45a;};'use strict';var _=require(_0x6113('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x6113('0x1'));var rs=require(_0x6113('0x2'));var fs=require('fs');var Redis=require(_0x6113('0x3'));var db=require(_0x6113('0x4'))['db'];var utils=require(_0x6113('0x5'));var logger=require('../../config/logger')(_0x6113('0x6'));var config=require(_0x6113('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x6113('0x8')]['http']({'port':0x232a});config[_0x6113('0x9')]=_[_0x6113('0xa')](config['redis'],{'host':_0x6113('0xb'),'port':0x18eb});var socket=require(_0x6113('0xc'))(new Redis(config['redis']));require(_0x6113('0xd'))['register'](socket);function respondWithRpcPromise(_0x1cd238,_0x5e264a,_0x1ed2bd){return new BPromise(function(_0x4a4e6e,_0x4fca1f){return client[_0x6113('0xe')](_0x1cd238,_0x1ed2bd)[_0x6113('0xf')](function(_0x52c56d){logger[_0x6113('0x10')](_0x6113('0x11'),_0x5e264a,'request\x20sent');logger[_0x6113('0x12')](_0x6113('0x13'),_0x5e264a,'request\x20sent',JSON[_0x6113('0x14')](_0x52c56d));if(_0x52c56d['error']){if(_0x52c56d[_0x6113('0x15')][_0x6113('0x16')]===0x1f4){logger[_0x6113('0x15')](_0x6113('0x11'),_0x5e264a,_0x52c56d[_0x6113('0x15')][_0x6113('0x17')]);return _0x4fca1f(_0x52c56d[_0x6113('0x15')]['message']);}logger[_0x6113('0x15')](_0x6113('0x11'),_0x5e264a,_0x52c56d[_0x6113('0x15')][_0x6113('0x17')]);return _0x4a4e6e(_0x52c56d[_0x6113('0x15')][_0x6113('0x17')]);}else{logger[_0x6113('0x10')](_0x6113('0x11'),_0x5e264a,_0x6113('0x18'));_0x4a4e6e(_0x52c56d[_0x6113('0x19')][_0x6113('0x17')]);}})[_0x6113('0x1a')](function(_0x112c7d){logger['error'](_0x6113('0x11'),_0x5e264a,_0x112c7d);_0x4fca1f(_0x112c7d);});});}
\ No newline at end of file
+var _0xf615=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','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','lodash','util','randomstring','ioredis'];(function(_0x241fd6,_0x2c0e94){var _0x58c474=function(_0x4bf6e0){while(--_0x4bf6e0){_0x241fd6['push'](_0x241fd6['shift']());}};_0x58c474(++_0x2c0e94);}(_0xf615,0x8d));var _0x5f61=function(_0x2440fe,_0x281a11){_0x2440fe=_0x2440fe-0x0;var _0x5cf734=_0xf615[_0x2440fe];return _0x5cf734;};'use strict';var _=require(_0x5f61('0x0'));var util=require(_0x5f61('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x5f61('0x2'));var fs=require('fs');var Redis=require(_0x5f61('0x3'));var db=require(_0x5f61('0x4'))['db'];var utils=require(_0x5f61('0x5'));var logger=require(_0x5f61('0x6'))(_0x5f61('0x7'));var config=require(_0x5f61('0x8'));var jayson=require(_0x5f61('0x9'));var client=jayson[_0x5f61('0xa')][_0x5f61('0xb')]({'port':0x232a});config[_0x5f61('0xc')]=_[_0x5f61('0xd')](config[_0x5f61('0xc')],{'host':_0x5f61('0xe'),'port':0x18eb});var socket=require(_0x5f61('0xf'))(new Redis(config[_0x5f61('0xc')]));require(_0x5f61('0x10'))[_0x5f61('0x11')](socket);function respondWithRpcPromise(_0x368688,_0x30751d,_0x6d9ee2){return new BPromise(function(_0x32630f,_0x8349e8){return client[_0x5f61('0x12')](_0x368688,_0x6d9ee2)[_0x5f61('0x13')](function(_0x3bb7e2){logger[_0x5f61('0x14')](_0x5f61('0x15'),_0x30751d,_0x5f61('0x16'));logger[_0x5f61('0x17')](_0x5f61('0x18'),_0x30751d,'request\x20sent',JSON[_0x5f61('0x19')](_0x3bb7e2));if(_0x3bb7e2[_0x5f61('0x1a')]){if(_0x3bb7e2[_0x5f61('0x1a')]['code']===0x1f4){logger[_0x5f61('0x1a')]('VoicePrefix,\x20%s,\x20%s',_0x30751d,_0x3bb7e2[_0x5f61('0x1a')]['message']);return _0x8349e8(_0x3bb7e2['error']['message']);}logger[_0x5f61('0x1a')](_0x5f61('0x15'),_0x30751d,_0x3bb7e2[_0x5f61('0x1a')]['message']);return _0x32630f(_0x3bb7e2[_0x5f61('0x1a')][_0x5f61('0x1b')]);}else{logger[_0x5f61('0x14')]('VoicePrefix,\x20%s,\x20%s',_0x30751d,_0x5f61('0x16'));_0x32630f(_0x3bb7e2[_0x5f61('0x1c')][_0x5f61('0x1b')]);}})['catch'](function(_0x783db6){logger[_0x5f61('0x1a')](_0x5f61('0x15'),_0x30751d,_0x783db6);_0x8349e8(_0x783db6);});});}
\ No newline at end of file