Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / mailSubstatus / mailSubstatus.rpc.js
index 0e166bf..298fa27 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3c81=['MailSubstatus,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','bluebird','randomstring','rpc','../../config/environment','jayson/promise','client','http','request','then','info','MailSubstatus,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x567459,_0x2c9742){var _0x53e01a=function(_0x5007e9){while(--_0x5007e9){_0x567459['push'](_0x567459['shift']());}};_0x53e01a(++_0x2c9742);}(_0x3c81,0x102));var _0x13c8=function(_0x2763af,_0x297661){_0x2763af=_0x2763af-0x0;var _0x364b9c=_0x3c81[_0x2763af];return _0x364b9c;};'use strict';var _=require(_0x13c8('0x0'));var util=require(_0x13c8('0x1'));var moment=require('moment');var BPromise=require(_0x13c8('0x2'));var rs=require(_0x13c8('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x13c8('0x4'));var config=require(_0x13c8('0x5'));var jayson=require(_0x13c8('0x6'));var client=jayson[_0x13c8('0x7')][_0x13c8('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x3f0bd2,_0x445b69,_0x4f7bcc){return new BPromise(function(_0x17c228,_0x4905c3){return client[_0x13c8('0x9')](_0x3f0bd2,_0x4f7bcc)[_0x13c8('0xa')](function(_0x189ce6){logger[_0x13c8('0xb')](_0x13c8('0xc'),_0x445b69,_0x13c8('0xd'));logger[_0x13c8('0xe')](_0x13c8('0xf'),_0x445b69,_0x13c8('0xd'),JSON[_0x13c8('0x10')](_0x189ce6));if(_0x189ce6[_0x13c8('0x11')]){if(_0x189ce6[_0x13c8('0x11')][_0x13c8('0x12')]===0x1f4){logger[_0x13c8('0x11')]('MailSubstatus,\x20%s,\x20%s',_0x445b69,_0x189ce6[_0x13c8('0x11')][_0x13c8('0x13')]);return _0x4905c3(_0x189ce6[_0x13c8('0x11')][_0x13c8('0x13')]);}logger['error'](_0x13c8('0xc'),_0x445b69,_0x189ce6['error']['message']);return _0x17c228(_0x189ce6['error'][_0x13c8('0x13')]);}else{logger['info'](_0x13c8('0xc'),_0x445b69,_0x13c8('0xd'));_0x17c228(_0x189ce6[_0x13c8('0x14')][_0x13c8('0x13')]);}})['catch'](function(_0x13a9e1){logger[_0x13c8('0x11')](_0x13c8('0xc'),_0x445b69,_0x13a9e1);_0x4905c3(_0x13a9e1);});});}
\ No newline at end of file
+var _0xda7a=['../../config/logger','../../config/environment','jayson/promise','client','http','request','then','request\x20sent','debug','error','code','MailSubstatus,\x20%s,\x20%s','message','info','result','catch','lodash','util','moment','randomstring','ioredis','../../config/utils'];(function(_0x5d5c3a,_0x317370){var _0x12e63e=function(_0x270588){while(--_0x270588){_0x5d5c3a['push'](_0x5d5c3a['shift']());}};_0x12e63e(++_0x317370);}(_0xda7a,0x15a));var _0xada7=function(_0x1e26e9,_0x41ceb1){_0x1e26e9=_0x1e26e9-0x0;var _0x17cb69=_0xda7a[_0x1e26e9];return _0x17cb69;};'use strict';var _=require(_0xada7('0x0'));var util=require(_0xada7('0x1'));var moment=require(_0xada7('0x2'));var BPromise=require('bluebird');var rs=require(_0xada7('0x3'));var fs=require('fs');var Redis=require(_0xada7('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xada7('0x5'));var logger=require(_0xada7('0x6'))('rpc');var config=require(_0xada7('0x7'));var jayson=require(_0xada7('0x8'));var client=jayson[_0xada7('0x9')][_0xada7('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5a1b6c,_0x526c34,_0x2881a1){return new BPromise(function(_0x58fab5,_0x18bd41){return client[_0xada7('0xb')](_0x5a1b6c,_0x2881a1)[_0xada7('0xc')](function(_0x18b3b9){logger['info']('MailSubstatus,\x20%s,\x20%s',_0x526c34,_0xada7('0xd'));logger[_0xada7('0xe')]('MailSubstatus,\x20%s,\x20%s,\x20%s',_0x526c34,_0xada7('0xd'),JSON['stringify'](_0x18b3b9));if(_0x18b3b9['error']){if(_0x18b3b9[_0xada7('0xf')][_0xada7('0x10')]===0x1f4){logger[_0xada7('0xf')](_0xada7('0x11'),_0x526c34,_0x18b3b9[_0xada7('0xf')][_0xada7('0x12')]);return _0x18bd41(_0x18b3b9['error'][_0xada7('0x12')]);}logger[_0xada7('0xf')](_0xada7('0x11'),_0x526c34,_0x18b3b9[_0xada7('0xf')][_0xada7('0x12')]);return _0x58fab5(_0x18b3b9[_0xada7('0xf')][_0xada7('0x12')]);}else{logger[_0xada7('0x13')](_0xada7('0x11'),_0x526c34,'request\x20sent');_0x58fab5(_0x18b3b9[_0xada7('0x14')][_0xada7('0x12')]);}})[_0xada7('0x15')](function(_0x4b3bd3){logger[_0xada7('0xf')](_0xada7('0x11'),_0x526c34,_0x4b3bd3);_0x18bd41(_0x4b3bd3);});});}
\ No newline at end of file