Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / faxTransferReport / faxTransferReport.rpc.js
index cf49992..ead6cee 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x71e0=['util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','request','info','FaxTransferReport,\x20%s,\x20%s','request\x20sent','FaxTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash'];(function(_0x5c6951,_0x507abb){var _0x5ee145=function(_0x4f8b75){while(--_0x4f8b75){_0x5c6951['push'](_0x5c6951['shift']());}};_0x5ee145(++_0x507abb);}(_0x71e0,0xf6));var _0x071e=function(_0x2b4912,_0x147d1c){_0x2b4912=_0x2b4912-0x0;var _0x5a773a=_0x71e0[_0x2b4912];return _0x5a773a;};'use strict';var _=require(_0x071e('0x0'));var util=require(_0x071e('0x1'));var moment=require('moment');var BPromise=require(_0x071e('0x2'));var rs=require(_0x071e('0x3'));var fs=require('fs');var Redis=require(_0x071e('0x4'));var db=require(_0x071e('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x071e('0x6'))('rpc');var config=require(_0x071e('0x7'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x2f81b5,_0x3db8bb,_0x103f89){return new BPromise(function(_0x5b565d,_0x384ff4){return client[_0x071e('0x8')](_0x2f81b5,_0x103f89)['then'](function(_0x4c6bb8){logger[_0x071e('0x9')](_0x071e('0xa'),_0x3db8bb,_0x071e('0xb'));logger['debug'](_0x071e('0xc'),_0x3db8bb,'request\x20sent',JSON[_0x071e('0xd')](_0x4c6bb8));if(_0x4c6bb8['error']){if(_0x4c6bb8[_0x071e('0xe')][_0x071e('0xf')]===0x1f4){logger[_0x071e('0xe')](_0x071e('0xa'),_0x3db8bb,_0x4c6bb8[_0x071e('0xe')][_0x071e('0x10')]);return _0x384ff4(_0x4c6bb8[_0x071e('0xe')][_0x071e('0x10')]);}logger[_0x071e('0xe')](_0x071e('0xa'),_0x3db8bb,_0x4c6bb8['error'][_0x071e('0x10')]);return _0x5b565d(_0x4c6bb8[_0x071e('0xe')][_0x071e('0x10')]);}else{logger['info']('FaxTransferReport,\x20%s,\x20%s',_0x3db8bb,_0x071e('0xb'));_0x5b565d(_0x4c6bb8[_0x071e('0x11')]['message']);}})[_0x071e('0x12')](function(_0x8abac6){logger[_0x071e('0xe')](_0x071e('0xa'),_0x3db8bb,_0x8abac6);_0x384ff4(_0x8abac6);});});}
\ No newline at end of file
+var _0xdb10=['moment','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','FaxTransferReport,\x20%s,\x20%s','debug','request\x20sent','error','message','result','lodash','util'];(function(_0x2a6cb3,_0x5a5c62){var _0x27b2c6=function(_0x1dd615){while(--_0x1dd615){_0x2a6cb3['push'](_0x2a6cb3['shift']());}};_0x27b2c6(++_0x5a5c62);}(_0xdb10,0x1ae));var _0x0db1=function(_0x51beba,_0x202d19){_0x51beba=_0x51beba-0x0;var _0x167ee0=_0xdb10[_0x51beba];return _0x167ee0;};'use strict';var _=require(_0x0db1('0x0'));var util=require(_0x0db1('0x1'));var moment=require(_0x0db1('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x0db1('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x0db1('0x4'));var logger=require(_0x0db1('0x5'))(_0x0db1('0x6'));var config=require(_0x0db1('0x7'));var jayson=require(_0x0db1('0x8'));var client=jayson[_0x0db1('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x10ec62,_0x35bf4e,_0xd7692f){return new BPromise(function(_0x4971ec,_0x98624d){return client[_0x0db1('0xa')](_0x10ec62,_0xd7692f)['then'](function(_0xa7405f){logger[_0x0db1('0xb')](_0x0db1('0xc'),_0x35bf4e,'request\x20sent');logger[_0x0db1('0xd')]('FaxTransferReport,\x20%s,\x20%s,\x20%s',_0x35bf4e,_0x0db1('0xe'),JSON['stringify'](_0xa7405f));if(_0xa7405f[_0x0db1('0xf')]){if(_0xa7405f[_0x0db1('0xf')]['code']===0x1f4){logger[_0x0db1('0xf')](_0x0db1('0xc'),_0x35bf4e,_0xa7405f[_0x0db1('0xf')][_0x0db1('0x10')]);return _0x98624d(_0xa7405f[_0x0db1('0xf')]['message']);}logger[_0x0db1('0xf')](_0x0db1('0xc'),_0x35bf4e,_0xa7405f[_0x0db1('0xf')]['message']);return _0x4971ec(_0xa7405f[_0x0db1('0xf')]['message']);}else{logger[_0x0db1('0xb')]('FaxTransferReport,\x20%s,\x20%s',_0x35bf4e,'request\x20sent');_0x4971ec(_0xa7405f[_0x0db1('0x11')]['message']);}})['catch'](function(_0xa335b8){logger[_0x0db1('0xf')](_0x0db1('0xc'),_0x35bf4e,_0xa335b8);_0x98624d(_0xa335b8);});});}
\ No newline at end of file