Built motion from commit b5a10faa.|2.6.13
[motion2.git] / server / api / faxTransferReport / faxTransferReport.rpc.js
index 341f66a..ed30ccd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x51f9=['request','info','FaxTransferReport,\x20%s,\x20%s','request\x20sent','debug','FaxTransferReport,\x20%s,\x20%s,\x20%s','error','message','result','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http'];(function(_0x192df5,_0x170e10){var _0x3e8b61=function(_0x15c1f9){while(--_0x15c1f9){_0x192df5['push'](_0x192df5['shift']());}};_0x3e8b61(++_0x170e10);}(_0x51f9,0x6d));var _0x951f=function(_0x1db481,_0x1627b2){_0x1db481=_0x1db481-0x0;var _0x3db95b=_0x51f9[_0x1db481];return _0x3db95b;};'use strict';var _=require('lodash');var util=require(_0x951f('0x0'));var moment=require(_0x951f('0x1'));var BPromise=require(_0x951f('0x2'));var rs=require(_0x951f('0x3'));var fs=require('fs');var Redis=require(_0x951f('0x4'));var db=require(_0x951f('0x5'))['db'];var utils=require(_0x951f('0x6'));var logger=require(_0x951f('0x7'))(_0x951f('0x8'));var config=require('../../config/environment');var jayson=require(_0x951f('0x9'));var client=jayson['client'][_0x951f('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2bdf7e,_0x1a52d4,_0x56e756){return new BPromise(function(_0x3ebf42,_0x520b2a){return client[_0x951f('0xb')](_0x2bdf7e,_0x56e756)['then'](function(_0x23127f){logger[_0x951f('0xc')](_0x951f('0xd'),_0x1a52d4,_0x951f('0xe'));logger[_0x951f('0xf')](_0x951f('0x10'),_0x1a52d4,_0x951f('0xe'),JSON['stringify'](_0x23127f));if(_0x23127f[_0x951f('0x11')]){if(_0x23127f[_0x951f('0x11')]['code']===0x1f4){logger['error']('FaxTransferReport,\x20%s,\x20%s',_0x1a52d4,_0x23127f['error'][_0x951f('0x12')]);return _0x520b2a(_0x23127f[_0x951f('0x11')]['message']);}logger['error'](_0x951f('0xd'),_0x1a52d4,_0x23127f[_0x951f('0x11')][_0x951f('0x12')]);return _0x3ebf42(_0x23127f[_0x951f('0x11')][_0x951f('0x12')]);}else{logger[_0x951f('0xc')](_0x951f('0xd'),_0x1a52d4,_0x951f('0xe'));_0x3ebf42(_0x23127f[_0x951f('0x13')][_0x951f('0x12')]);}})['catch'](function(_0x506bca){logger[_0x951f('0x11')](_0x951f('0xd'),_0x1a52d4,_0x506bca);_0x520b2a(_0x506bca);});});}
\ No newline at end of file
+var _0xf8cd=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','FaxTransferReport,\x20%s,\x20%s','request\x20sent','debug','FaxTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','util'];(function(_0xd39959,_0x302d09){var _0x1ff69c=function(_0x17c97f){while(--_0x17c97f){_0xd39959['push'](_0xd39959['shift']());}};_0x1ff69c(++_0x302d09);}(_0xf8cd,0x1c6));var _0xdf8c=function(_0x217fdb,_0x57826d){_0x217fdb=_0x217fdb-0x0;var _0x4cb03e=_0xf8cd[_0x217fdb];return _0x4cb03e;};'use strict';var _=require(_0xdf8c('0x0'));var util=require(_0xdf8c('0x1'));var moment=require('moment');var BPromise=require(_0xdf8c('0x2'));var rs=require(_0xdf8c('0x3'));var fs=require('fs');var Redis=require(_0xdf8c('0x4'));var db=require(_0xdf8c('0x5'))['db'];var utils=require(_0xdf8c('0x6'));var logger=require(_0xdf8c('0x7'))('rpc');var config=require(_0xdf8c('0x8'));var jayson=require(_0xdf8c('0x9'));var client=jayson[_0xdf8c('0xa')][_0xdf8c('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x41f67e,_0x5b4948,_0x4b7787){return new BPromise(function(_0xd9319b,_0x3a10fc){return client[_0xdf8c('0xc')](_0x41f67e,_0x4b7787)[_0xdf8c('0xd')](function(_0x1e6e30){logger['info'](_0xdf8c('0xe'),_0x5b4948,_0xdf8c('0xf'));logger[_0xdf8c('0x10')](_0xdf8c('0x11'),_0x5b4948,'request\x20sent',JSON[_0xdf8c('0x12')](_0x1e6e30));if(_0x1e6e30[_0xdf8c('0x13')]){if(_0x1e6e30[_0xdf8c('0x13')]['code']===0x1f4){logger[_0xdf8c('0x13')](_0xdf8c('0xe'),_0x5b4948,_0x1e6e30[_0xdf8c('0x13')][_0xdf8c('0x14')]);return _0x3a10fc(_0x1e6e30[_0xdf8c('0x13')][_0xdf8c('0x14')]);}logger[_0xdf8c('0x13')](_0xdf8c('0xe'),_0x5b4948,_0x1e6e30['error']['message']);return _0xd9319b(_0x1e6e30[_0xdf8c('0x13')][_0xdf8c('0x14')]);}else{logger[_0xdf8c('0x15')]('FaxTransferReport,\x20%s,\x20%s',_0x5b4948,'request\x20sent');_0xd9319b(_0x1e6e30[_0xdf8c('0x16')]['message']);}})[_0xdf8c('0x17')](function(_0x410607){logger['error'](_0xdf8c('0xe'),_0x5b4948,_0x410607);_0x3a10fc(_0x410607);});});}
\ No newline at end of file