Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / smsApplication / smsApplication.rpc.js
index f4d5617..b195c3a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x414f=['then','info','SmsApplication,\x20%s,\x20%s','request\x20sent','debug','SmsApplication,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0x414f,0x13f));var _0xf414=function(_0x1405c1,_0x532676){_0x1405c1=_0x1405c1-0x0;var _0x59aabc=_0x414f[_0x1405c1];return _0x59aabc;};'use strict';var _=require(_0xf414('0x0'));var util=require('util');var moment=require(_0xf414('0x1'));var BPromise=require(_0xf414('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf414('0x3'));var db=require(_0xf414('0x4'))['db'];var utils=require(_0xf414('0x5'));var logger=require(_0xf414('0x6'))(_0xf414('0x7'));var config=require(_0xf414('0x8'));var jayson=require(_0xf414('0x9'));var client=jayson['client'][_0xf414('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4cdcdb,_0x34c4d0,_0x2306e5){return new BPromise(function(_0xad732,_0x5194e5){return client['request'](_0x4cdcdb,_0x2306e5)[_0xf414('0xb')](function(_0x2bbf01){logger[_0xf414('0xc')](_0xf414('0xd'),_0x34c4d0,_0xf414('0xe'));logger[_0xf414('0xf')](_0xf414('0x10'),_0x34c4d0,_0xf414('0xe'),JSON['stringify'](_0x2bbf01));if(_0x2bbf01['error']){if(_0x2bbf01[_0xf414('0x11')][_0xf414('0x12')]===0x1f4){logger[_0xf414('0x11')](_0xf414('0xd'),_0x34c4d0,_0x2bbf01[_0xf414('0x11')]['message']);return _0x5194e5(_0x2bbf01[_0xf414('0x11')][_0xf414('0x13')]);}logger[_0xf414('0x11')](_0xf414('0xd'),_0x34c4d0,_0x2bbf01[_0xf414('0x11')]['message']);return _0xad732(_0x2bbf01[_0xf414('0x11')][_0xf414('0x13')]);}else{logger[_0xf414('0xc')](_0xf414('0xd'),_0x34c4d0,_0xf414('0xe'));_0xad732(_0x2bbf01[_0xf414('0x14')][_0xf414('0x13')]);}})[_0xf414('0x15')](function(_0x483e29){logger[_0xf414('0x11')](_0xf414('0xd'),_0x34c4d0,_0x483e29);_0x5194e5(_0x483e29);});});}
\ No newline at end of file
+var _0xc19f=['../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','SmsApplication,\x20%s,\x20%s','SmsApplication,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','moment','bluebird','../../mysqldb','../../config/utils'];(function(_0x170f4c,_0x4a4c80){var _0x52eedd=function(_0x473905){while(--_0x473905){_0x170f4c['push'](_0x170f4c['shift']());}};_0x52eedd(++_0x4a4c80);}(_0xc19f,0x164));var _0xfc19=function(_0x5d8280,_0x5d02dd){_0x5d8280=_0x5d8280-0x0;var _0x1752a4=_0xc19f[_0x5d8280];return _0x1752a4;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xfc19('0x0'));var BPromise=require(_0xfc19('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xfc19('0x2'))['db'];var utils=require(_0xfc19('0x3'));var logger=require(_0xfc19('0x4'))(_0xfc19('0x5'));var config=require(_0xfc19('0x6'));var jayson=require(_0xfc19('0x7'));var client=jayson[_0xfc19('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4b914d,_0x5edecc,_0x77e5df){return new BPromise(function(_0x1d4fe7,_0x3ab241){return client[_0xfc19('0x9')](_0x4b914d,_0x77e5df)[_0xfc19('0xa')](function(_0x22fcbd){logger[_0xfc19('0xb')](_0xfc19('0xc'),_0x5edecc,'request\x20sent');logger['debug'](_0xfc19('0xd'),_0x5edecc,_0xfc19('0xe'),JSON['stringify'](_0x22fcbd));if(_0x22fcbd[_0xfc19('0xf')]){if(_0x22fcbd['error'][_0xfc19('0x10')]===0x1f4){logger[_0xfc19('0xf')]('SmsApplication,\x20%s,\x20%s',_0x5edecc,_0x22fcbd[_0xfc19('0xf')][_0xfc19('0x11')]);return _0x3ab241(_0x22fcbd['error'][_0xfc19('0x11')]);}logger[_0xfc19('0xf')](_0xfc19('0xc'),_0x5edecc,_0x22fcbd[_0xfc19('0xf')][_0xfc19('0x11')]);return _0x1d4fe7(_0x22fcbd['error'][_0xfc19('0x11')]);}else{logger[_0xfc19('0xb')](_0xfc19('0xc'),_0x5edecc,_0xfc19('0xe'));_0x1d4fe7(_0x22fcbd[_0xfc19('0x12')][_0xfc19('0x11')]);}})[_0xfc19('0x13')](function(_0x375f00){logger[_0xfc19('0xf')](_0xfc19('0xc'),_0x5edecc,_0x375f00);_0x3ab241(_0x375f00);});});}
\ No newline at end of file