Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / chatOfflineMessage / chatOfflineMessage.rpc.js
index beeab02..526e281 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcb52=['ChatOfflineMessage,\x20%s,\x20%s','request\x20sent','debug','ChatOfflineMessage,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','http','request','then'];(function(_0x513a3e,_0xa7d9c5){var _0x2c8d04=function(_0xd47298){while(--_0xd47298){_0x513a3e['push'](_0x513a3e['shift']());}};_0x2c8d04(++_0xa7d9c5);}(_0xcb52,0x183));var _0x2cb5=function(_0x571b0f,_0x10ddf9){_0x571b0f=_0x571b0f-0x0;var _0xf0f1c9=_0xcb52[_0x571b0f];return _0xf0f1c9;};'use strict';var _=require(_0x2cb5('0x0'));var util=require(_0x2cb5('0x1'));var moment=require(_0x2cb5('0x2'));var BPromise=require(_0x2cb5('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x2cb5('0x4'))['db'];var utils=require(_0x2cb5('0x5'));var logger=require(_0x2cb5('0x6'))('rpc');var config=require(_0x2cb5('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x2cb5('0x8')][_0x2cb5('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2245f1,_0x1553ea,_0x39694c){return new BPromise(function(_0xd443e6,_0x193eb6){return client[_0x2cb5('0xa')](_0x2245f1,_0x39694c)[_0x2cb5('0xb')](function(_0x8cff6){logger['info'](_0x2cb5('0xc'),_0x1553ea,_0x2cb5('0xd'));logger[_0x2cb5('0xe')](_0x2cb5('0xf'),_0x1553ea,_0x2cb5('0xd'),JSON['stringify'](_0x8cff6));if(_0x8cff6[_0x2cb5('0x10')]){if(_0x8cff6['error'][_0x2cb5('0x11')]===0x1f4){logger[_0x2cb5('0x10')](_0x2cb5('0xc'),_0x1553ea,_0x8cff6[_0x2cb5('0x10')][_0x2cb5('0x12')]);return _0x193eb6(_0x8cff6[_0x2cb5('0x10')][_0x2cb5('0x12')]);}logger[_0x2cb5('0x10')](_0x2cb5('0xc'),_0x1553ea,_0x8cff6[_0x2cb5('0x10')]['message']);return _0xd443e6(_0x8cff6[_0x2cb5('0x10')][_0x2cb5('0x12')]);}else{logger['info']('ChatOfflineMessage,\x20%s,\x20%s',_0x1553ea,_0x2cb5('0xd'));_0xd443e6(_0x8cff6[_0x2cb5('0x13')][_0x2cb5('0x12')]);}})[_0x2cb5('0x14')](function(_0x463e44){logger[_0x2cb5('0x10')]('ChatOfflineMessage,\x20%s,\x20%s',_0x1553ea,_0x463e44);_0x193eb6(_0x463e44);});});}
\ No newline at end of file
+var _0xb280=['ChatOfflineMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','ChatOfflineMessage,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x14a862,_0x2b559d){var _0x245eb5=function(_0x6e014c){while(--_0x6e014c){_0x14a862['push'](_0x14a862['shift']());}};_0x245eb5(++_0x2b559d);}(_0xb280,0xbd));var _0x0b28=function(_0x495501,_0x3c1ef8){_0x495501=_0x495501-0x0;var _0x1f333a=_0xb280[_0x495501];return _0x1f333a;};'use strict';var _=require(_0x0b28('0x0'));var util=require(_0x0b28('0x1'));var moment=require(_0x0b28('0x2'));var BPromise=require(_0x0b28('0x3'));var rs=require(_0x0b28('0x4'));var fs=require('fs');var Redis=require(_0x0b28('0x5'));var db=require(_0x0b28('0x6'))['db'];var utils=require(_0x0b28('0x7'));var logger=require(_0x0b28('0x8'))(_0x0b28('0x9'));var config=require(_0x0b28('0xa'));var jayson=require(_0x0b28('0xb'));var client=jayson['client'][_0x0b28('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x3abc2e,_0x177a65,_0x2985db){return new BPromise(function(_0x18c05c,_0x5d6a2f){return client[_0x0b28('0xd')](_0x3abc2e,_0x2985db)[_0x0b28('0xe')](function(_0x449d6f){logger[_0x0b28('0xf')](_0x0b28('0x10'),_0x177a65,_0x0b28('0x11'));logger[_0x0b28('0x12')](_0x0b28('0x13'),_0x177a65,_0x0b28('0x11'),JSON[_0x0b28('0x14')](_0x449d6f));if(_0x449d6f['error']){if(_0x449d6f[_0x0b28('0x15')][_0x0b28('0x16')]===0x1f4){logger['error'](_0x0b28('0x10'),_0x177a65,_0x449d6f[_0x0b28('0x15')][_0x0b28('0x17')]);return _0x5d6a2f(_0x449d6f[_0x0b28('0x15')]['message']);}logger[_0x0b28('0x15')]('ChatOfflineMessage,\x20%s,\x20%s',_0x177a65,_0x449d6f['error'][_0x0b28('0x17')]);return _0x18c05c(_0x449d6f['error'][_0x0b28('0x17')]);}else{logger['info'](_0x0b28('0x10'),_0x177a65,_0x0b28('0x11'));_0x18c05c(_0x449d6f[_0x0b28('0x18')][_0x0b28('0x17')]);}})[_0x0b28('0x19')](function(_0x48b829){logger[_0x0b28('0x15')]('ChatOfflineMessage,\x20%s,\x20%s',_0x177a65,_0x48b829);_0x5d6a2f(_0x48b829);});});}
\ No newline at end of file