Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / email / client.js
index 003dd7b..cd2efa9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf44=['message','result','catch','exports','jayson/promise','bluebird','routing','client','http','Request','request','then','debug','rpc','error'];(function(_0x597ee3,_0x29c6c4){var _0x3cca43=function(_0x55e405){while(--_0x55e405){_0x597ee3['push'](_0x597ee3['shift']());}};_0x3cca43(++_0x29c6c4);}(_0xbf44,0x18a));var _0x4bf4=function(_0x24aa6c,_0x4ea57e){_0x24aa6c=_0x24aa6c-0x0;var _0x4f5969=_0xbf44[_0x24aa6c];return _0x4f5969;};'use strict';var jayson=require(_0x4bf4('0x0'));var BPromise=require(_0x4bf4('0x1'));var logger=require('../../config/logger')(_0x4bf4('0x2'));var client=jayson[_0x4bf4('0x3')][_0x4bf4('0x4')]({'port':0x2329});client[_0x4bf4('0x5')]=function(_0x266135,_0x49f9f2){return new BPromise(function(_0x1b37a2,_0x20ca8d){return client[_0x4bf4('0x6')](_0x266135,_0x49f9f2)[_0x4bf4('0x7')](function(_0x46a9af){logger[_0x4bf4('0x8')](_0x4bf4('0x9'),'routing',_0x266135,_0x49f9f2,_0x46a9af);if(_0x46a9af['error']){logger[_0x4bf4('0xa')](_0x4bf4('0x9'),_0x4bf4('0x2'),_0x266135,_0x46a9af[_0x4bf4('0xa')][_0x4bf4('0xb')],_0x49f9f2);return _0x20ca8d(_0x46a9af[_0x4bf4('0xa')]['message']);}else{return _0x1b37a2(_0x46a9af[_0x4bf4('0xc')]);}})[_0x4bf4('0xd')](function(_0x21dae3){logger[_0x4bf4('0xa')](_0x4bf4('0x9'),_0x4bf4('0x2'),_0x266135,_0x21dae3,_0x49f9f2);return _0x20ca8d(_0x21dae3);});});};module[_0x4bf4('0xe')]=client;
\ No newline at end of file
+var _0xf40c=['then','rpc','error','message','result','exports','jayson/promise','bluebird','../../config/logger','routing','client','http','request'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf40c,0x18c));var _0xcf40=function(_0x2a6809,_0x44edde){_0x2a6809=_0x2a6809-0x0;var _0x11c371=_0xf40c[_0x2a6809];return _0x11c371;};'use strict';var jayson=require(_0xcf40('0x0'));var BPromise=require(_0xcf40('0x1'));var logger=require(_0xcf40('0x2'))(_0xcf40('0x3'));var client=jayson[_0xcf40('0x4')][_0xcf40('0x5')]({'port':0x2329});client['Request']=function(_0x1bbdee,_0x480ff5){return new BPromise(function(_0x22cc9e,_0x33eb14){return client[_0xcf40('0x6')](_0x1bbdee,_0x480ff5)[_0xcf40('0x7')](function(_0x5a5d1a){logger['debug'](_0xcf40('0x8'),_0xcf40('0x3'),_0x1bbdee,_0x480ff5,_0x5a5d1a);if(_0x5a5d1a[_0xcf40('0x9')]){logger[_0xcf40('0x9')](_0xcf40('0x8'),'routing',_0x1bbdee,_0x5a5d1a[_0xcf40('0x9')]['message'],_0x480ff5);return _0x33eb14(_0x5a5d1a[_0xcf40('0x9')][_0xcf40('0xa')]);}else{return _0x22cc9e(_0x5a5d1a[_0xcf40('0xb')]);}})['catch'](function(_0x3d687e){logger['error']('rpc',_0xcf40('0x3'),_0x1bbdee,_0x3d687e,_0x480ff5);return _0x33eb14(_0x3d687e);});});};module[_0xcf40('0xc')]=client;
\ No newline at end of file