Built motion from commit 97153652.|2.6.26
[motion2.git] / server / services / email / client.js
index b082706..8265af2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3cfa=['client','http','Request','debug','error','rpc','message','catch','exports','jayson/promise','bluebird','routing'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0x3cfa,0x129));var _0xa3cf=function(_0x599347,_0x35a224){_0x599347=_0x599347-0x0;var _0x524fe9=_0x3cfa[_0x599347];return _0x524fe9;};'use strict';var jayson=require(_0xa3cf('0x0'));var BPromise=require(_0xa3cf('0x1'));var logger=require('../../config/logger')(_0xa3cf('0x2'));var client=jayson[_0xa3cf('0x3')][_0xa3cf('0x4')]({'port':0x2329});client[_0xa3cf('0x5')]=function(_0x52e0c2,_0x5d965c){return new BPromise(function(_0x87c188,_0x189212){return client['request'](_0x52e0c2,_0x5d965c)['then'](function(_0x1fc5a5){logger[_0xa3cf('0x6')]('rpc',_0xa3cf('0x2'),_0x52e0c2,_0x5d965c,_0x1fc5a5);if(_0x1fc5a5['error']){logger[_0xa3cf('0x7')](_0xa3cf('0x8'),'routing',_0x52e0c2,_0x1fc5a5['error'][_0xa3cf('0x9')],_0x5d965c);return _0x189212(_0x1fc5a5[_0xa3cf('0x7')][_0xa3cf('0x9')]);}else{return _0x87c188(_0x1fc5a5['result']);}})[_0xa3cf('0xa')](function(_0x4e6f72){logger[_0xa3cf('0x7')](_0xa3cf('0x8'),'routing',_0x52e0c2,_0x4e6f72,_0x5d965c);return _0x189212(_0x4e6f72);});});};module[_0xa3cf('0xb')]=client;
\ No newline at end of file
+var _0x9db3=['../../config/logger','routing','Request','debug','error','message','result','catch','rpc','exports','bluebird'];(function(_0x3439ea,_0x3c68ba){var _0x3900a3=function(_0x38f9a5){while(--_0x38f9a5){_0x3439ea['push'](_0x3439ea['shift']());}};_0x3900a3(++_0x3c68ba);}(_0x9db3,0x99));var _0x39db=function(_0x5c2e3e,_0x26ecd3){_0x5c2e3e=_0x5c2e3e-0x0;var _0x53f64a=_0x9db3[_0x5c2e3e];return _0x53f64a;};'use strict';var jayson=require('jayson/promise');var BPromise=require(_0x39db('0x0'));var logger=require(_0x39db('0x1'))(_0x39db('0x2'));var client=jayson['client']['http']({'port':0x2329});client[_0x39db('0x3')]=function(_0x126c43,_0x5f46cd){return new BPromise(function(_0x70caea,_0xe8c329){return client['request'](_0x126c43,_0x5f46cd)['then'](function(_0x338cd3){logger[_0x39db('0x4')]('rpc',_0x39db('0x2'),_0x126c43,_0x5f46cd,_0x338cd3);if(_0x338cd3[_0x39db('0x5')]){logger[_0x39db('0x5')]('rpc',_0x39db('0x2'),_0x126c43,_0x338cd3['error'][_0x39db('0x6')],_0x5f46cd);return _0xe8c329(_0x338cd3['error'][_0x39db('0x6')]);}else{return _0x70caea(_0x338cd3[_0x39db('0x7')]);}})[_0x39db('0x8')](function(_0x167376){logger['error'](_0x39db('0x9'),'routing',_0x126c43,_0x167376,_0x5f46cd);return _0xe8c329(_0x167376);});});};module[_0x39db('0xa')]=client;
\ No newline at end of file