Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / chatProactiveAction / chatProactiveAction.rpc.js
index 494f97f..ad415de 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf7d4=['moment','../../config/utils','../../config/logger','rpc','jayson/promise','request','info','ChatProactiveAction,\x20%s,\x20%s','request\x20sent','ChatProactiveAction,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash'];(function(_0x2e1571,_0x5ae81d){var _0xb846bf=function(_0x1d5c7e){while(--_0x1d5c7e){_0x2e1571['push'](_0x2e1571['shift']());}};_0xb846bf(++_0x5ae81d);}(_0xf7d4,0xba));var _0x4f7d=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0xf7d4[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0x4f7d('0x0'));var util=require('util');var moment=require(_0x4f7d('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x4f7d('0x2'));var logger=require(_0x4f7d('0x3'))(_0x4f7d('0x4'));var config=require('../../config/environment');var jayson=require(_0x4f7d('0x5'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x18424d,_0x57e97c,_0x386fb9){return new BPromise(function(_0x408802,_0x54c648){return client[_0x4f7d('0x6')](_0x18424d,_0x386fb9)['then'](function(_0xce2fd6){logger[_0x4f7d('0x7')](_0x4f7d('0x8'),_0x57e97c,_0x4f7d('0x9'));logger['debug'](_0x4f7d('0xa'),_0x57e97c,_0x4f7d('0x9'),JSON[_0x4f7d('0xb')](_0xce2fd6));if(_0xce2fd6[_0x4f7d('0xc')]){if(_0xce2fd6[_0x4f7d('0xc')][_0x4f7d('0xd')]===0x1f4){logger[_0x4f7d('0xc')](_0x4f7d('0x8'),_0x57e97c,_0xce2fd6[_0x4f7d('0xc')]['message']);return _0x54c648(_0xce2fd6[_0x4f7d('0xc')]['message']);}logger[_0x4f7d('0xc')]('ChatProactiveAction,\x20%s,\x20%s',_0x57e97c,_0xce2fd6[_0x4f7d('0xc')][_0x4f7d('0xe')]);return _0x408802(_0xce2fd6[_0x4f7d('0xc')][_0x4f7d('0xe')]);}else{logger[_0x4f7d('0x7')](_0x4f7d('0x8'),_0x57e97c,_0x4f7d('0x9'));_0x408802(_0xce2fd6[_0x4f7d('0xf')][_0x4f7d('0xe')]);}})[_0x4f7d('0x10')](function(_0x22d7a8){logger['error'](_0x4f7d('0x8'),_0x57e97c,_0x22d7a8);_0x54c648(_0x22d7a8);});});}
\ No newline at end of file
+var _0x0105=['bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','ChatProactiveAction,\x20%s,\x20%s','request\x20sent','debug','ChatProactiveAction,\x20%s,\x20%s,\x20%s','stringify','error','code','message','lodash','util','moment'];(function(_0x34562b,_0x4f2fb0){var _0xf2666a=function(_0x482047){while(--_0x482047){_0x34562b['push'](_0x34562b['shift']());}};_0xf2666a(++_0x4f2fb0);}(_0x0105,0x75));var _0x5010=function(_0x58ec0e,_0x45ccc3){_0x58ec0e=_0x58ec0e-0x0;var _0x227a6c=_0x0105[_0x58ec0e];return _0x227a6c;};'use strict';var _=require(_0x5010('0x0'));var util=require(_0x5010('0x1'));var moment=require(_0x5010('0x2'));var BPromise=require(_0x5010('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x5010('0x4'))['db'];var utils=require(_0x5010('0x5'));var logger=require(_0x5010('0x6'))(_0x5010('0x7'));var config=require(_0x5010('0x8'));var jayson=require(_0x5010('0x9'));var client=jayson[_0x5010('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x272f70,_0x490df4,_0x303fb6){return new BPromise(function(_0xbcaa3e,_0x21bc93){return client[_0x5010('0xb')](_0x272f70,_0x303fb6)['then'](function(_0x41c1c3){logger['info'](_0x5010('0xc'),_0x490df4,_0x5010('0xd'));logger[_0x5010('0xe')](_0x5010('0xf'),_0x490df4,'request\x20sent',JSON[_0x5010('0x10')](_0x41c1c3));if(_0x41c1c3[_0x5010('0x11')]){if(_0x41c1c3[_0x5010('0x11')][_0x5010('0x12')]===0x1f4){logger['error'](_0x5010('0xc'),_0x490df4,_0x41c1c3[_0x5010('0x11')][_0x5010('0x13')]);return _0x21bc93(_0x41c1c3['error'][_0x5010('0x13')]);}logger[_0x5010('0x11')]('ChatProactiveAction,\x20%s,\x20%s',_0x490df4,_0x41c1c3[_0x5010('0x11')][_0x5010('0x13')]);return _0xbcaa3e(_0x41c1c3[_0x5010('0x11')][_0x5010('0x13')]);}else{logger['info'](_0x5010('0xc'),_0x490df4,_0x5010('0xd'));_0xbcaa3e(_0x41c1c3['result'][_0x5010('0x13')]);}})['catch'](function(_0x4ccdc4){logger['error']('ChatProactiveAction,\x20%s,\x20%s',_0x490df4,_0x4ccdc4);_0x21bc93(_0x4ccdc4);});});}
\ No newline at end of file