Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / mailServerIn / mailServerIn.rpc.js
index 3f2a2ca..aa5e894 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8319=['error','code','message','info','request\x20sent','catch','GetMailServerIn','MailServerIn','findAll','options','raw','where','map','include','model','attributes','then','lodash','util','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','MailServerIn,\x20%s,\x20%s','MailServerIn,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x3e415f,_0x3ca889){var _0x38c2bc=function(_0x3b3827){while(--_0x3b3827){_0x3e415f['push'](_0x3e415f['shift']());}};_0x38c2bc(++_0x3ca889);}(_0x8319,0xac));var _0x9831=function(_0x537d1b,_0x1cb235){_0x537d1b=_0x537d1b-0x0;var _0x3f6fdf=_0x8319[_0x537d1b];return _0x3f6fdf;};'use strict';var _=require(_0x9831('0x0'));var util=require(_0x9831('0x1'));var moment=require('moment');var BPromise=require(_0x9831('0x2'));var rs=require(_0x9831('0x3'));var fs=require('fs');var Redis=require(_0x9831('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x9831('0x5'))(_0x9831('0x6'));var config=require(_0x9831('0x7'));var jayson=require(_0x9831('0x8'));var client=jayson['client'][_0x9831('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x3f42f4,_0x428885,_0x4844ba){return new BPromise(function(_0x1e9d59,_0x72efd9){return client[_0x9831('0xa')](_0x3f42f4,_0x4844ba)['then'](function(_0x555f22){logger['info'](_0x9831('0xb'),_0x428885,'request\x20sent');logger['debug'](_0x9831('0xc'),_0x428885,'request\x20sent',JSON[_0x9831('0xd')](_0x555f22));if(_0x555f22[_0x9831('0xe')]){if(_0x555f22[_0x9831('0xe')][_0x9831('0xf')]===0x1f4){logger[_0x9831('0xe')](_0x9831('0xb'),_0x428885,_0x555f22[_0x9831('0xe')][_0x9831('0x10')]);return _0x72efd9(_0x555f22[_0x9831('0xe')][_0x9831('0x10')]);}logger[_0x9831('0xe')](_0x9831('0xb'),_0x428885,_0x555f22[_0x9831('0xe')][_0x9831('0x10')]);return _0x1e9d59(_0x555f22['error'][_0x9831('0x10')]);}else{logger[_0x9831('0x11')]('MailServerIn,\x20%s,\x20%s',_0x428885,_0x9831('0x12'));_0x1e9d59(_0x555f22['result'][_0x9831('0x10')]);}})[_0x9831('0x13')](function(_0x525c56){logger[_0x9831('0xe')]('MailServerIn,\x20%s,\x20%s',_0x428885,_0x525c56);_0x72efd9(_0x525c56);});});}exports[_0x9831('0x14')]=function(_0x411674){var _0x58fbc4=this;return new Promise(function(_0x35f4f2,_0x2e33c5){return db[_0x9831('0x15')][_0x9831('0x16')]({'raw':_0x411674[_0x9831('0x17')]?_0x411674[_0x9831('0x17')][_0x9831('0x18')]===undefined?!![]:![]:!![],'where':_0x411674[_0x9831('0x17')]?_0x411674['options'][_0x9831('0x19')]||null:null,'attributes':_0x411674['options']?_0x411674[_0x9831('0x17')]['attributes']||null:null,'limit':_0x411674[_0x9831('0x17')]?_0x411674[_0x9831('0x17')]['limit']||null:null,'include':_0x411674[_0x9831('0x17')]?_0x411674['options']['include']?_[_0x9831('0x1a')](_0x411674['options'][_0x9831('0x1b')],function(_0x1d3593){return{'model':db[_0x1d3593[_0x9831('0x1c')]],'as':_0x1d3593['as'],'attributes':_0x1d3593['attributes'],'include':_0x1d3593[_0x9831('0x1b')]?_['map'](_0x1d3593[_0x9831('0x1b')],function(_0x799eba){return{'model':db[_0x799eba[_0x9831('0x1c')]],'as':_0x799eba['as'],'attributes':_0x799eba['attributes'],'include':_0x799eba[_0x9831('0x1b')]?_[_0x9831('0x1a')](_0x799eba[_0x9831('0x1b')],function(_0x5b3d67){return{'model':db[_0x5b3d67[_0x9831('0x1c')]],'as':_0x5b3d67['as'],'attributes':_0x5b3d67[_0x9831('0x1d')]};}):[]};}):[]};}):[]:[]})[_0x9831('0x1e')](function(_0x4a1a63){logger[_0x9831('0x11')](_0x9831('0x14'),_0x411674);logger['debug'](_0x9831('0x14'),_0x411674,JSON[_0x9831('0xd')](_0x4a1a63));_0x35f4f2(_0x4a1a63);})['catch'](function(_0x56d99f){logger['error'](_0x9831('0x14'),_0x56d99f[_0x9831('0x10')],_0x411674);_0x2e33c5(_0x58fbc4['error'](0x1f4,_0x56d99f[_0x9831('0x10')]));});});};
\ No newline at end of file
+var _0x0545=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','info','MailServerIn,\x20%s,\x20%s','request\x20sent','debug','MailServerIn,\x20%s,\x20%s,\x20%s','error','message','catch','GetMailServerIn','MailServerIn','findAll','options','raw','where','attributes','limit','include','map','model','then','lodash','util','moment'];(function(_0x2d7cca,_0x104977){var _0x347b84=function(_0xfda4ea){while(--_0xfda4ea){_0x2d7cca['push'](_0x2d7cca['shift']());}};_0x347b84(++_0x104977);}(_0x0545,0x17e));var _0x5054=function(_0x4fdc16,_0x4236aa){_0x4fdc16=_0x4fdc16-0x0;var _0x5d851b=_0x0545[_0x4fdc16];return _0x5d851b;};'use strict';var _=require(_0x5054('0x0'));var util=require(_0x5054('0x1'));var moment=require(_0x5054('0x2'));var BPromise=require(_0x5054('0x3'));var rs=require(_0x5054('0x4'));var fs=require('fs');var Redis=require(_0x5054('0x5'));var db=require(_0x5054('0x6'))['db'];var utils=require(_0x5054('0x7'));var logger=require(_0x5054('0x8'))(_0x5054('0x9'));var config=require(_0x5054('0xa'));var jayson=require(_0x5054('0xb'));var client=jayson[_0x5054('0xc')][_0x5054('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x27b6e3,_0x2baaff,_0x3d33f0){return new BPromise(function(_0x2b8ec7,_0x20d481){return client[_0x5054('0xe')](_0x27b6e3,_0x3d33f0)['then'](function(_0x36b842){logger[_0x5054('0xf')](_0x5054('0x10'),_0x2baaff,_0x5054('0x11'));logger[_0x5054('0x12')](_0x5054('0x13'),_0x2baaff,_0x5054('0x11'),JSON['stringify'](_0x36b842));if(_0x36b842['error']){if(_0x36b842[_0x5054('0x14')]['code']===0x1f4){logger[_0x5054('0x14')](_0x5054('0x10'),_0x2baaff,_0x36b842[_0x5054('0x14')][_0x5054('0x15')]);return _0x20d481(_0x36b842[_0x5054('0x14')][_0x5054('0x15')]);}logger[_0x5054('0x14')](_0x5054('0x10'),_0x2baaff,_0x36b842[_0x5054('0x14')][_0x5054('0x15')]);return _0x2b8ec7(_0x36b842[_0x5054('0x14')][_0x5054('0x15')]);}else{logger['info'](_0x5054('0x10'),_0x2baaff,'request\x20sent');_0x2b8ec7(_0x36b842['result'][_0x5054('0x15')]);}})[_0x5054('0x16')](function(_0xcd8460){logger['error'](_0x5054('0x10'),_0x2baaff,_0xcd8460);_0x20d481(_0xcd8460);});});}exports[_0x5054('0x17')]=function(_0xf5a1ab){var _0x2a0a7f=this;return new Promise(function(_0x2fd711,_0xf9402){return db[_0x5054('0x18')][_0x5054('0x19')]({'raw':_0xf5a1ab[_0x5054('0x1a')]?_0xf5a1ab[_0x5054('0x1a')][_0x5054('0x1b')]===undefined?!![]:![]:!![],'where':_0xf5a1ab[_0x5054('0x1a')]?_0xf5a1ab[_0x5054('0x1a')][_0x5054('0x1c')]||null:null,'attributes':_0xf5a1ab[_0x5054('0x1a')]?_0xf5a1ab['options'][_0x5054('0x1d')]||null:null,'limit':_0xf5a1ab['options']?_0xf5a1ab[_0x5054('0x1a')][_0x5054('0x1e')]||null:null,'include':_0xf5a1ab[_0x5054('0x1a')]?_0xf5a1ab[_0x5054('0x1a')][_0x5054('0x1f')]?_[_0x5054('0x20')](_0xf5a1ab[_0x5054('0x1a')][_0x5054('0x1f')],function(_0x470b35){return{'model':db[_0x470b35['model']],'as':_0x470b35['as'],'attributes':_0x470b35[_0x5054('0x1d')],'include':_0x470b35['include']?_[_0x5054('0x20')](_0x470b35['include'],function(_0x264c48){return{'model':db[_0x264c48[_0x5054('0x21')]],'as':_0x264c48['as'],'attributes':_0x264c48[_0x5054('0x1d')],'include':_0x264c48['include']?_[_0x5054('0x20')](_0x264c48[_0x5054('0x1f')],function(_0x3603af){return{'model':db[_0x3603af[_0x5054('0x21')]],'as':_0x3603af['as'],'attributes':_0x3603af[_0x5054('0x1d')]};}):[]};}):[]};}):[]:[]})[_0x5054('0x22')](function(_0x452066){logger['info']('GetMailServerIn',_0xf5a1ab);logger['debug']('GetMailServerIn',_0xf5a1ab,JSON['stringify'](_0x452066));_0x2fd711(_0x452066);})[_0x5054('0x16')](function(_0x4326c5){logger[_0x5054('0x14')](_0x5054('0x17'),_0x4326c5[_0x5054('0x15')],_0xf5a1ab);_0xf9402(_0x2a0a7f[_0x5054('0x14')](0x1f4,_0x4326c5[_0x5054('0x15')]));});});};
\ No newline at end of file