Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / mailServerOut / mailServerOut.rpc.js
index fba7c2a..8941d63 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9ccb=['request\x20sent','stringify','error','code','message','MailServerOut,\x20%s,\x20%s','info','result','catch','lodash','moment','bluebird','randomstring','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','debug'];(function(_0x340a46,_0x19d230){var _0x585e67=function(_0x230bd0){while(--_0x230bd0){_0x340a46['push'](_0x340a46['shift']());}};_0x585e67(++_0x19d230);}(_0x9ccb,0x105));var _0xb9cc=function(_0x2cdfa7,_0x34eeb6){_0x2cdfa7=_0x2cdfa7-0x0;var _0x23a81a=_0x9ccb[_0x2cdfa7];return _0x23a81a;};'use strict';var _=require(_0xb9cc('0x0'));var util=require('util');var moment=require(_0xb9cc('0x1'));var BPromise=require(_0xb9cc('0x2'));var rs=require(_0xb9cc('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xb9cc('0x4'));var logger=require(_0xb9cc('0x5'))(_0xb9cc('0x6'));var config=require(_0xb9cc('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xb9cc('0x8')][_0xb9cc('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xe99bc6,_0x7f5c98,_0x9d3184){return new BPromise(function(_0x5db7e7,_0x2c0c61){return client[_0xb9cc('0xa')](_0xe99bc6,_0x9d3184)['then'](function(_0x2da3ea){logger['info']('MailServerOut,\x20%s,\x20%s',_0x7f5c98,'request\x20sent');logger[_0xb9cc('0xb')]('MailServerOut,\x20%s,\x20%s,\x20%s',_0x7f5c98,_0xb9cc('0xc'),JSON[_0xb9cc('0xd')](_0x2da3ea));if(_0x2da3ea[_0xb9cc('0xe')]){if(_0x2da3ea[_0xb9cc('0xe')][_0xb9cc('0xf')]===0x1f4){logger[_0xb9cc('0xe')]('MailServerOut,\x20%s,\x20%s',_0x7f5c98,_0x2da3ea[_0xb9cc('0xe')][_0xb9cc('0x10')]);return _0x2c0c61(_0x2da3ea[_0xb9cc('0xe')][_0xb9cc('0x10')]);}logger[_0xb9cc('0xe')](_0xb9cc('0x11'),_0x7f5c98,_0x2da3ea[_0xb9cc('0xe')]['message']);return _0x5db7e7(_0x2da3ea[_0xb9cc('0xe')]['message']);}else{logger[_0xb9cc('0x12')](_0xb9cc('0x11'),_0x7f5c98,_0xb9cc('0xc'));_0x5db7e7(_0x2da3ea[_0xb9cc('0x13')]['message']);}})[_0xb9cc('0x14')](function(_0x5028d0){logger[_0xb9cc('0xe')]('MailServerOut,\x20%s,\x20%s',_0x7f5c98,_0x5028d0);_0x2c0c61(_0x5028d0);});});}
\ No newline at end of file
+var _0x9e91=['MailServerOut,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','client','then','info','MailServerOut,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x2c04a0,_0x90aca8){var _0x18b373=function(_0x47f064){while(--_0x47f064){_0x2c04a0['push'](_0x2c04a0['shift']());}};_0x18b373(++_0x90aca8);}(_0x9e91,0x7f));var _0x19e9=function(_0x412dbc,_0x113272){_0x412dbc=_0x412dbc-0x0;var _0x4cc893=_0x9e91[_0x412dbc];return _0x4cc893;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x19e9('0x0'));var BPromise=require(_0x19e9('0x1'));var rs=require(_0x19e9('0x2'));var fs=require('fs');var Redis=require(_0x19e9('0x3'));var db=require(_0x19e9('0x4'))['db'];var utils=require(_0x19e9('0x5'));var logger=require(_0x19e9('0x6'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x19e9('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x31bde4,_0x56ea7c,_0x56e4d3){return new BPromise(function(_0x33d45e,_0x16dba7){return client['request'](_0x31bde4,_0x56e4d3)[_0x19e9('0x8')](function(_0xbcace3){logger[_0x19e9('0x9')](_0x19e9('0xa'),_0x56ea7c,_0x19e9('0xb'));logger[_0x19e9('0xc')](_0x19e9('0xd'),_0x56ea7c,_0x19e9('0xb'),JSON[_0x19e9('0xe')](_0xbcace3));if(_0xbcace3[_0x19e9('0xf')]){if(_0xbcace3[_0x19e9('0xf')][_0x19e9('0x10')]===0x1f4){logger[_0x19e9('0xf')](_0x19e9('0xa'),_0x56ea7c,_0xbcace3[_0x19e9('0xf')][_0x19e9('0x11')]);return _0x16dba7(_0xbcace3[_0x19e9('0xf')]['message']);}logger[_0x19e9('0xf')](_0x19e9('0xa'),_0x56ea7c,_0xbcace3[_0x19e9('0xf')][_0x19e9('0x11')]);return _0x33d45e(_0xbcace3['error']['message']);}else{logger['info']('MailServerOut,\x20%s,\x20%s',_0x56ea7c,_0x19e9('0xb'));_0x33d45e(_0xbcace3[_0x19e9('0x12')][_0x19e9('0x11')]);}})[_0x19e9('0x13')](function(_0x46aae0){logger['error']('MailServerOut,\x20%s,\x20%s',_0x56ea7c,_0x46aae0);_0x16dba7(_0x46aae0);});});}
\ No newline at end of file