Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / userSmsQueue / userSmsQueue.rpc.js
index 89c5e9e..f37abdc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd232=['../../config/environment','jayson/promise','client','http','request','then','UserSmsQueue,\x20%s,\x20%s','request\x20sent','debug','UserSmsQueue,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/logger','rpc'];(function(_0xcce84a,_0x148a0a){var _0x273e9d=function(_0x318266){while(--_0x318266){_0xcce84a['push'](_0xcce84a['shift']());}};_0x273e9d(++_0x148a0a);}(_0xd232,0x1c5));var _0x2d23=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xd232[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0x2d23('0x0'));var util=require(_0x2d23('0x1'));var moment=require(_0x2d23('0x2'));var BPromise=require(_0x2d23('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x2d23('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x2d23('0x5'))(_0x2d23('0x6'));var config=require(_0x2d23('0x7'));var jayson=require(_0x2d23('0x8'));var client=jayson[_0x2d23('0x9')][_0x2d23('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x107daf,_0x56420f,_0x105ab3){return new BPromise(function(_0x764b4c,_0x4cac6c){return client[_0x2d23('0xb')](_0x107daf,_0x105ab3)[_0x2d23('0xc')](function(_0x66bc34){logger['info'](_0x2d23('0xd'),_0x56420f,_0x2d23('0xe'));logger[_0x2d23('0xf')](_0x2d23('0x10'),_0x56420f,_0x2d23('0xe'),JSON[_0x2d23('0x11')](_0x66bc34));if(_0x66bc34['error']){if(_0x66bc34['error']['code']===0x1f4){logger[_0x2d23('0x12')](_0x2d23('0xd'),_0x56420f,_0x66bc34[_0x2d23('0x12')][_0x2d23('0x13')]);return _0x4cac6c(_0x66bc34[_0x2d23('0x12')]['message']);}logger[_0x2d23('0x12')]('UserSmsQueue,\x20%s,\x20%s',_0x56420f,_0x66bc34['error'][_0x2d23('0x13')]);return _0x764b4c(_0x66bc34[_0x2d23('0x12')]['message']);}else{logger[_0x2d23('0x14')](_0x2d23('0xd'),_0x56420f,_0x2d23('0xe'));_0x764b4c(_0x66bc34[_0x2d23('0x15')][_0x2d23('0x13')]);}})[_0x2d23('0x16')](function(_0x1a8819){logger[_0x2d23('0x12')](_0x2d23('0xd'),_0x56420f,_0x1a8819);_0x4cac6c(_0x1a8819);});});}
\ No newline at end of file
+var _0x7527=['message','lodash','util','moment','bluebird','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','UserSmsQueue,\x20%s,\x20%s','request\x20sent','debug','UserSmsQueue,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x2653b0,_0x362b00){var _0x105848=function(_0x35f01a){while(--_0x35f01a){_0x2653b0['push'](_0x2653b0['shift']());}};_0x105848(++_0x362b00);}(_0x7527,0x6f));var _0x7752=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7527[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x7752('0x0'));var util=require(_0x7752('0x1'));var moment=require(_0x7752('0x2'));var BPromise=require(_0x7752('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7752('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x7752('0x5'))(_0x7752('0x6'));var config=require(_0x7752('0x7'));var jayson=require(_0x7752('0x8'));var client=jayson[_0x7752('0x9')][_0x7752('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x151939,_0x42999b,_0x1a9e49){return new BPromise(function(_0x2bffad,_0x3fcc63){return client[_0x7752('0xb')](_0x151939,_0x1a9e49)[_0x7752('0xc')](function(_0x89836d){logger[_0x7752('0xd')](_0x7752('0xe'),_0x42999b,_0x7752('0xf'));logger[_0x7752('0x10')](_0x7752('0x11'),_0x42999b,_0x7752('0xf'),JSON[_0x7752('0x12')](_0x89836d));if(_0x89836d['error']){if(_0x89836d[_0x7752('0x13')][_0x7752('0x14')]===0x1f4){logger[_0x7752('0x13')]('UserSmsQueue,\x20%s,\x20%s',_0x42999b,_0x89836d['error'][_0x7752('0x15')]);return _0x3fcc63(_0x89836d[_0x7752('0x13')]['message']);}logger[_0x7752('0x13')](_0x7752('0xe'),_0x42999b,_0x89836d[_0x7752('0x13')][_0x7752('0x15')]);return _0x2bffad(_0x89836d['error'][_0x7752('0x15')]);}else{logger[_0x7752('0xd')]('UserSmsQueue,\x20%s,\x20%s',_0x42999b,_0x7752('0xf'));_0x2bffad(_0x89836d['result'][_0x7752('0x15')]);}})['catch'](function(_0x4bbdf2){logger[_0x7752('0x13')](_0x7752('0xe'),_0x42999b,_0x4bbdf2);_0x3fcc63(_0x4bbdf2);});});}
\ No newline at end of file