Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / mailSubstatus / mailSubstatus.rpc.js
index 9822fb7..266cda4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x750a=['error','code','MailSubstatus,\x20%s,\x20%s','message','catch','util','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','info','request\x20sent','debug','stringify'];(function(_0x5fb6d0,_0x1082c5){var _0x572752=function(_0x45fb19){while(--_0x45fb19){_0x5fb6d0['push'](_0x5fb6d0['shift']());}};_0x572752(++_0x1082c5);}(_0x750a,0x140));var _0xa750=function(_0x54482d,_0x48e95d){_0x54482d=_0x54482d-0x0;var _0x610d61=_0x750a[_0x54482d];return _0x610d61;};'use strict';var _=require('lodash');var util=require(_0xa750('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xa750('0x1'));var fs=require('fs');var Redis=require(_0xa750('0x2'));var db=require(_0xa750('0x3'))['db'];var utils=require(_0xa750('0x4'));var logger=require(_0xa750('0x5'))(_0xa750('0x6'));var config=require(_0xa750('0x7'));var jayson=require(_0xa750('0x8'));var client=jayson[_0xa750('0x9')][_0xa750('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x197299,_0x1ae455,_0x3d7c43){return new BPromise(function(_0x47a4dd,_0x53f2cb){return client[_0xa750('0xb')](_0x197299,_0x3d7c43)['then'](function(_0x4458b1){logger[_0xa750('0xc')]('MailSubstatus,\x20%s,\x20%s',_0x1ae455,_0xa750('0xd'));logger[_0xa750('0xe')]('MailSubstatus,\x20%s,\x20%s,\x20%s',_0x1ae455,'request\x20sent',JSON[_0xa750('0xf')](_0x4458b1));if(_0x4458b1['error']){if(_0x4458b1[_0xa750('0x10')][_0xa750('0x11')]===0x1f4){logger['error'](_0xa750('0x12'),_0x1ae455,_0x4458b1[_0xa750('0x10')][_0xa750('0x13')]);return _0x53f2cb(_0x4458b1['error'][_0xa750('0x13')]);}logger[_0xa750('0x10')](_0xa750('0x12'),_0x1ae455,_0x4458b1[_0xa750('0x10')][_0xa750('0x13')]);return _0x47a4dd(_0x4458b1[_0xa750('0x10')]['message']);}else{logger[_0xa750('0xc')](_0xa750('0x12'),_0x1ae455,_0xa750('0xd'));_0x47a4dd(_0x4458b1['result'][_0xa750('0x13')]);}})[_0xa750('0x14')](function(_0x58639b){logger['error'](_0xa750('0x12'),_0x1ae455,_0x58639b);_0x53f2cb(_0x58639b);});});}
\ No newline at end of file
+var _0xf989=['http','request','then','info','MailSubstatus,\x20%s,\x20%s','request\x20sent','debug','MailSubstatus,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','jayson/promise'];(function(_0x5df85e,_0x329160){var _0x179af6=function(_0x368078){while(--_0x368078){_0x5df85e['push'](_0x5df85e['shift']());}};_0x179af6(++_0x329160);}(_0xf989,0x133));var _0x9f98=function(_0x4c2623,_0x4838bb){_0x4c2623=_0x4c2623-0x0;var _0x2be431=_0xf989[_0x4c2623];return _0x2be431;};'use strict';var _=require(_0x9f98('0x0'));var util=require('util');var moment=require(_0x9f98('0x1'));var BPromise=require(_0x9f98('0x2'));var rs=require(_0x9f98('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x9f98('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x9f98('0x5'))(_0x9f98('0x6'));var config=require('../../config/environment');var jayson=require(_0x9f98('0x7'));var client=jayson['client'][_0x9f98('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x158ad7,_0x5dc167,_0x5961b3){return new BPromise(function(_0x4d7e2a,_0x13ebbe){return client[_0x9f98('0x9')](_0x158ad7,_0x5961b3)[_0x9f98('0xa')](function(_0xb505c1){logger[_0x9f98('0xb')](_0x9f98('0xc'),_0x5dc167,_0x9f98('0xd'));logger[_0x9f98('0xe')](_0x9f98('0xf'),_0x5dc167,_0x9f98('0xd'),JSON[_0x9f98('0x10')](_0xb505c1));if(_0xb505c1[_0x9f98('0x11')]){if(_0xb505c1[_0x9f98('0x11')][_0x9f98('0x12')]===0x1f4){logger[_0x9f98('0x11')](_0x9f98('0xc'),_0x5dc167,_0xb505c1[_0x9f98('0x11')][_0x9f98('0x13')]);return _0x13ebbe(_0xb505c1['error'][_0x9f98('0x13')]);}logger[_0x9f98('0x11')]('MailSubstatus,\x20%s,\x20%s',_0x5dc167,_0xb505c1[_0x9f98('0x11')][_0x9f98('0x13')]);return _0x4d7e2a(_0xb505c1['error']['message']);}else{logger[_0x9f98('0xb')](_0x9f98('0xc'),_0x5dc167,_0x9f98('0xd'));_0x4d7e2a(_0xb505c1['result'][_0x9f98('0x13')]);}})[_0x9f98('0x14')](function(_0x3c1c8e){logger[_0x9f98('0x11')](_0x9f98('0xc'),_0x5dc167,_0x3c1c8e);_0x13ebbe(_0x3c1c8e);});});}
\ No newline at end of file