Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / email / client.js
index 0bc20ab..25ab57f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xac31=['debug','rpc','error','message','result','catch','exports','jayson/promise','bluebird','../../config/logger','routing','client','http','Request','then'];(function(_0x290912,_0xc4350e){var _0x3d1544=function(_0x5d480b){while(--_0x5d480b){_0x290912['push'](_0x290912['shift']());}};_0x3d1544(++_0xc4350e);}(_0xac31,0xca));var _0x1ac3=function(_0x356ff3,_0x139f74){_0x356ff3=_0x356ff3-0x0;var _0x551fbe=_0xac31[_0x356ff3];return _0x551fbe;};'use strict';var jayson=require(_0x1ac3('0x0'));var BPromise=require(_0x1ac3('0x1'));var logger=require(_0x1ac3('0x2'))(_0x1ac3('0x3'));var client=jayson[_0x1ac3('0x4')][_0x1ac3('0x5')]({'port':0x2329});client[_0x1ac3('0x6')]=function(_0x59b42c,_0x33b5ab){return new BPromise(function(_0x434b5e,_0x4dcc96){return client['request'](_0x59b42c,_0x33b5ab)[_0x1ac3('0x7')](function(_0x20027f){logger[_0x1ac3('0x8')](_0x1ac3('0x9'),_0x1ac3('0x3'),_0x59b42c,_0x33b5ab,_0x20027f);if(_0x20027f['error']){logger[_0x1ac3('0xa')]('rpc',_0x1ac3('0x3'),_0x59b42c,_0x20027f[_0x1ac3('0xa')][_0x1ac3('0xb')],_0x33b5ab);return _0x4dcc96(_0x20027f['error'][_0x1ac3('0xb')]);}else{return _0x434b5e(_0x20027f[_0x1ac3('0xc')]);}})[_0x1ac3('0xd')](function(_0x24f0d2){logger[_0x1ac3('0xa')](_0x1ac3('0x9'),'routing',_0x59b42c,_0x24f0d2,_0x33b5ab);return _0x4dcc96(_0x24f0d2);});});};module[_0x1ac3('0xe')]=client;
\ No newline at end of file
+var _0x76f1=['client','http','request','rpc','error','message','result','catch','exports','jayson/promise','../../config/logger','routing'];(function(_0x39f331,_0xe550f){var _0x348d48=function(_0x2f87b5){while(--_0x2f87b5){_0x39f331['push'](_0x39f331['shift']());}};_0x348d48(++_0xe550f);}(_0x76f1,0xe1));var _0x176f=function(_0x2ff0b7,_0x4caee3){_0x2ff0b7=_0x2ff0b7-0x0;var _0x71165f=_0x76f1[_0x2ff0b7];return _0x71165f;};'use strict';var jayson=require(_0x176f('0x0'));var BPromise=require('bluebird');var logger=require(_0x176f('0x1'))(_0x176f('0x2'));var client=jayson[_0x176f('0x3')][_0x176f('0x4')]({'port':0x2329});client['Request']=function(_0x3413ac,_0x39e116){return new BPromise(function(_0x41ed21,_0x4a7dfa){return client[_0x176f('0x5')](_0x3413ac,_0x39e116)['then'](function(_0x49cca6){logger['debug'](_0x176f('0x6'),'routing',_0x3413ac,_0x39e116,_0x49cca6);if(_0x49cca6[_0x176f('0x7')]){logger[_0x176f('0x7')](_0x176f('0x6'),'routing',_0x3413ac,_0x49cca6[_0x176f('0x7')][_0x176f('0x8')],_0x39e116);return _0x4a7dfa(_0x49cca6['error'][_0x176f('0x8')]);}else{return _0x41ed21(_0x49cca6[_0x176f('0x9')]);}})[_0x176f('0xa')](function(_0xe4dad8){logger[_0x176f('0x7')]('rpc','routing',_0x3413ac,_0xe4dad8,_0x39e116);return _0x4a7dfa(_0xe4dad8);});});};module[_0x176f('0xb')]=client;
\ No newline at end of file