Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / services / email / client.js
index 03e21ac..885fc70 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa38d=['debug','rpc','error','message','result','exports','jayson/promise','../../config/logger','routing','Request','request'];(function(_0x206504,_0x4d9c54){var _0x2d528d=function(_0x2c4785){while(--_0x2c4785){_0x206504['push'](_0x206504['shift']());}};_0x2d528d(++_0x4d9c54);}(_0xa38d,0x1be));var _0xda38=function(_0x506a53,_0x22d425){_0x506a53=_0x506a53-0x0;var _0xcb6b65=_0xa38d[_0x506a53];return _0xcb6b65;};'use strict';var jayson=require(_0xda38('0x0'));var BPromise=require('bluebird');var logger=require(_0xda38('0x1'))(_0xda38('0x2'));var client=jayson['client']['http']({'port':0x2329});client[_0xda38('0x3')]=function(_0x5b8496,_0x4b277c){return new BPromise(function(_0x1aba63,_0x12aa5c){return client[_0xda38('0x4')](_0x5b8496,_0x4b277c)['then'](function(_0x58aa4b){logger[_0xda38('0x5')](_0xda38('0x6'),'routing',_0x5b8496,_0x4b277c,_0x58aa4b);if(_0x58aa4b[_0xda38('0x7')]){logger['error']('rpc',_0xda38('0x2'),_0x5b8496,_0x58aa4b['error'][_0xda38('0x8')],_0x4b277c);return _0x12aa5c(_0x58aa4b['error'][_0xda38('0x8')]);}else{return _0x1aba63(_0x58aa4b[_0xda38('0x9')]);}})['catch'](function(_0x5ca618){logger['error'](_0xda38('0x6'),_0xda38('0x2'),_0x5b8496,_0x5ca618,_0x4b277c);return _0x12aa5c(_0x5ca618);});});};module[_0xda38('0xa')]=client;
\ No newline at end of file
+var _0x65f5=['request','debug','rpc','error','message','result','catch','exports','bluebird','../../config/logger','routing','client','http'];(function(_0x5597a4,_0x161921){var _0x26ed19=function(_0x245cf7){while(--_0x245cf7){_0x5597a4['push'](_0x5597a4['shift']());}};_0x26ed19(++_0x161921);}(_0x65f5,0x126));var _0x565f=function(_0x5aac34,_0x280cab){_0x5aac34=_0x5aac34-0x0;var _0xf3540c=_0x65f5[_0x5aac34];return _0xf3540c;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0x565f('0x0'));var logger=require(_0x565f('0x1'))(_0x565f('0x2'));var client=jayson[_0x565f('0x3')][_0x565f('0x4')]({'port':0x2329});client['Request']=function(_0x119e14,_0x544217){return new BPromise(function(_0x359fef,_0x37da76){return client[_0x565f('0x5')](_0x119e14,_0x544217)['then'](function(_0x102b89){logger[_0x565f('0x6')](_0x565f('0x7'),_0x565f('0x2'),_0x119e14,_0x544217,_0x102b89);if(_0x102b89[_0x565f('0x8')]){logger['error']('rpc',_0x565f('0x2'),_0x119e14,_0x102b89[_0x565f('0x8')]['message'],_0x544217);return _0x37da76(_0x102b89[_0x565f('0x8')][_0x565f('0x9')]);}else{return _0x359fef(_0x102b89[_0x565f('0xa')]);}})[_0x565f('0xb')](function(_0x4213fa){logger[_0x565f('0x8')](_0x565f('0x7'),_0x565f('0x2'),_0x119e14,_0x4213fa,_0x544217);return _0x37da76(_0x4213fa);});});};module[_0x565f('0xc')]=client;
\ No newline at end of file