Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / userSmsQueue / userSmsQueue.rpc.js
index e3c1727..84654c0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x72d1=['info','UserSmsQueue,\x20%s,\x20%s','request\x20sent','debug','UserSmsQueue,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','http','request','then'];(function(_0x2efdef,_0x80ec4f){var _0x22fa0c=function(_0x15bcec){while(--_0x15bcec){_0x2efdef['push'](_0x2efdef['shift']());}};_0x22fa0c(++_0x80ec4f);}(_0x72d1,0x11e));var _0x172d=function(_0x475923,_0x25d9ec){_0x475923=_0x475923-0x0;var _0x374030=_0x72d1[_0x475923];return _0x374030;};'use strict';var _=require(_0x172d('0x0'));var util=require(_0x172d('0x1'));var moment=require(_0x172d('0x2'));var BPromise=require(_0x172d('0x3'));var rs=require(_0x172d('0x4'));var fs=require('fs');var Redis=require(_0x172d('0x5'));var db=require(_0x172d('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x172d('0x7'))(_0x172d('0x8'));var config=require('../../config/environment');var jayson=require(_0x172d('0x9'));var client=jayson['client'][_0x172d('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x43bb7b,_0x4cf6b3,_0x509385){return new BPromise(function(_0x141839,_0x531e20){return client[_0x172d('0xb')](_0x43bb7b,_0x509385)[_0x172d('0xc')](function(_0x1a50c2){logger[_0x172d('0xd')](_0x172d('0xe'),_0x4cf6b3,_0x172d('0xf'));logger[_0x172d('0x10')](_0x172d('0x11'),_0x4cf6b3,_0x172d('0xf'),JSON['stringify'](_0x1a50c2));if(_0x1a50c2[_0x172d('0x12')]){if(_0x1a50c2['error'][_0x172d('0x13')]===0x1f4){logger[_0x172d('0x12')](_0x172d('0xe'),_0x4cf6b3,_0x1a50c2[_0x172d('0x12')][_0x172d('0x14')]);return _0x531e20(_0x1a50c2['error'][_0x172d('0x14')]);}logger[_0x172d('0x12')]('UserSmsQueue,\x20%s,\x20%s',_0x4cf6b3,_0x1a50c2[_0x172d('0x12')][_0x172d('0x14')]);return _0x141839(_0x1a50c2[_0x172d('0x12')][_0x172d('0x14')]);}else{logger[_0x172d('0xd')]('UserSmsQueue,\x20%s,\x20%s',_0x4cf6b3,_0x172d('0xf'));_0x141839(_0x1a50c2[_0x172d('0x15')][_0x172d('0x14')]);}})[_0x172d('0x16')](function(_0x5a276a){logger[_0x172d('0x12')](_0x172d('0xe'),_0x4cf6b3,_0x5a276a);_0x531e20(_0x5a276a);});});}
\ No newline at end of file
+var _0x290a=['../../config/logger','rpc','../../config/environment','jayson/promise','http','request','info','request\x20sent','debug','stringify','error','UserSmsQueue,\x20%s,\x20%s','message','result','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x290a,0x19e));var _0xa290=function(_0x20fab4,_0x4c8689){_0x20fab4=_0x20fab4-0x0;var _0x3834d1=_0x290a[_0x20fab4];return _0x3834d1;};'use strict';var _=require(_0xa290('0x0'));var util=require('util');var moment=require(_0xa290('0x1'));var BPromise=require(_0xa290('0x2'));var rs=require(_0xa290('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa290('0x4'))['db'];var utils=require(_0xa290('0x5'));var logger=require(_0xa290('0x6'))(_0xa290('0x7'));var config=require(_0xa290('0x8'));var jayson=require(_0xa290('0x9'));var client=jayson['client'][_0xa290('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x1472a6,_0x2f5b24,_0x1ad2aa){return new BPromise(function(_0x1fdce2,_0x4fbad7){return client[_0xa290('0xb')](_0x1472a6,_0x1ad2aa)['then'](function(_0x2e3fca){logger[_0xa290('0xc')]('UserSmsQueue,\x20%s,\x20%s',_0x2f5b24,_0xa290('0xd'));logger[_0xa290('0xe')]('UserSmsQueue,\x20%s,\x20%s,\x20%s',_0x2f5b24,_0xa290('0xd'),JSON[_0xa290('0xf')](_0x2e3fca));if(_0x2e3fca[_0xa290('0x10')]){if(_0x2e3fca['error']['code']===0x1f4){logger[_0xa290('0x10')](_0xa290('0x11'),_0x2f5b24,_0x2e3fca[_0xa290('0x10')][_0xa290('0x12')]);return _0x4fbad7(_0x2e3fca['error'][_0xa290('0x12')]);}logger[_0xa290('0x10')](_0xa290('0x11'),_0x2f5b24,_0x2e3fca[_0xa290('0x10')][_0xa290('0x12')]);return _0x1fdce2(_0x2e3fca[_0xa290('0x10')]['message']);}else{logger['info'](_0xa290('0x11'),_0x2f5b24,'request\x20sent');_0x1fdce2(_0x2e3fca[_0xa290('0x13')][_0xa290('0x12')]);}})[_0xa290('0x14')](function(_0x2f37d3){logger[_0xa290('0x10')](_0xa290('0x11'),_0x2f5b24,_0x2f37d3);_0x4fbad7(_0x2f37d3);});});}
\ No newline at end of file