Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / chatProactiveAction / chatProactiveAction.rpc.js
index cb6b3db..0ede0fd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe8d7=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','then','info','request\x20sent','debug','ChatProactiveAction,\x20%s,\x20%s,\x20%s','error','ChatProactiveAction,\x20%s,\x20%s','message','catch','util'];(function(_0x33bff0,_0xa58cd4){var _0x11eada=function(_0x12d006){while(--_0x12d006){_0x33bff0['push'](_0x33bff0['shift']());}};_0x11eada(++_0xa58cd4);}(_0xe8d7,0x1a3));var _0x7e8d=function(_0x346045,_0x3ce566){_0x346045=_0x346045-0x0;var _0x3d1573=_0xe8d7[_0x346045];return _0x3d1573;};'use strict';var _=require('lodash');var util=require(_0x7e8d('0x0'));var moment=require('moment');var BPromise=require(_0x7e8d('0x1'));var rs=require(_0x7e8d('0x2'));var fs=require('fs');var Redis=require(_0x7e8d('0x3'));var db=require(_0x7e8d('0x4'))['db'];var utils=require(_0x7e8d('0x5'));var logger=require(_0x7e8d('0x6'))(_0x7e8d('0x7'));var config=require('../../config/environment');var jayson=require(_0x7e8d('0x8'));var client=jayson[_0x7e8d('0x9')][_0x7e8d('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x56b897,_0x1de673,_0x528f3d){return new BPromise(function(_0x3936c8,_0x5c9913){return client['request'](_0x56b897,_0x528f3d)[_0x7e8d('0xb')](function(_0x461f2c){logger[_0x7e8d('0xc')]('ChatProactiveAction,\x20%s,\x20%s',_0x1de673,_0x7e8d('0xd'));logger[_0x7e8d('0xe')](_0x7e8d('0xf'),_0x1de673,_0x7e8d('0xd'),JSON['stringify'](_0x461f2c));if(_0x461f2c[_0x7e8d('0x10')]){if(_0x461f2c['error']['code']===0x1f4){logger['error'](_0x7e8d('0x11'),_0x1de673,_0x461f2c[_0x7e8d('0x10')][_0x7e8d('0x12')]);return _0x5c9913(_0x461f2c[_0x7e8d('0x10')][_0x7e8d('0x12')]);}logger[_0x7e8d('0x10')](_0x7e8d('0x11'),_0x1de673,_0x461f2c[_0x7e8d('0x10')]['message']);return _0x3936c8(_0x461f2c[_0x7e8d('0x10')][_0x7e8d('0x12')]);}else{logger[_0x7e8d('0xc')](_0x7e8d('0x11'),_0x1de673,_0x7e8d('0xd'));_0x3936c8(_0x461f2c['result'][_0x7e8d('0x12')]);}})[_0x7e8d('0x13')](function(_0x2a260d){logger[_0x7e8d('0x10')]('ChatProactiveAction,\x20%s,\x20%s',_0x1de673,_0x2a260d);_0x5c9913(_0x2a260d);});});}
\ 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