Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / chatProactiveAction / chatProactiveAction.rpc.js
index 198eaaa..32d9b46 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc8a6=['request','then','info','request\x20sent','debug','stringify','error','code','message','ChatProactiveAction,\x20%s,\x20%s','result','catch','util','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xc8a6,0x19b));var _0x6c8a=function(_0x340b70,_0xdcf02){_0x340b70=_0x340b70-0x0;var _0x17879b=_0xc8a6[_0x340b70];return _0x17879b;};'use strict';var _=require('lodash');var util=require(_0x6c8a('0x0'));var moment=require(_0x6c8a('0x1'));var BPromise=require(_0x6c8a('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x6c8a('0x3'))['db'];var utils=require(_0x6c8a('0x4'));var logger=require(_0x6c8a('0x5'))('rpc');var config=require('../../config/environment');var jayson=require(_0x6c8a('0x6'));var client=jayson[_0x6c8a('0x7')][_0x6c8a('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x5cd896,_0x4ded83,_0x8f2cfa){return new BPromise(function(_0xf6f45f,_0x36f78d){return client[_0x6c8a('0x9')](_0x5cd896,_0x8f2cfa)[_0x6c8a('0xa')](function(_0x48d3ca){logger[_0x6c8a('0xb')]('ChatProactiveAction,\x20%s,\x20%s',_0x4ded83,_0x6c8a('0xc'));logger[_0x6c8a('0xd')]('ChatProactiveAction,\x20%s,\x20%s,\x20%s',_0x4ded83,_0x6c8a('0xc'),JSON[_0x6c8a('0xe')](_0x48d3ca));if(_0x48d3ca[_0x6c8a('0xf')]){if(_0x48d3ca[_0x6c8a('0xf')][_0x6c8a('0x10')]===0x1f4){logger[_0x6c8a('0xf')]('ChatProactiveAction,\x20%s,\x20%s',_0x4ded83,_0x48d3ca[_0x6c8a('0xf')]['message']);return _0x36f78d(_0x48d3ca[_0x6c8a('0xf')][_0x6c8a('0x11')]);}logger[_0x6c8a('0xf')](_0x6c8a('0x12'),_0x4ded83,_0x48d3ca['error'][_0x6c8a('0x11')]);return _0xf6f45f(_0x48d3ca[_0x6c8a('0xf')][_0x6c8a('0x11')]);}else{logger[_0x6c8a('0xb')](_0x6c8a('0x12'),_0x4ded83,_0x6c8a('0xc'));_0xf6f45f(_0x48d3ca[_0x6c8a('0x13')]['message']);}})[_0x6c8a('0x14')](function(_0x7f6d46){logger[_0x6c8a('0xf')](_0x6c8a('0x12'),_0x4ded83,_0x7f6d46);_0x36f78d(_0x7f6d46);});});}
\ No newline at end of file
+var _0xff67=['ChatProactiveAction,\x20%s,\x20%s,\x20%s','error','code','message','info','request\x20sent','result','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','ChatProactiveAction,\x20%s,\x20%s','debug'];(function(_0x429370,_0x46ff4c){var _0x41a3ad=function(_0x47d51e){while(--_0x47d51e){_0x429370['push'](_0x429370['shift']());}};_0x41a3ad(++_0x46ff4c);}(_0xff67,0x1b8));var _0x7ff6=function(_0x366b7f,_0x2f72eb){_0x366b7f=_0x366b7f-0x0;var _0x542ecb=_0xff67[_0x366b7f];return _0x542ecb;};'use strict';var _=require(_0x7ff6('0x0'));var util=require(_0x7ff6('0x1'));var moment=require(_0x7ff6('0x2'));var BPromise=require(_0x7ff6('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x7ff6('0x4'))['db'];var utils=require(_0x7ff6('0x5'));var logger=require(_0x7ff6('0x6'))(_0x7ff6('0x7'));var config=require(_0x7ff6('0x8'));var jayson=require(_0x7ff6('0x9'));var client=jayson[_0x7ff6('0xa')][_0x7ff6('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x59657f,_0x10e3ba,_0x2a8d18){return new BPromise(function(_0x5c38a8,_0x5b00c3){return client[_0x7ff6('0xc')](_0x59657f,_0x2a8d18)[_0x7ff6('0xd')](function(_0xe44cb8){logger['info'](_0x7ff6('0xe'),_0x10e3ba,'request\x20sent');logger[_0x7ff6('0xf')](_0x7ff6('0x10'),_0x10e3ba,'request\x20sent',JSON['stringify'](_0xe44cb8));if(_0xe44cb8[_0x7ff6('0x11')]){if(_0xe44cb8[_0x7ff6('0x11')][_0x7ff6('0x12')]===0x1f4){logger[_0x7ff6('0x11')]('ChatProactiveAction,\x20%s,\x20%s',_0x10e3ba,_0xe44cb8[_0x7ff6('0x11')][_0x7ff6('0x13')]);return _0x5b00c3(_0xe44cb8['error'][_0x7ff6('0x13')]);}logger[_0x7ff6('0x11')]('ChatProactiveAction,\x20%s,\x20%s',_0x10e3ba,_0xe44cb8[_0x7ff6('0x11')]['message']);return _0x5c38a8(_0xe44cb8[_0x7ff6('0x11')][_0x7ff6('0x13')]);}else{logger[_0x7ff6('0x14')]('ChatProactiveAction,\x20%s,\x20%s',_0x10e3ba,_0x7ff6('0x15'));_0x5c38a8(_0xe44cb8[_0x7ff6('0x16')][_0x7ff6('0x13')]);}})[_0x7ff6('0x17')](function(_0x2afb09){logger[_0x7ff6('0x11')](_0x7ff6('0xe'),_0x10e3ba,_0x2afb09);_0x5b00c3(_0x2afb09);});});}
\ No newline at end of file