Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / mailSubstatus / mailSubstatus.rpc.js
index ad234b0..0afe862 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa95b=['randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','MailSubstatus,\x20%s,\x20%s','request\x20sent','MailSubstatus,\x20%s,\x20%s,\x20%s','stringify','error','message','lodash','moment','bluebird'];(function(_0x335b77,_0x273122){var _0x27114a=function(_0x558285){while(--_0x558285){_0x335b77['push'](_0x335b77['shift']());}};_0x27114a(++_0x273122);}(_0xa95b,0x1e1));var _0xba95=function(_0x167346,_0x1c1dfc){_0x167346=_0x167346-0x0;var _0x41d4af=_0xa95b[_0x167346];return _0x41d4af;};'use strict';var _=require(_0xba95('0x0'));var util=require('util');var moment=require(_0xba95('0x1'));var BPromise=require(_0xba95('0x2'));var rs=require(_0xba95('0x3'));var fs=require('fs');var Redis=require(_0xba95('0x4'));var db=require(_0xba95('0x5'))['db'];var utils=require(_0xba95('0x6'));var logger=require(_0xba95('0x7'))(_0xba95('0x8'));var config=require(_0xba95('0x9'));var jayson=require(_0xba95('0xa'));var client=jayson[_0xba95('0xb')][_0xba95('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x187ac3,_0x2a8e77,_0x5819b8){return new BPromise(function(_0x509773,_0x390a2d){return client[_0xba95('0xd')](_0x187ac3,_0x5819b8)[_0xba95('0xe')](function(_0x2bdf20){logger[_0xba95('0xf')](_0xba95('0x10'),_0x2a8e77,_0xba95('0x11'));logger['debug'](_0xba95('0x12'),_0x2a8e77,'request\x20sent',JSON[_0xba95('0x13')](_0x2bdf20));if(_0x2bdf20['error']){if(_0x2bdf20[_0xba95('0x14')]['code']===0x1f4){logger['error'](_0xba95('0x10'),_0x2a8e77,_0x2bdf20[_0xba95('0x14')][_0xba95('0x15')]);return _0x390a2d(_0x2bdf20[_0xba95('0x14')][_0xba95('0x15')]);}logger['error']('MailSubstatus,\x20%s,\x20%s',_0x2a8e77,_0x2bdf20[_0xba95('0x14')][_0xba95('0x15')]);return _0x509773(_0x2bdf20['error'][_0xba95('0x15')]);}else{logger[_0xba95('0xf')](_0xba95('0x10'),_0x2a8e77,_0xba95('0x11'));_0x509773(_0x2bdf20['result'][_0xba95('0x15')]);}})['catch'](function(_0xa31f03){logger[_0xba95('0x14')](_0xba95('0x10'),_0x2a8e77,_0xa31f03);_0x390a2d(_0xa31f03);});});}
\ No newline at end of file
+var _0xb398=['bluebird','ioredis','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','MailSubstatus,\x20%s,\x20%s','request\x20sent','debug','MailSubstatus,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','util','moment'];(function(_0x1f77db,_0x7f6374){var _0x1ce0a0=function(_0x3f5ad9){while(--_0x3f5ad9){_0x1f77db['push'](_0x1f77db['shift']());}};_0x1ce0a0(++_0x7f6374);}(_0xb398,0x128));var _0x8b39=function(_0x11f7aa,_0x532af2){_0x11f7aa=_0x11f7aa-0x0;var _0x11a86b=_0xb398[_0x11f7aa];return _0x11a86b;};'use strict';var _=require(_0x8b39('0x0'));var util=require(_0x8b39('0x1'));var moment=require(_0x8b39('0x2'));var BPromise=require(_0x8b39('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x8b39('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x8b39('0x5'));var logger=require('../../config/logger')(_0x8b39('0x6'));var config=require(_0x8b39('0x7'));var jayson=require(_0x8b39('0x8'));var client=jayson[_0x8b39('0x9')][_0x8b39('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4989c3,_0x12bdb8,_0x3f1de0){return new BPromise(function(_0x143979,_0xc1fd21){return client[_0x8b39('0xb')](_0x4989c3,_0x3f1de0)[_0x8b39('0xc')](function(_0xce78e0){logger['info'](_0x8b39('0xd'),_0x12bdb8,_0x8b39('0xe'));logger[_0x8b39('0xf')](_0x8b39('0x10'),_0x12bdb8,_0x8b39('0xe'),JSON[_0x8b39('0x11')](_0xce78e0));if(_0xce78e0[_0x8b39('0x12')]){if(_0xce78e0[_0x8b39('0x12')]['code']===0x1f4){logger[_0x8b39('0x12')](_0x8b39('0xd'),_0x12bdb8,_0xce78e0[_0x8b39('0x12')][_0x8b39('0x13')]);return _0xc1fd21(_0xce78e0['error'][_0x8b39('0x13')]);}logger[_0x8b39('0x12')]('MailSubstatus,\x20%s,\x20%s',_0x12bdb8,_0xce78e0[_0x8b39('0x12')]['message']);return _0x143979(_0xce78e0['error'][_0x8b39('0x13')]);}else{logger[_0x8b39('0x14')]('MailSubstatus,\x20%s,\x20%s',_0x12bdb8,'request\x20sent');_0x143979(_0xce78e0[_0x8b39('0x15')][_0x8b39('0x13')]);}})[_0x8b39('0x16')](function(_0x3318da){logger['error'](_0x8b39('0xd'),_0x12bdb8,_0x3318da);_0xc1fd21(_0x3318da);});});}
\ No newline at end of file