Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / chatProactiveAction / chatProactiveAction.rpc.js
index 62a6815..71d0cdc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x723f=['code','message','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','request','info','ChatProactiveAction,\x20%s,\x20%s','debug','request\x20sent','stringify','error'];(function(_0x58a1a3,_0x5f54a8){var _0x5d5e22=function(_0x445527){while(--_0x445527){_0x58a1a3['push'](_0x58a1a3['shift']());}};_0x5d5e22(++_0x5f54a8);}(_0x723f,0xd6));var _0xf723=function(_0x20c0f5,_0x490a09){_0x20c0f5=_0x20c0f5-0x0;var _0x2a1933=_0x723f[_0x20c0f5];return _0x2a1933;};'use strict';var _=require('lodash');var util=require(_0xf723('0x0'));var moment=require('moment');var BPromise=require(_0xf723('0x1'));var rs=require(_0xf723('0x2'));var fs=require('fs');var Redis=require(_0xf723('0x3'));var db=require(_0xf723('0x4'))['db'];var utils=require(_0xf723('0x5'));var logger=require(_0xf723('0x6'))(_0xf723('0x7'));var config=require(_0xf723('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xf723('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x25fc17,_0x5edc7e,_0x5acc5e){return new BPromise(function(_0x220d8a,_0x221f8d){return client[_0xf723('0xa')](_0x25fc17,_0x5acc5e)['then'](function(_0x53367e){logger[_0xf723('0xb')](_0xf723('0xc'),_0x5edc7e,'request\x20sent');logger[_0xf723('0xd')]('ChatProactiveAction,\x20%s,\x20%s,\x20%s',_0x5edc7e,_0xf723('0xe'),JSON[_0xf723('0xf')](_0x53367e));if(_0x53367e[_0xf723('0x10')]){if(_0x53367e[_0xf723('0x10')][_0xf723('0x11')]===0x1f4){logger[_0xf723('0x10')](_0xf723('0xc'),_0x5edc7e,_0x53367e[_0xf723('0x10')][_0xf723('0x12')]);return _0x221f8d(_0x53367e[_0xf723('0x10')][_0xf723('0x12')]);}logger[_0xf723('0x10')]('ChatProactiveAction,\x20%s,\x20%s',_0x5edc7e,_0x53367e['error'][_0xf723('0x12')]);return _0x220d8a(_0x53367e[_0xf723('0x10')][_0xf723('0x12')]);}else{logger[_0xf723('0xb')]('ChatProactiveAction,\x20%s,\x20%s',_0x5edc7e,'request\x20sent');_0x220d8a(_0x53367e[_0xf723('0x13')][_0xf723('0x12')]);}})[_0xf723('0x14')](function(_0x1fc369){logger[_0xf723('0x10')](_0xf723('0xc'),_0x5edc7e,_0x1fc369);_0x221f8d(_0x1fc369);});});}
\ No newline at end of file
+var _0x89b1=['http','request','then','info','request\x20sent','debug','ChatProactiveAction,\x20%s,\x20%s,\x20%s','stringify','error','code','message','ChatProactiveAction,\x20%s,\x20%s','result','lodash','util','moment','randomstring','ioredis','../../config/utils','../../config/logger','rpc','jayson/promise','client'];(function(_0x112a66,_0x5cc3a3){var _0x838651=function(_0x2b794c){while(--_0x2b794c){_0x112a66['push'](_0x112a66['shift']());}};_0x838651(++_0x5cc3a3);}(_0x89b1,0xae));var _0x189b=function(_0x43e281,_0x4579c3){_0x43e281=_0x43e281-0x0;var _0x2dc360=_0x89b1[_0x43e281];return _0x2dc360;};'use strict';var _=require(_0x189b('0x0'));var util=require(_0x189b('0x1'));var moment=require(_0x189b('0x2'));var BPromise=require('bluebird');var rs=require(_0x189b('0x3'));var fs=require('fs');var Redis=require(_0x189b('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x189b('0x5'));var logger=require(_0x189b('0x6'))(_0x189b('0x7'));var config=require('../../config/environment');var jayson=require(_0x189b('0x8'));var client=jayson[_0x189b('0x9')][_0x189b('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x40605a,_0x1a753b,_0x501ed4){return new BPromise(function(_0x5667f5,_0xcb2f4d){return client[_0x189b('0xb')](_0x40605a,_0x501ed4)[_0x189b('0xc')](function(_0x5bd7e7){logger[_0x189b('0xd')]('ChatProactiveAction,\x20%s,\x20%s',_0x1a753b,_0x189b('0xe'));logger[_0x189b('0xf')](_0x189b('0x10'),_0x1a753b,_0x189b('0xe'),JSON[_0x189b('0x11')](_0x5bd7e7));if(_0x5bd7e7[_0x189b('0x12')]){if(_0x5bd7e7[_0x189b('0x12')][_0x189b('0x13')]===0x1f4){logger[_0x189b('0x12')]('ChatProactiveAction,\x20%s,\x20%s',_0x1a753b,_0x5bd7e7['error'][_0x189b('0x14')]);return _0xcb2f4d(_0x5bd7e7['error'][_0x189b('0x14')]);}logger[_0x189b('0x12')](_0x189b('0x15'),_0x1a753b,_0x5bd7e7[_0x189b('0x12')][_0x189b('0x14')]);return _0x5667f5(_0x5bd7e7[_0x189b('0x12')]['message']);}else{logger['info']('ChatProactiveAction,\x20%s,\x20%s',_0x1a753b,_0x189b('0xe'));_0x5667f5(_0x5bd7e7[_0x189b('0x16')]['message']);}})['catch'](function(_0x38f7bc){logger[_0x189b('0x12')]('ChatProactiveAction,\x20%s,\x20%s',_0x1a753b,_0x38f7bc);_0xcb2f4d(_0x38f7bc);});});}
\ No newline at end of file