Built motion from commit (unavailable).|2.5.20
[motion2.git] / server / api / userMailQueue / userMailQueue.rpc.js
index cf27e10..44c1045 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xafc4=['error','code','message','request\x20sent','catch','lodash','moment','randomstring','ioredis','../../mysqldb','../../config/utils','jayson/promise','client','http','request','then','info','UserMailQueue,\x20%s,\x20%s','UserMailQueue,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x392b2b,_0x224504){var _0x308a40=function(_0x114938){while(--_0x114938){_0x392b2b['push'](_0x392b2b['shift']());}};_0x308a40(++_0x224504);}(_0xafc4,0x69));var _0x4afc=function(_0x2f5759,_0x1b678d){_0x2f5759=_0x2f5759-0x0;var _0x397ece=_0xafc4[_0x2f5759];return _0x397ece;};'use strict';var _=require(_0x4afc('0x0'));var util=require('util');var moment=require(_0x4afc('0x1'));var BPromise=require('bluebird');var rs=require(_0x4afc('0x2'));var fs=require('fs');var Redis=require(_0x4afc('0x3'));var db=require(_0x4afc('0x4'))['db'];var utils=require(_0x4afc('0x5'));var logger=require('../../config/logger')('rpc');var config=require('../../config/environment');var jayson=require(_0x4afc('0x6'));var client=jayson[_0x4afc('0x7')][_0x4afc('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1bb281,_0xc828d9,_0xaf053d){return new BPromise(function(_0x5e1e29,_0x31e165){return client[_0x4afc('0x9')](_0x1bb281,_0xaf053d)[_0x4afc('0xa')](function(_0x1e6bf5){logger[_0x4afc('0xb')](_0x4afc('0xc'),_0xc828d9,'request\x20sent');logger['debug'](_0x4afc('0xd'),_0xc828d9,'request\x20sent',JSON[_0x4afc('0xe')](_0x1e6bf5));if(_0x1e6bf5[_0x4afc('0xf')]){if(_0x1e6bf5['error'][_0x4afc('0x10')]===0x1f4){logger[_0x4afc('0xf')](_0x4afc('0xc'),_0xc828d9,_0x1e6bf5[_0x4afc('0xf')][_0x4afc('0x11')]);return _0x31e165(_0x1e6bf5[_0x4afc('0xf')][_0x4afc('0x11')]);}logger[_0x4afc('0xf')]('UserMailQueue,\x20%s,\x20%s',_0xc828d9,_0x1e6bf5[_0x4afc('0xf')][_0x4afc('0x11')]);return _0x5e1e29(_0x1e6bf5[_0x4afc('0xf')][_0x4afc('0x11')]);}else{logger['info']('UserMailQueue,\x20%s,\x20%s',_0xc828d9,_0x4afc('0x12'));_0x5e1e29(_0x1e6bf5['result'][_0x4afc('0x11')]);}})[_0x4afc('0x13')](function(_0x2b928b){logger[_0x4afc('0xf')](_0x4afc('0xc'),_0xc828d9,_0x2b928b);_0x31e165(_0x2b928b);});});}
\ No newline at end of file
+var _0x40cb=['lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','request','UserMailQueue,\x20%s,\x20%s','request\x20sent','debug','UserMailQueue,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch'];(function(_0x3b0d6d,_0x189d76){var _0x58ebfe=function(_0x5c471b){while(--_0x5c471b){_0x3b0d6d['push'](_0x3b0d6d['shift']());}};_0x58ebfe(++_0x189d76);}(_0x40cb,0x108));var _0xb40c=function(_0x392212,_0xaecbe3){_0x392212=_0x392212-0x0;var _0x5ab162=_0x40cb[_0x392212];return _0x5ab162;};'use strict';var _=require(_0xb40c('0x0'));var util=require(_0xb40c('0x1'));var moment=require(_0xb40c('0x2'));var BPromise=require(_0xb40c('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb40c('0x4'));var db=require(_0xb40c('0x5'))['db'];var utils=require(_0xb40c('0x6'));var logger=require(_0xb40c('0x7'))('rpc');var config=require(_0xb40c('0x8'));var jayson=require(_0xb40c('0x9'));var client=jayson['client'][_0xb40c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xb9fba5,_0x198379,_0x3f0e0e){return new BPromise(function(_0x345f54,_0x389402){return client[_0xb40c('0xb')](_0xb9fba5,_0x3f0e0e)['then'](function(_0x9e3634){logger['info'](_0xb40c('0xc'),_0x198379,_0xb40c('0xd'));logger[_0xb40c('0xe')](_0xb40c('0xf'),_0x198379,_0xb40c('0xd'),JSON[_0xb40c('0x10')](_0x9e3634));if(_0x9e3634[_0xb40c('0x11')]){if(_0x9e3634[_0xb40c('0x11')]['code']===0x1f4){logger[_0xb40c('0x11')]('UserMailQueue,\x20%s,\x20%s',_0x198379,_0x9e3634['error'][_0xb40c('0x12')]);return _0x389402(_0x9e3634[_0xb40c('0x11')]['message']);}logger[_0xb40c('0x11')](_0xb40c('0xc'),_0x198379,_0x9e3634[_0xb40c('0x11')][_0xb40c('0x12')]);return _0x345f54(_0x9e3634[_0xb40c('0x11')]['message']);}else{logger[_0xb40c('0x13')](_0xb40c('0xc'),_0x198379,_0xb40c('0xd'));_0x345f54(_0x9e3634[_0xb40c('0x14')][_0xb40c('0x12')]);}})[_0xb40c('0x15')](function(_0x43c4e6){logger[_0xb40c('0x11')]('UserMailQueue,\x20%s,\x20%s',_0x198379,_0x43c4e6);_0x389402(_0x43c4e6);});});}
\ No newline at end of file