Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / services / email / client.js
index f7358ec..885fc70 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8d97=['bluebird','../../config/logger','client','http','Request','request','then','routing','error','rpc','message','result','exports'];(function(_0x1fdb40,_0x51351c){var _0x281f93=function(_0x35eebe){while(--_0x35eebe){_0x1fdb40['push'](_0x1fdb40['shift']());}};_0x281f93(++_0x51351c);}(_0x8d97,0x82));var _0x78d9=function(_0x1b4a36,_0x3a5a57){_0x1b4a36=_0x1b4a36-0x0;var _0x3477a9=_0x8d97[_0x1b4a36];return _0x3477a9;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0x78d9('0x0'));var logger=require(_0x78d9('0x1'))('routing');var client=jayson[_0x78d9('0x2')][_0x78d9('0x3')]({'port':0x2329});client[_0x78d9('0x4')]=function(_0xba5b3,_0x1b690f){return new BPromise(function(_0x5f4582,_0x2125d0){return client[_0x78d9('0x5')](_0xba5b3,_0x1b690f)[_0x78d9('0x6')](function(_0x59b38c){logger['debug']('rpc',_0x78d9('0x7'),_0xba5b3,_0x1b690f,_0x59b38c);if(_0x59b38c[_0x78d9('0x8')]){logger[_0x78d9('0x8')](_0x78d9('0x9'),_0x78d9('0x7'),_0xba5b3,_0x59b38c[_0x78d9('0x8')]['message'],_0x1b690f);return _0x2125d0(_0x59b38c[_0x78d9('0x8')][_0x78d9('0xa')]);}else{return _0x5f4582(_0x59b38c[_0x78d9('0xb')]);}})['catch'](function(_0x5e6ffe){logger[_0x78d9('0x8')](_0x78d9('0x9'),_0x78d9('0x7'),_0xba5b3,_0x5e6ffe,_0x1b690f);return _0x2125d0(_0x5e6ffe);});});};module[_0x78d9('0xc')]=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