Built motion from commit 42801a18.|2.6.28
[motion2.git] / server / api / smsTransferReport / smsTransferReport.rpc.js
index 136bd5d..a9bb696 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf360=['error','message','result','catch','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','SmsTransferReport,\x20%s,\x20%s','request\x20sent','SmsTransferReport,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x51f575,_0x49918f){var _0x47e06d=function(_0x31c535){while(--_0x31c535){_0x51f575['push'](_0x51f575['shift']());}};_0x47e06d(++_0x49918f);}(_0xf360,0x9e));var _0x0f36=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xf360[_0x4565bf];return _0x5610ba;};'use strict';var _=require(_0x0f36('0x0'));var util=require(_0x0f36('0x1'));var moment=require(_0x0f36('0x2'));var BPromise=require('bluebird');var rs=require(_0x0f36('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x0f36('0x4'))['db'];var utils=require(_0x0f36('0x5'));var logger=require(_0x0f36('0x6'))('rpc');var config=require(_0x0f36('0x7'));var jayson=require(_0x0f36('0x8'));var client=jayson[_0x0f36('0x9')][_0x0f36('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2db632,_0x259878,_0x2d4bb7){return new BPromise(function(_0x370193,_0x5c356f){return client[_0x0f36('0xb')](_0x2db632,_0x2d4bb7)[_0x0f36('0xc')](function(_0x47718b){logger[_0x0f36('0xd')](_0x0f36('0xe'),_0x259878,_0x0f36('0xf'));logger['debug'](_0x0f36('0x10'),_0x259878,_0x0f36('0xf'),JSON[_0x0f36('0x11')](_0x47718b));if(_0x47718b['error']){if(_0x47718b[_0x0f36('0x12')]['code']===0x1f4){logger['error'](_0x0f36('0xe'),_0x259878,_0x47718b[_0x0f36('0x12')]['message']);return _0x5c356f(_0x47718b[_0x0f36('0x12')][_0x0f36('0x13')]);}logger[_0x0f36('0x12')](_0x0f36('0xe'),_0x259878,_0x47718b['error'][_0x0f36('0x13')]);return _0x370193(_0x47718b['error'][_0x0f36('0x13')]);}else{logger[_0x0f36('0xd')](_0x0f36('0xe'),_0x259878,_0x0f36('0xf'));_0x370193(_0x47718b[_0x0f36('0x14')][_0x0f36('0x13')]);}})[_0x0f36('0x15')](function(_0x486739){logger['error'](_0x0f36('0xe'),_0x259878,_0x486739);_0x5c356f(_0x486739);});});}
\ No newline at end of file
+var _0xd8af=['bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','client','request','then','info','SmsTransferReport,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment'];(function(_0x3db745,_0x154d72){var _0x26e855=function(_0x41cba4){while(--_0x41cba4){_0x3db745['push'](_0x3db745['shift']());}};_0x26e855(++_0x154d72);}(_0xd8af,0x18d));var _0xfd8a=function(_0x4f7543,_0xd9c8cb){_0x4f7543=_0x4f7543-0x0;var _0x27868c=_0xd8af[_0x4f7543];return _0x27868c;};'use strict';var _=require(_0xfd8a('0x0'));var util=require(_0xfd8a('0x1'));var moment=require(_0xfd8a('0x2'));var BPromise=require(_0xfd8a('0x3'));var rs=require(_0xfd8a('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xfd8a('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xfd8a('0x6'))(_0xfd8a('0x7'));var config=require(_0xfd8a('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xfd8a('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x8b725c,_0xdb72fc,_0x31fdfc){return new BPromise(function(_0x1d1fb4,_0x5d2f8d){return client[_0xfd8a('0xa')](_0x8b725c,_0x31fdfc)[_0xfd8a('0xb')](function(_0x2c7d72){logger[_0xfd8a('0xc')](_0xfd8a('0xd'),_0xdb72fc,_0xfd8a('0xe'));logger['debug']('SmsTransferReport,\x20%s,\x20%s,\x20%s',_0xdb72fc,_0xfd8a('0xe'),JSON[_0xfd8a('0xf')](_0x2c7d72));if(_0x2c7d72[_0xfd8a('0x10')]){if(_0x2c7d72['error']['code']===0x1f4){logger['error'](_0xfd8a('0xd'),_0xdb72fc,_0x2c7d72[_0xfd8a('0x10')]['message']);return _0x5d2f8d(_0x2c7d72['error'][_0xfd8a('0x11')]);}logger[_0xfd8a('0x10')](_0xfd8a('0xd'),_0xdb72fc,_0x2c7d72[_0xfd8a('0x10')][_0xfd8a('0x11')]);return _0x1d1fb4(_0x2c7d72[_0xfd8a('0x10')][_0xfd8a('0x11')]);}else{logger[_0xfd8a('0xc')](_0xfd8a('0xd'),_0xdb72fc,_0xfd8a('0xe'));_0x1d1fb4(_0x2c7d72[_0xfd8a('0x12')][_0xfd8a('0x11')]);}})[_0xfd8a('0x13')](function(_0x25eed2){logger[_0xfd8a('0x10')](_0xfd8a('0xd'),_0xdb72fc,_0x25eed2);_0x5d2f8d(_0x25eed2);});});}
\ No newline at end of file