Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / mailServerOut / mailServerOut.rpc.js
index 1019775..deb42aa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf52f=['MailServerOut,\x20%s,\x20%s','message','result','catch','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','client','request','then','info','request\x20sent','debug','MailServerOut,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x4e7fd0,_0x29cccd){var _0x1de972=function(_0x430190){while(--_0x430190){_0x4e7fd0['push'](_0x4e7fd0['shift']());}};_0x1de972(++_0x29cccd);}(_0xf52f,0xeb));var _0xff52=function(_0x510fba,_0x3238c8){_0x510fba=_0x510fba-0x0;var _0x1ba091=_0xf52f[_0x510fba];return _0x1ba091;};'use strict';var _=require('lodash');var util=require(_0xff52('0x0'));var moment=require(_0xff52('0x1'));var BPromise=require(_0xff52('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xff52('0x3'));var db=require(_0xff52('0x4'))['db'];var utils=require(_0xff52('0x5'));var logger=require('../../config/logger')(_0xff52('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xff52('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0xd03e15,_0x422320,_0x1106eb){return new BPromise(function(_0x2a2ea2,_0x1b41f4){return client[_0xff52('0x8')](_0xd03e15,_0x1106eb)[_0xff52('0x9')](function(_0x58ca80){logger[_0xff52('0xa')]('MailServerOut,\x20%s,\x20%s',_0x422320,_0xff52('0xb'));logger[_0xff52('0xc')](_0xff52('0xd'),_0x422320,_0xff52('0xb'),JSON[_0xff52('0xe')](_0x58ca80));if(_0x58ca80[_0xff52('0xf')]){if(_0x58ca80[_0xff52('0xf')][_0xff52('0x10')]===0x1f4){logger[_0xff52('0xf')](_0xff52('0x11'),_0x422320,_0x58ca80[_0xff52('0xf')][_0xff52('0x12')]);return _0x1b41f4(_0x58ca80[_0xff52('0xf')][_0xff52('0x12')]);}logger[_0xff52('0xf')](_0xff52('0x11'),_0x422320,_0x58ca80[_0xff52('0xf')][_0xff52('0x12')]);return _0x2a2ea2(_0x58ca80[_0xff52('0xf')][_0xff52('0x12')]);}else{logger['info'](_0xff52('0x11'),_0x422320,'request\x20sent');_0x2a2ea2(_0x58ca80[_0xff52('0x13')][_0xff52('0x12')]);}})[_0xff52('0x14')](function(_0x2e2810){logger['error'](_0xff52('0x11'),_0x422320,_0x2e2810);_0x1b41f4(_0x2e2810);});});}
\ No newline at end of file
+var _0x694e=['then','info','MailServerOut,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request'];(function(_0x7105e8,_0x2af5ba){var _0x38ef89=function(_0x38e3ed){while(--_0x38e3ed){_0x7105e8['push'](_0x7105e8['shift']());}};_0x38ef89(++_0x2af5ba);}(_0x694e,0xca));var _0xe694=function(_0x12f8d3,_0x659656){_0x12f8d3=_0x12f8d3-0x0;var _0x518a42=_0x694e[_0x12f8d3];return _0x518a42;};'use strict';var _=require(_0xe694('0x0'));var util=require(_0xe694('0x1'));var moment=require(_0xe694('0x2'));var BPromise=require(_0xe694('0x3'));var rs=require(_0xe694('0x4'));var fs=require('fs');var Redis=require(_0xe694('0x5'));var db=require(_0xe694('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0xe694('0x7'))(_0xe694('0x8'));var config=require(_0xe694('0x9'));var jayson=require(_0xe694('0xa'));var client=jayson[_0xe694('0xb')][_0xe694('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x49a98e,_0x39b3ca,_0x21ea3e){return new BPromise(function(_0x43bfd3,_0x2e25f4){return client[_0xe694('0xd')](_0x49a98e,_0x21ea3e)[_0xe694('0xe')](function(_0x367567){logger[_0xe694('0xf')](_0xe694('0x10'),_0x39b3ca,'request\x20sent');logger['debug']('MailServerOut,\x20%s,\x20%s,\x20%s',_0x39b3ca,_0xe694('0x11'),JSON[_0xe694('0x12')](_0x367567));if(_0x367567[_0xe694('0x13')]){if(_0x367567['error'][_0xe694('0x14')]===0x1f4){logger[_0xe694('0x13')](_0xe694('0x10'),_0x39b3ca,_0x367567['error']['message']);return _0x2e25f4(_0x367567[_0xe694('0x13')][_0xe694('0x15')]);}logger[_0xe694('0x13')]('MailServerOut,\x20%s,\x20%s',_0x39b3ca,_0x367567['error']['message']);return _0x43bfd3(_0x367567[_0xe694('0x13')]['message']);}else{logger[_0xe694('0xf')](_0xe694('0x10'),_0x39b3ca,_0xe694('0x11'));_0x43bfd3(_0x367567[_0xe694('0x16')][_0xe694('0x15')]);}})[_0xe694('0x17')](function(_0x1a207d){logger[_0xe694('0x13')]('MailServerOut,\x20%s,\x20%s',_0x39b3ca,_0x1a207d);_0x2e25f4(_0x1a207d);});});}
\ No newline at end of file