Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / mailSubstatus / mailSubstatus.rpc.js
index 56bbfaf..4226428 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa07f=['request','then','info','MailSubstatus,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','lodash','util','bluebird','../../config/utils','../../config/logger','jayson/promise','client','http'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0xa07f,0x14e));var _0xfa07=function(_0x33d099,_0x2e1385){_0x33d099=_0x33d099-0x0;var _0xaaaf55=_0xa07f[_0x33d099];return _0xaaaf55;};'use strict';var _=require(_0xfa07('0x0'));var util=require(_0xfa07('0x1'));var moment=require('moment');var BPromise=require(_0xfa07('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xfa07('0x3'));var logger=require(_0xfa07('0x4'))('rpc');var config=require('../../config/environment');var jayson=require(_0xfa07('0x5'));var client=jayson[_0xfa07('0x6')][_0xfa07('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x432d19,_0x4858f7,_0x3d9424){return new BPromise(function(_0x3ed1a3,_0x5bcece){return client[_0xfa07('0x8')](_0x432d19,_0x3d9424)[_0xfa07('0x9')](function(_0xd60690){logger[_0xfa07('0xa')](_0xfa07('0xb'),_0x4858f7,_0xfa07('0xc'));logger[_0xfa07('0xd')]('MailSubstatus,\x20%s,\x20%s,\x20%s',_0x4858f7,_0xfa07('0xc'),JSON[_0xfa07('0xe')](_0xd60690));if(_0xd60690['error']){if(_0xd60690['error']['code']===0x1f4){logger[_0xfa07('0xf')](_0xfa07('0xb'),_0x4858f7,_0xd60690[_0xfa07('0xf')][_0xfa07('0x10')]);return _0x5bcece(_0xd60690[_0xfa07('0xf')][_0xfa07('0x10')]);}logger[_0xfa07('0xf')](_0xfa07('0xb'),_0x4858f7,_0xd60690[_0xfa07('0xf')][_0xfa07('0x10')]);return _0x3ed1a3(_0xd60690[_0xfa07('0xf')][_0xfa07('0x10')]);}else{logger[_0xfa07('0xa')](_0xfa07('0xb'),_0x4858f7,'request\x20sent');_0x3ed1a3(_0xd60690[_0xfa07('0x11')][_0xfa07('0x10')]);}})[_0xfa07('0x12')](function(_0x59126d){logger[_0xfa07('0xf')](_0xfa07('0xb'),_0x4858f7,_0x59126d);_0x5bcece(_0x59126d);});});}
\ No newline at end of file
+var _0xb96a=['result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','then','info','MailSubstatus,\x20%s,\x20%s','debug','error','message','request\x20sent'];(function(_0x2aecb2,_0x343312){var _0x3ebb80=function(_0x19fab3){while(--_0x19fab3){_0x2aecb2['push'](_0x2aecb2['shift']());}};_0x3ebb80(++_0x343312);}(_0xb96a,0x1bb));var _0xab96=function(_0x1a365a,_0x34c820){_0x1a365a=_0x1a365a-0x0;var _0x406ca2=_0xb96a[_0x1a365a];return _0x406ca2;};'use strict';var _=require(_0xab96('0x0'));var util=require(_0xab96('0x1'));var moment=require('moment');var BPromise=require(_0xab96('0x2'));var rs=require(_0xab96('0x3'));var fs=require('fs');var Redis=require(_0xab96('0x4'));var db=require(_0xab96('0x5'))['db'];var utils=require(_0xab96('0x6'));var logger=require(_0xab96('0x7'))('rpc');var config=require(_0xab96('0x8'));var jayson=require(_0xab96('0x9'));var client=jayson[_0xab96('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x17c122,_0x1e8d61,_0x3f4fb2){return new BPromise(function(_0x496cac,_0x3769f9){return client[_0xab96('0xb')](_0x17c122,_0x3f4fb2)[_0xab96('0xc')](function(_0x216e62){logger[_0xab96('0xd')](_0xab96('0xe'),_0x1e8d61,'request\x20sent');logger[_0xab96('0xf')]('MailSubstatus,\x20%s,\x20%s,\x20%s',_0x1e8d61,'request\x20sent',JSON['stringify'](_0x216e62));if(_0x216e62['error']){if(_0x216e62[_0xab96('0x10')]['code']===0x1f4){logger['error'](_0xab96('0xe'),_0x1e8d61,_0x216e62['error'][_0xab96('0x11')]);return _0x3769f9(_0x216e62[_0xab96('0x10')][_0xab96('0x11')]);}logger['error'](_0xab96('0xe'),_0x1e8d61,_0x216e62[_0xab96('0x10')][_0xab96('0x11')]);return _0x496cac(_0x216e62['error'][_0xab96('0x11')]);}else{logger[_0xab96('0xd')](_0xab96('0xe'),_0x1e8d61,_0xab96('0x12'));_0x496cac(_0x216e62[_0xab96('0x13')]['message']);}})[_0xab96('0x14')](function(_0x40f2ce){logger['error'](_0xab96('0xe'),_0x1e8d61,_0x40f2ce);_0x3769f9(_0x40f2ce);});});}
\ No newline at end of file