Built motion from commit (unavailable).|2.5.17
[motion2.git] / server / api / smsApplication / smsApplication.rpc.js
index 2d902d3..a34de16 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8ce1=['http','request','then','info','SmsApplication,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x2748c1,_0x16aa36){var _0xa223a0=function(_0x4b20b3){while(--_0x4b20b3){_0x2748c1['push'](_0x2748c1['shift']());}};_0xa223a0(++_0x16aa36);}(_0x8ce1,0x183));var _0x18ce=function(_0xf6fe36,_0x4ea088){_0xf6fe36=_0xf6fe36-0x0;var _0x36e392=_0x8ce1[_0xf6fe36];return _0x36e392;};'use strict';var _=require(_0x18ce('0x0'));var util=require(_0x18ce('0x1'));var moment=require(_0x18ce('0x2'));var BPromise=require(_0x18ce('0x3'));var rs=require(_0x18ce('0x4'));var fs=require('fs');var Redis=require(_0x18ce('0x5'));var db=require(_0x18ce('0x6'))['db'];var utils=require(_0x18ce('0x7'));var logger=require(_0x18ce('0x8'))(_0x18ce('0x9'));var config=require(_0x18ce('0xa'));var jayson=require(_0x18ce('0xb'));var client=jayson[_0x18ce('0xc')][_0x18ce('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x682d4b,_0x359094,_0x4ebf82){return new BPromise(function(_0x1a60c5,_0x197a64){return client[_0x18ce('0xe')](_0x682d4b,_0x4ebf82)[_0x18ce('0xf')](function(_0x4db2af){logger[_0x18ce('0x10')](_0x18ce('0x11'),_0x359094,_0x18ce('0x12'));logger[_0x18ce('0x13')]('SmsApplication,\x20%s,\x20%s,\x20%s',_0x359094,'request\x20sent',JSON[_0x18ce('0x14')](_0x4db2af));if(_0x4db2af[_0x18ce('0x15')]){if(_0x4db2af[_0x18ce('0x15')][_0x18ce('0x16')]===0x1f4){logger[_0x18ce('0x15')]('SmsApplication,\x20%s,\x20%s',_0x359094,_0x4db2af[_0x18ce('0x15')][_0x18ce('0x17')]);return _0x197a64(_0x4db2af[_0x18ce('0x15')][_0x18ce('0x17')]);}logger[_0x18ce('0x15')]('SmsApplication,\x20%s,\x20%s',_0x359094,_0x4db2af[_0x18ce('0x15')][_0x18ce('0x17')]);return _0x1a60c5(_0x4db2af[_0x18ce('0x15')][_0x18ce('0x17')]);}else{logger[_0x18ce('0x10')](_0x18ce('0x11'),_0x359094,_0x18ce('0x12'));_0x1a60c5(_0x4db2af['result'][_0x18ce('0x17')]);}})[_0x18ce('0x18')](function(_0x204d1a){logger[_0x18ce('0x15')](_0x18ce('0x11'),_0x359094,_0x204d1a);_0x197a64(_0x204d1a);});});}
\ No newline at end of file
+var _0xf6c1=['jayson/promise','client','http','request','then','info','SmsApplication,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment'];(function(_0x1eaa31,_0x47592){var _0x40c0dc=function(_0xf3c7b2){while(--_0xf3c7b2){_0x1eaa31['push'](_0x1eaa31['shift']());}};_0x40c0dc(++_0x47592);}(_0xf6c1,0x99));var _0x1f6c=function(_0x2e4ea2,_0x25fa90){_0x2e4ea2=_0x2e4ea2-0x0;var _0x4455e8=_0xf6c1[_0x2e4ea2];return _0x4455e8;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x1f6c('0x0'));var BPromise=require(_0x1f6c('0x1'));var rs=require(_0x1f6c('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x1f6c('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x1f6c('0x4'))(_0x1f6c('0x5'));var config=require(_0x1f6c('0x6'));var jayson=require(_0x1f6c('0x7'));var client=jayson[_0x1f6c('0x8')][_0x1f6c('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x530b25,_0x3c7569,_0x1385de){return new BPromise(function(_0xade159,_0xcf5c23){return client[_0x1f6c('0xa')](_0x530b25,_0x1385de)[_0x1f6c('0xb')](function(_0x1e7287){logger[_0x1f6c('0xc')](_0x1f6c('0xd'),_0x3c7569,'request\x20sent');logger['debug']('SmsApplication,\x20%s,\x20%s,\x20%s',_0x3c7569,_0x1f6c('0xe'),JSON[_0x1f6c('0xf')](_0x1e7287));if(_0x1e7287[_0x1f6c('0x10')]){if(_0x1e7287[_0x1f6c('0x10')][_0x1f6c('0x11')]===0x1f4){logger[_0x1f6c('0x10')]('SmsApplication,\x20%s,\x20%s',_0x3c7569,_0x1e7287[_0x1f6c('0x10')][_0x1f6c('0x12')]);return _0xcf5c23(_0x1e7287[_0x1f6c('0x10')][_0x1f6c('0x12')]);}logger[_0x1f6c('0x10')](_0x1f6c('0xd'),_0x3c7569,_0x1e7287[_0x1f6c('0x10')][_0x1f6c('0x12')]);return _0xade159(_0x1e7287['error'][_0x1f6c('0x12')]);}else{logger[_0x1f6c('0xc')](_0x1f6c('0xd'),_0x3c7569,_0x1f6c('0xe'));_0xade159(_0x1e7287[_0x1f6c('0x13')][_0x1f6c('0x12')]);}})['catch'](function(_0x521c4c){logger[_0x1f6c('0x10')](_0x1f6c('0xd'),_0x3c7569,_0x521c4c);_0xcf5c23(_0x521c4c);});});}
\ No newline at end of file