Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / services / email / client.js
index f86eec5..5c0b51a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9b2a=['request','then','rpc','error','message','catch','exports','jayson/promise','../../config/logger','routing','client','Request'];(function(_0x4bf73b,_0x13f15f){var _0x560f05=function(_0x39831f){while(--_0x39831f){_0x4bf73b['push'](_0x4bf73b['shift']());}};_0x560f05(++_0x13f15f);}(_0x9b2a,0x127));var _0xa9b2=function(_0x341a7d,_0x9a2a5e){_0x341a7d=_0x341a7d-0x0;var _0x21481b=_0x9b2a[_0x341a7d];return _0x21481b;};'use strict';var jayson=require(_0xa9b2('0x0'));var BPromise=require('bluebird');var logger=require(_0xa9b2('0x1'))(_0xa9b2('0x2'));var client=jayson[_0xa9b2('0x3')]['http']({'port':0x2329});client[_0xa9b2('0x4')]=function(_0x35ff38,_0x50f884){return new BPromise(function(_0x524e4b,_0x31b8b3){return client[_0xa9b2('0x5')](_0x35ff38,_0x50f884)[_0xa9b2('0x6')](function(_0xd7801e){logger['debug'](_0xa9b2('0x7'),_0xa9b2('0x2'),_0x35ff38,_0x50f884,_0xd7801e);if(_0xd7801e[_0xa9b2('0x8')]){logger['error'](_0xa9b2('0x7'),_0xa9b2('0x2'),_0x35ff38,_0xd7801e[_0xa9b2('0x8')][_0xa9b2('0x9')],_0x50f884);return _0x31b8b3(_0xd7801e[_0xa9b2('0x8')][_0xa9b2('0x9')]);}else{return _0x524e4b(_0xd7801e['result']);}})[_0xa9b2('0xa')](function(_0x590cb0){logger['error']('rpc',_0xa9b2('0x2'),_0x35ff38,_0x590cb0,_0x50f884);return _0x31b8b3(_0x590cb0);});});};module[_0xa9b2('0xb')]=client;
\ No newline at end of file
+var _0x5d07=['http','Request','error','message','result','catch','rpc','jayson/promise','bluebird','../../config/logger','routing','client'];(function(_0x33c46a,_0x2546c7){var _0x2a0d7e=function(_0x5483ed){while(--_0x5483ed){_0x33c46a['push'](_0x33c46a['shift']());}};_0x2a0d7e(++_0x2546c7);}(_0x5d07,0xaf));var _0x75d0=function(_0x621b44,_0x1bd9e1){_0x621b44=_0x621b44-0x0;var _0x44c647=_0x5d07[_0x621b44];return _0x44c647;};'use strict';var jayson=require(_0x75d0('0x0'));var BPromise=require(_0x75d0('0x1'));var logger=require(_0x75d0('0x2'))(_0x75d0('0x3'));var client=jayson[_0x75d0('0x4')][_0x75d0('0x5')]({'port':0x2329});client[_0x75d0('0x6')]=function(_0x130483,_0x201cf9){return new BPromise(function(_0x59a04a,_0x4e3d6f){return client['request'](_0x130483,_0x201cf9)['then'](function(_0x3459fd){logger['debug']('rpc',_0x75d0('0x3'),_0x130483,_0x201cf9,_0x3459fd);if(_0x3459fd['error']){logger[_0x75d0('0x7')]('rpc',_0x75d0('0x3'),_0x130483,_0x3459fd[_0x75d0('0x7')][_0x75d0('0x8')],_0x201cf9);return _0x4e3d6f(_0x3459fd[_0x75d0('0x7')][_0x75d0('0x8')]);}else{return _0x59a04a(_0x3459fd[_0x75d0('0x9')]);}})[_0x75d0('0xa')](function(_0x331c04){logger['error'](_0x75d0('0xb'),_0x75d0('0x3'),_0x130483,_0x331c04,_0x201cf9);return _0x4e3d6f(_0x331c04);});});};module['exports']=client;
\ No newline at end of file