Built motion from commit 7158bc59.|2.5.42
[motion2.git] / server / services / email / client.js
index 6518dcb..25e9886 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3a7d=['message','result','exports','../../config/logger','routing','http','request','rpc','error'];(function(_0x422905,_0x3bce3a){var _0x33dc6c=function(_0x4852c9){while(--_0x4852c9){_0x422905['push'](_0x422905['shift']());}};_0x33dc6c(++_0x3bce3a);}(_0x3a7d,0x108));var _0xd3a7=function(_0x162f44,_0x2b0eb3){_0x162f44=_0x162f44-0x0;var _0x510bae=_0x3a7d[_0x162f44];return _0x510bae;};'use strict';var jayson=require('jayson/promise');var BPromise=require('bluebird');var logger=require(_0xd3a7('0x0'))(_0xd3a7('0x1'));var client=jayson['client'][_0xd3a7('0x2')]({'port':0x2329});client['Request']=function(_0x361c64,_0x16d836){return new BPromise(function(_0xc0b65,_0x1c4f5f){return client[_0xd3a7('0x3')](_0x361c64,_0x16d836)['then'](function(_0x4b08bf){logger['debug'](_0xd3a7('0x4'),_0xd3a7('0x1'),_0x361c64,_0x16d836,_0x4b08bf);if(_0x4b08bf[_0xd3a7('0x5')]){logger[_0xd3a7('0x5')]('rpc','routing',_0x361c64,_0x4b08bf[_0xd3a7('0x5')][_0xd3a7('0x6')],_0x16d836);return _0x1c4f5f(_0x4b08bf['error'][_0xd3a7('0x6')]);}else{return _0xc0b65(_0x4b08bf[_0xd3a7('0x7')]);}})['catch'](function(_0x2e8f60){logger[_0xd3a7('0x5')](_0xd3a7('0x4'),_0xd3a7('0x1'),_0x361c64,_0x2e8f60,_0x16d836);return _0x1c4f5f(_0x2e8f60);});});};module[_0xd3a7('0x8')]=client;
\ No newline at end of file
+var _0xf9cb=['bluebird','client','Request','request','then','rpc','routing','error','message','result','catch','exports','jayson/promise'];(function(_0x53a390,_0x1c4aec){var _0x39e4d8=function(_0x42b900){while(--_0x42b900){_0x53a390['push'](_0x53a390['shift']());}};_0x39e4d8(++_0x1c4aec);}(_0xf9cb,0xa8));var _0xbf9c=function(_0x4ded65,_0xc8d7c1){_0x4ded65=_0x4ded65-0x0;var _0x5864fb=_0xf9cb[_0x4ded65];return _0x5864fb;};'use strict';var jayson=require(_0xbf9c('0x0'));var BPromise=require(_0xbf9c('0x1'));var logger=require('../../config/logger')('routing');var client=jayson[_0xbf9c('0x2')]['http']({'port':0x2329});client[_0xbf9c('0x3')]=function(_0x347947,_0x4ad126){return new BPromise(function(_0x38ed8e,_0x16d4b8){return client[_0xbf9c('0x4')](_0x347947,_0x4ad126)[_0xbf9c('0x5')](function(_0x1b99aa){logger['debug'](_0xbf9c('0x6'),_0xbf9c('0x7'),_0x347947,_0x4ad126,_0x1b99aa);if(_0x1b99aa[_0xbf9c('0x8')]){logger[_0xbf9c('0x8')](_0xbf9c('0x6'),_0xbf9c('0x7'),_0x347947,_0x1b99aa[_0xbf9c('0x8')][_0xbf9c('0x9')],_0x4ad126);return _0x16d4b8(_0x1b99aa[_0xbf9c('0x8')][_0xbf9c('0x9')]);}else{return _0x38ed8e(_0x1b99aa[_0xbf9c('0xa')]);}})[_0xbf9c('0xb')](function(_0x44d3f9){logger['error'](_0xbf9c('0x6'),_0xbf9c('0x7'),_0x347947,_0x44d3f9,_0x4ad126);return _0x16d4b8(_0x44d3f9);});});};module[_0xbf9c('0xc')]=client;
\ No newline at end of file