Built motion from commit 08fb8613.|2.6.31
[motion2.git] / server / api / smsApplication / smsApplication.rpc.js
index c54c81a..141e5ed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5386=['moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','SmsApplication,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','lodash','util'];(function(_0x360264,_0x39f98f){var _0x24e5ac=function(_0x1c60f1){while(--_0x1c60f1){_0x360264['push'](_0x360264['shift']());}};_0x24e5ac(++_0x39f98f);}(_0x5386,0x1e1));var _0x6538=function(_0x4c7149,_0x335342){_0x4c7149=_0x4c7149-0x0;var _0x200122=_0x5386[_0x4c7149];return _0x200122;};'use strict';var _=require(_0x6538('0x0'));var util=require(_0x6538('0x1'));var moment=require(_0x6538('0x2'));var BPromise=require(_0x6538('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x6538('0x4'));var db=require(_0x6538('0x5'))['db'];var utils=require(_0x6538('0x6'));var logger=require(_0x6538('0x7'))(_0x6538('0x8'));var config=require(_0x6538('0x9'));var jayson=require(_0x6538('0xa'));var client=jayson[_0x6538('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x16c291,_0x4b0e05,_0x16d67){return new BPromise(function(_0x28e83b,_0x113fe4){return client[_0x6538('0xc')](_0x16c291,_0x16d67)[_0x6538('0xd')](function(_0x2bce05){logger[_0x6538('0xe')](_0x6538('0xf'),_0x4b0e05,_0x6538('0x10'));logger[_0x6538('0x11')]('SmsApplication,\x20%s,\x20%s,\x20%s',_0x4b0e05,_0x6538('0x10'),JSON[_0x6538('0x12')](_0x2bce05));if(_0x2bce05[_0x6538('0x13')]){if(_0x2bce05['error'][_0x6538('0x14')]===0x1f4){logger['error'](_0x6538('0xf'),_0x4b0e05,_0x2bce05[_0x6538('0x13')]['message']);return _0x113fe4(_0x2bce05[_0x6538('0x13')][_0x6538('0x15')]);}logger['error'](_0x6538('0xf'),_0x4b0e05,_0x2bce05[_0x6538('0x13')][_0x6538('0x15')]);return _0x28e83b(_0x2bce05['error'][_0x6538('0x15')]);}else{logger['info'](_0x6538('0xf'),_0x4b0e05,_0x6538('0x10'));_0x28e83b(_0x2bce05[_0x6538('0x16')][_0x6538('0x15')]);}})['catch'](function(_0x7caa07){logger[_0x6538('0x13')]('SmsApplication,\x20%s,\x20%s',_0x4b0e05,_0x7caa07);_0x113fe4(_0x7caa07);});});}
\ No newline at end of file
+var _0x337f=['moment','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','http','request','then','info','SmsApplication,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util'];(function(_0x49987f,_0x532062){var _0x3e1766=function(_0x11e938){while(--_0x11e938){_0x49987f['push'](_0x49987f['shift']());}};_0x3e1766(++_0x532062);}(_0x337f,0x11c));var _0xf337=function(_0x14e22f,_0x2b05d6){_0x14e22f=_0x14e22f-0x0;var _0x2b6e0b=_0x337f[_0x14e22f];return _0x2b6e0b;};'use strict';var _=require(_0xf337('0x0'));var util=require(_0xf337('0x1'));var moment=require(_0xf337('0x2'));var BPromise=require('bluebird');var rs=require(_0xf337('0x3'));var fs=require('fs');var Redis=require(_0xf337('0x4'));var db=require(_0xf337('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xf337('0x6'))(_0xf337('0x7'));var config=require('../../config/environment');var jayson=require(_0xf337('0x8'));var client=jayson['client'][_0xf337('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5ae4d6,_0x2be604,_0x56bd39){return new BPromise(function(_0x4b80a2,_0x1f0a95){return client[_0xf337('0xa')](_0x5ae4d6,_0x56bd39)[_0xf337('0xb')](function(_0x2a4619){logger[_0xf337('0xc')](_0xf337('0xd'),_0x2be604,_0xf337('0xe'));logger[_0xf337('0xf')]('SmsApplication,\x20%s,\x20%s,\x20%s',_0x2be604,_0xf337('0xe'),JSON[_0xf337('0x10')](_0x2a4619));if(_0x2a4619[_0xf337('0x11')]){if(_0x2a4619[_0xf337('0x11')][_0xf337('0x12')]===0x1f4){logger[_0xf337('0x11')](_0xf337('0xd'),_0x2be604,_0x2a4619[_0xf337('0x11')][_0xf337('0x13')]);return _0x1f0a95(_0x2a4619[_0xf337('0x11')][_0xf337('0x13')]);}logger[_0xf337('0x11')]('SmsApplication,\x20%s,\x20%s',_0x2be604,_0x2a4619[_0xf337('0x11')][_0xf337('0x13')]);return _0x4b80a2(_0x2a4619[_0xf337('0x11')]['message']);}else{logger[_0xf337('0xc')](_0xf337('0xd'),_0x2be604,'request\x20sent');_0x4b80a2(_0x2a4619[_0xf337('0x14')][_0xf337('0x13')]);}})[_0xf337('0x15')](function(_0x4a7e4c){logger[_0xf337('0x11')]('SmsApplication,\x20%s,\x20%s',_0x2be604,_0x4a7e4c);_0x1f0a95(_0x4a7e4c);});});}
\ No newline at end of file