Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / smsTransferReport / smsTransferReport.rpc.js
index f887e35..5120adf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc3a8=['result','catch','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','then','info','request\x20sent','debug','stringify','error','code','message','SmsTransferReport,\x20%s,\x20%s'];(function(_0x20bce8,_0x4c9684){var _0xb9a2b3=function(_0x4a1dd3){while(--_0x4a1dd3){_0x20bce8['push'](_0x20bce8['shift']());}};_0xb9a2b3(++_0x4c9684);}(_0xc3a8,0xe8));var _0x8c3a=function(_0x1261c2,_0x3ef819){_0x1261c2=_0x1261c2-0x0;var _0x3aabd2=_0xc3a8[_0x1261c2];return _0x3aabd2;};'use strict';var _=require(_0x8c3a('0x0'));var util=require(_0x8c3a('0x1'));var moment=require(_0x8c3a('0x2'));var BPromise=require('bluebird');var rs=require(_0x8c3a('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x8c3a('0x4'))['db'];var utils=require(_0x8c3a('0x5'));var logger=require(_0x8c3a('0x6'))(_0x8c3a('0x7'));var config=require('../../config/environment');var jayson=require(_0x8c3a('0x8'));var client=jayson[_0x8c3a('0x9')][_0x8c3a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x170999,_0x2fae6f,_0x37047e){return new BPromise(function(_0x58a9b0,_0x174e6c){return client[_0x8c3a('0xb')](_0x170999,_0x37047e)[_0x8c3a('0xc')](function(_0x1593a7){logger[_0x8c3a('0xd')]('SmsTransferReport,\x20%s,\x20%s',_0x2fae6f,_0x8c3a('0xe'));logger[_0x8c3a('0xf')]('SmsTransferReport,\x20%s,\x20%s,\x20%s',_0x2fae6f,_0x8c3a('0xe'),JSON[_0x8c3a('0x10')](_0x1593a7));if(_0x1593a7[_0x8c3a('0x11')]){if(_0x1593a7[_0x8c3a('0x11')][_0x8c3a('0x12')]===0x1f4){logger[_0x8c3a('0x11')]('SmsTransferReport,\x20%s,\x20%s',_0x2fae6f,_0x1593a7[_0x8c3a('0x11')]['message']);return _0x174e6c(_0x1593a7['error'][_0x8c3a('0x13')]);}logger[_0x8c3a('0x11')](_0x8c3a('0x14'),_0x2fae6f,_0x1593a7[_0x8c3a('0x11')][_0x8c3a('0x13')]);return _0x58a9b0(_0x1593a7[_0x8c3a('0x11')][_0x8c3a('0x13')]);}else{logger[_0x8c3a('0xd')](_0x8c3a('0x14'),_0x2fae6f,'request\x20sent');_0x58a9b0(_0x1593a7[_0x8c3a('0x15')][_0x8c3a('0x13')]);}})[_0x8c3a('0x16')](function(_0x1ee355){logger[_0x8c3a('0x11')]('SmsTransferReport,\x20%s,\x20%s',_0x2fae6f,_0x1ee355);_0x174e6c(_0x1ee355);});});}
\ No newline at end of file
+var _0xbf07=['request','then','info','SmsTransferReport,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/environment'];(function(_0x48f791,_0x495109){var _0x4ef8c7=function(_0x446f63){while(--_0x446f63){_0x48f791['push'](_0x48f791['shift']());}};_0x4ef8c7(++_0x495109);}(_0xbf07,0x77));var _0x7bf0=function(_0x237546,_0xa81b26){_0x237546=_0x237546-0x0;var _0x233e29=_0xbf07[_0x237546];return _0x233e29;};'use strict';var _=require(_0x7bf0('0x0'));var util=require(_0x7bf0('0x1'));var moment=require(_0x7bf0('0x2'));var BPromise=require(_0x7bf0('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7bf0('0x4'));var db=require(_0x7bf0('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0x7bf0('0x6'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x44f656,_0x50e680,_0x263964){return new BPromise(function(_0x536214,_0x415291){return client[_0x7bf0('0x7')](_0x44f656,_0x263964)[_0x7bf0('0x8')](function(_0x2565c7){logger[_0x7bf0('0x9')](_0x7bf0('0xa'),_0x50e680,'request\x20sent');logger[_0x7bf0('0xb')]('SmsTransferReport,\x20%s,\x20%s,\x20%s',_0x50e680,_0x7bf0('0xc'),JSON[_0x7bf0('0xd')](_0x2565c7));if(_0x2565c7[_0x7bf0('0xe')]){if(_0x2565c7[_0x7bf0('0xe')][_0x7bf0('0xf')]===0x1f4){logger[_0x7bf0('0xe')](_0x7bf0('0xa'),_0x50e680,_0x2565c7[_0x7bf0('0xe')][_0x7bf0('0x10')]);return _0x415291(_0x2565c7[_0x7bf0('0xe')][_0x7bf0('0x10')]);}logger[_0x7bf0('0xe')](_0x7bf0('0xa'),_0x50e680,_0x2565c7[_0x7bf0('0xe')][_0x7bf0('0x10')]);return _0x536214(_0x2565c7[_0x7bf0('0xe')][_0x7bf0('0x10')]);}else{logger[_0x7bf0('0x9')](_0x7bf0('0xa'),_0x50e680,_0x7bf0('0xc'));_0x536214(_0x2565c7['result'][_0x7bf0('0x10')]);}})[_0x7bf0('0x11')](function(_0x187489){logger[_0x7bf0('0xe')](_0x7bf0('0xa'),_0x50e680,_0x187489);_0x415291(_0x187489);});});}
\ No newline at end of file