Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / services / email / client.js
index a3f5699..885fc70 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x130d=['debug','rpc','routing','error','message','result','catch','exports','jayson/promise','../../config/logger','client','http','Request','request','then'];(function(_0x1bdc83,_0xfa61ab){var _0x101d6c=function(_0x414481){while(--_0x414481){_0x1bdc83['push'](_0x1bdc83['shift']());}};_0x101d6c(++_0xfa61ab);}(_0x130d,0x125));var _0xd130=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x130d[_0x3dd15e];return _0x231fd0;};'use strict';var jayson=require(_0xd130('0x0'));var BPromise=require('bluebird');var logger=require(_0xd130('0x1'))('routing');var client=jayson[_0xd130('0x2')][_0xd130('0x3')]({'port':0x2329});client[_0xd130('0x4')]=function(_0x77d691,_0x321e49){return new BPromise(function(_0x2bc19d,_0x46beb8){return client[_0xd130('0x5')](_0x77d691,_0x321e49)[_0xd130('0x6')](function(_0x4689a8){logger[_0xd130('0x7')](_0xd130('0x8'),_0xd130('0x9'),_0x77d691,_0x321e49,_0x4689a8);if(_0x4689a8[_0xd130('0xa')]){logger['error'](_0xd130('0x8'),'routing',_0x77d691,_0x4689a8[_0xd130('0xa')][_0xd130('0xb')],_0x321e49);return _0x46beb8(_0x4689a8[_0xd130('0xa')]['message']);}else{return _0x2bc19d(_0x4689a8[_0xd130('0xc')]);}})[_0xd130('0xd')](function(_0x4dba28){logger['error'](_0xd130('0x8'),'routing',_0x77d691,_0x4dba28,_0x321e49);return _0x46beb8(_0x4dba28);});});};module[_0xd130('0xe')]=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