Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / voiceContext / voiceContext.rpc.js
index 5b914d0..9bf36d8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x697e=['../../config/environment','jayson/promise','http','request','info','request\x20sent','debug','VoiceContext,\x20%s,\x20%s,\x20%s','stringify','error','code','VoiceContext,\x20%s,\x20%s','message','lodash','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x697e,0x111));var _0xe697=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x697e[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0xe697('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xe697('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xe697('0x2'));var db=require(_0xe697('0x3'))['db'];var utils=require(_0xe697('0x4'));var logger=require(_0xe697('0x5'))(_0xe697('0x6'));var config=require(_0xe697('0x7'));var jayson=require(_0xe697('0x8'));var client=jayson['client'][_0xe697('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x43a59e,_0x30f77f,_0x55423f){return new BPromise(function(_0x462347,_0x2e6024){return client[_0xe697('0xa')](_0x43a59e,_0x55423f)['then'](function(_0x12c89c){logger[_0xe697('0xb')]('VoiceContext,\x20%s,\x20%s',_0x30f77f,_0xe697('0xc'));logger[_0xe697('0xd')](_0xe697('0xe'),_0x30f77f,_0xe697('0xc'),JSON[_0xe697('0xf')](_0x12c89c));if(_0x12c89c[_0xe697('0x10')]){if(_0x12c89c[_0xe697('0x10')][_0xe697('0x11')]===0x1f4){logger['error'](_0xe697('0x12'),_0x30f77f,_0x12c89c['error'][_0xe697('0x13')]);return _0x2e6024(_0x12c89c['error'][_0xe697('0x13')]);}logger[_0xe697('0x10')](_0xe697('0x12'),_0x30f77f,_0x12c89c[_0xe697('0x10')][_0xe697('0x13')]);return _0x462347(_0x12c89c['error'][_0xe697('0x13')]);}else{logger[_0xe697('0xb')](_0xe697('0x12'),_0x30f77f,_0xe697('0xc'));_0x462347(_0x12c89c['result'][_0xe697('0x13')]);}})['catch'](function(_0x23329a){logger[_0xe697('0x10')]('VoiceContext,\x20%s,\x20%s',_0x30f77f,_0x23329a);_0x2e6024(_0x23329a);});});}
\ No newline at end of file
+var _0xa3b9=['then','info','VoiceContext,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa3b9,0x112));var _0x9a3b=function(_0x36b038,_0xece3da){_0x36b038=_0x36b038-0x0;var _0x201a01=_0xa3b9[_0x36b038];return _0x201a01;};'use strict';var _=require(_0x9a3b('0x0'));var util=require(_0x9a3b('0x1'));var moment=require(_0x9a3b('0x2'));var BPromise=require(_0x9a3b('0x3'));var rs=require(_0x9a3b('0x4'));var fs=require('fs');var Redis=require(_0x9a3b('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x9a3b('0x6'));var logger=require(_0x9a3b('0x7'))(_0x9a3b('0x8'));var config=require(_0x9a3b('0x9'));var jayson=require(_0x9a3b('0xa'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x3a6a0d,_0x2357b8,_0x242fbe){return new BPromise(function(_0x2da1e2,_0x204d1f){return client[_0x9a3b('0xb')](_0x3a6a0d,_0x242fbe)[_0x9a3b('0xc')](function(_0x593fef){logger[_0x9a3b('0xd')](_0x9a3b('0xe'),_0x2357b8,_0x9a3b('0xf'));logger[_0x9a3b('0x10')]('VoiceContext,\x20%s,\x20%s,\x20%s',_0x2357b8,_0x9a3b('0xf'),JSON[_0x9a3b('0x11')](_0x593fef));if(_0x593fef[_0x9a3b('0x12')]){if(_0x593fef['error']['code']===0x1f4){logger[_0x9a3b('0x12')]('VoiceContext,\x20%s,\x20%s',_0x2357b8,_0x593fef['error'][_0x9a3b('0x13')]);return _0x204d1f(_0x593fef[_0x9a3b('0x12')]['message']);}logger[_0x9a3b('0x12')]('VoiceContext,\x20%s,\x20%s',_0x2357b8,_0x593fef[_0x9a3b('0x12')][_0x9a3b('0x13')]);return _0x2da1e2(_0x593fef[_0x9a3b('0x12')]['message']);}else{logger['info'](_0x9a3b('0xe'),_0x2357b8,'request\x20sent');_0x2da1e2(_0x593fef[_0x9a3b('0x14')][_0x9a3b('0x13')]);}})[_0x9a3b('0x15')](function(_0x43126b){logger[_0x9a3b('0x12')]('VoiceContext,\x20%s,\x20%s',_0x2357b8,_0x43126b);_0x204d1f(_0x43126b);});});}
\ No newline at end of file