Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / chatProactiveAction / chatProactiveAction.rpc.js
index 9f08b45..0ede0fd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x62e3=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','client','http','then','ChatProactiveAction,\x20%s,\x20%s','request\x20sent','debug','ChatProactiveAction,\x20%s,\x20%s,\x20%s','stringify','code','error','message','info','catch','util','moment'];(function(_0x2f4748,_0x24af55){var _0x18eece=function(_0x489dd6){while(--_0x489dd6){_0x2f4748['push'](_0x2f4748['shift']());}};_0x18eece(++_0x24af55);}(_0x62e3,0x174));var _0x362e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x62e3[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x362e('0x0'));var moment=require(_0x362e('0x1'));var BPromise=require(_0x362e('0x2'));var rs=require(_0x362e('0x3'));var fs=require('fs');var Redis=require(_0x362e('0x4'));var db=require(_0x362e('0x5'))['db'];var utils=require(_0x362e('0x6'));var logger=require('../../config/logger')(_0x362e('0x7'));var config=require(_0x362e('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x362e('0x9')][_0x362e('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x16c984,_0x28d705,_0x3e5843){return new BPromise(function(_0x47745f,_0x3be5e0){return client['request'](_0x16c984,_0x3e5843)[_0x362e('0xb')](function(_0x3b5485){logger['info'](_0x362e('0xc'),_0x28d705,_0x362e('0xd'));logger[_0x362e('0xe')](_0x362e('0xf'),_0x28d705,_0x362e('0xd'),JSON[_0x362e('0x10')](_0x3b5485));if(_0x3b5485['error']){if(_0x3b5485['error'][_0x362e('0x11')]===0x1f4){logger[_0x362e('0x12')](_0x362e('0xc'),_0x28d705,_0x3b5485[_0x362e('0x12')]['message']);return _0x3be5e0(_0x3b5485[_0x362e('0x12')]['message']);}logger[_0x362e('0x12')]('ChatProactiveAction,\x20%s,\x20%s',_0x28d705,_0x3b5485[_0x362e('0x12')][_0x362e('0x13')]);return _0x47745f(_0x3b5485[_0x362e('0x12')][_0x362e('0x13')]);}else{logger[_0x362e('0x14')](_0x362e('0xc'),_0x28d705,_0x362e('0xd'));_0x47745f(_0x3b5485['result'][_0x362e('0x13')]);}})[_0x362e('0x15')](function(_0x47a7f8){logger[_0x362e('0x12')]('ChatProactiveAction,\x20%s,\x20%s',_0x28d705,_0x47a7f8);_0x3be5e0(_0x47a7f8);});});}
\ No newline at end of file
+var _0x4695=['lodash','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','http','then','info','ChatProactiveAction,\x20%s,\x20%s','request\x20sent','ChatProactiveAction,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch'];(function(_0x489880,_0xd46e71){var _0x4465dd=function(_0xbf8380){while(--_0xbf8380){_0x489880['push'](_0x489880['shift']());}};_0x4465dd(++_0xd46e71);}(_0x4695,0x72));var _0x5469=function(_0x156907,_0x398b15){_0x156907=_0x156907-0x0;var _0x31bc30=_0x4695[_0x156907];return _0x31bc30;};'use strict';var _=require(_0x5469('0x0'));var util=require('util');var moment=require(_0x5469('0x1'));var BPromise=require(_0x5469('0x2'));var rs=require(_0x5469('0x3'));var fs=require('fs');var Redis=require(_0x5469('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x5469('0x5'))(_0x5469('0x6'));var config=require(_0x5469('0x7'));var jayson=require('jayson/promise');var client=jayson['client'][_0x5469('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x2f00cd,_0xaa3289,_0x228dc4){return new BPromise(function(_0x108b50,_0x528611){return client['request'](_0x2f00cd,_0x228dc4)[_0x5469('0x9')](function(_0x529b36){logger[_0x5469('0xa')](_0x5469('0xb'),_0xaa3289,_0x5469('0xc'));logger['debug'](_0x5469('0xd'),_0xaa3289,_0x5469('0xc'),JSON[_0x5469('0xe')](_0x529b36));if(_0x529b36[_0x5469('0xf')]){if(_0x529b36['error']['code']===0x1f4){logger[_0x5469('0xf')](_0x5469('0xb'),_0xaa3289,_0x529b36[_0x5469('0xf')][_0x5469('0x10')]);return _0x528611(_0x529b36[_0x5469('0xf')][_0x5469('0x10')]);}logger['error'](_0x5469('0xb'),_0xaa3289,_0x529b36[_0x5469('0xf')][_0x5469('0x10')]);return _0x108b50(_0x529b36[_0x5469('0xf')]['message']);}else{logger[_0x5469('0xa')](_0x5469('0xb'),_0xaa3289,_0x5469('0xc'));_0x108b50(_0x529b36[_0x5469('0x11')][_0x5469('0x10')]);}})[_0x5469('0x12')](function(_0x6ffff7){logger[_0x5469('0xf')]('ChatProactiveAction,\x20%s,\x20%s',_0xaa3289,_0x6ffff7);_0x528611(_0x6ffff7);});});}
\ No newline at end of file