Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / smsTransferReport / smsTransferReport.rpc.js
index bf42df3..2d2c4df 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f4e=['info','SmsTransferReport,\x20%s,\x20%s','request\x20sent','SmsTransferReport,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','request','then'];(function(_0xb7b104,_0x460753){var _0xcfc490=function(_0x3f00c7){while(--_0x3f00c7){_0xb7b104['push'](_0xb7b104['shift']());}};_0xcfc490(++_0x460753);}(_0x5f4e,0x183));var _0xe5f4=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x5f4e[_0x502c7d];return _0x30b7ed;};'use strict';var _=require('lodash');var util=require(_0xe5f4('0x0'));var moment=require(_0xe5f4('0x1'));var BPromise=require('bluebird');var rs=require(_0xe5f4('0x2'));var fs=require('fs');var Redis=require(_0xe5f4('0x3'));var db=require(_0xe5f4('0x4'))['db'];var utils=require(_0xe5f4('0x5'));var logger=require(_0xe5f4('0x6'))('rpc');var config=require(_0xe5f4('0x7'));var jayson=require(_0xe5f4('0x8'));var client=jayson['client'][_0xe5f4('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x106a48,_0x141863,_0x2251fb){return new BPromise(function(_0x2cbcb2,_0x5aa6a7){return client[_0xe5f4('0xa')](_0x106a48,_0x2251fb)[_0xe5f4('0xb')](function(_0x900769){logger[_0xe5f4('0xc')](_0xe5f4('0xd'),_0x141863,_0xe5f4('0xe'));logger['debug'](_0xe5f4('0xf'),_0x141863,_0xe5f4('0xe'),JSON['stringify'](_0x900769));if(_0x900769['error']){if(_0x900769[_0xe5f4('0x10')][_0xe5f4('0x11')]===0x1f4){logger[_0xe5f4('0x10')](_0xe5f4('0xd'),_0x141863,_0x900769['error'][_0xe5f4('0x12')]);return _0x5aa6a7(_0x900769[_0xe5f4('0x10')][_0xe5f4('0x12')]);}logger['error'](_0xe5f4('0xd'),_0x141863,_0x900769['error'][_0xe5f4('0x12')]);return _0x2cbcb2(_0x900769['error'][_0xe5f4('0x12')]);}else{logger[_0xe5f4('0xc')](_0xe5f4('0xd'),_0x141863,'request\x20sent');_0x2cbcb2(_0x900769[_0xe5f4('0x13')][_0xe5f4('0x12')]);}})[_0xe5f4('0x14')](function(_0x192553){logger[_0xe5f4('0x10')]('SmsTransferReport,\x20%s,\x20%s',_0x141863,_0x192553);_0x5aa6a7(_0x192553);});});}
\ No newline at end of file
+var _0x57d4=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','debug','SmsTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','SmsTransferReport,\x20%s,\x20%s','message','info','catch','lodash','util','bluebird','randomstring','ioredis'];(function(_0x4d2f00,_0x4e94d5){var _0x2d7b7f=function(_0x18fa08){while(--_0x18fa08){_0x4d2f00['push'](_0x4d2f00['shift']());}};_0x2d7b7f(++_0x4e94d5);}(_0x57d4,0x78));var _0x457d=function(_0x58bd11,_0x4fc5a3){_0x58bd11=_0x58bd11-0x0;var _0x57bc76=_0x57d4[_0x58bd11];return _0x57bc76;};'use strict';var _=require(_0x457d('0x0'));var util=require(_0x457d('0x1'));var moment=require('moment');var BPromise=require(_0x457d('0x2'));var rs=require(_0x457d('0x3'));var fs=require('fs');var Redis=require(_0x457d('0x4'));var db=require(_0x457d('0x5'))['db'];var utils=require(_0x457d('0x6'));var logger=require(_0x457d('0x7'))(_0x457d('0x8'));var config=require(_0x457d('0x9'));var jayson=require(_0x457d('0xa'));var client=jayson[_0x457d('0xb')][_0x457d('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x5c6816,_0x1fc199,_0x381e22){return new BPromise(function(_0x4e32c0,_0x5dff56){return client[_0x457d('0xd')](_0x5c6816,_0x381e22)[_0x457d('0xe')](function(_0x127b89){logger['info']('SmsTransferReport,\x20%s,\x20%s',_0x1fc199,'request\x20sent');logger[_0x457d('0xf')](_0x457d('0x10'),_0x1fc199,_0x457d('0x11'),JSON[_0x457d('0x12')](_0x127b89));if(_0x127b89[_0x457d('0x13')]){if(_0x127b89[_0x457d('0x13')][_0x457d('0x14')]===0x1f4){logger[_0x457d('0x13')](_0x457d('0x15'),_0x1fc199,_0x127b89['error'][_0x457d('0x16')]);return _0x5dff56(_0x127b89[_0x457d('0x13')]['message']);}logger['error'](_0x457d('0x15'),_0x1fc199,_0x127b89[_0x457d('0x13')][_0x457d('0x16')]);return _0x4e32c0(_0x127b89[_0x457d('0x13')][_0x457d('0x16')]);}else{logger[_0x457d('0x17')](_0x457d('0x15'),_0x1fc199,_0x457d('0x11'));_0x4e32c0(_0x127b89['result'][_0x457d('0x16')]);}})[_0x457d('0x18')](function(_0x2c05ca){logger['error']('SmsTransferReport,\x20%s,\x20%s',_0x1fc199,_0x2c05ca);_0x5dff56(_0x2c05ca);});});}
\ No newline at end of file