Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 885ec04..3cc258b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f2f=['error','code','message','request\x20sent','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','body','options','raw','where','attributes','limit','then','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','http','request','info','OpenchannelApplication,\x20%s,\x20%s','debug','stringify'];(function(_0x409ef4,_0x435589){var _0x50036b=function(_0x4d12ff){while(--_0x4d12ff){_0x409ef4['push'](_0x409ef4['shift']());}};_0x50036b(++_0x435589);}(_0x5f2f,0x73));var _0xf5f2=function(_0xcaf339,_0x4bd8ce){_0xcaf339=_0xcaf339-0x0;var _0x1eb36e=_0x5f2f[_0xcaf339];return _0x1eb36e;};'use strict';var _=require(_0xf5f2('0x0'));var util=require(_0xf5f2('0x1'));var moment=require(_0xf5f2('0x2'));var BPromise=require(_0xf5f2('0x3'));var rs=require(_0xf5f2('0x4'));var fs=require('fs');var Redis=require(_0xf5f2('0x5'));var db=require(_0xf5f2('0x6'))['db'];var utils=require(_0xf5f2('0x7'));var logger=require('../../config/logger')('rpc');var config=require(_0xf5f2('0x8'));var jayson=require(_0xf5f2('0x9'));var client=jayson[_0xf5f2('0xa')][_0xf5f2('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x3133bc,_0x473100,_0x5907aa){return new BPromise(function(_0x466882,_0x46cd9c){return client[_0xf5f2('0xc')](_0x3133bc,_0x5907aa)['then'](function(_0x375da4){logger[_0xf5f2('0xd')](_0xf5f2('0xe'),_0x473100,'request\x20sent');logger[_0xf5f2('0xf')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x473100,'request\x20sent',JSON[_0xf5f2('0x10')](_0x375da4));if(_0x375da4[_0xf5f2('0x11')]){if(_0x375da4['error'][_0xf5f2('0x12')]===0x1f4){logger[_0xf5f2('0x11')](_0xf5f2('0xe'),_0x473100,_0x375da4[_0xf5f2('0x11')][_0xf5f2('0x13')]);return _0x46cd9c(_0x375da4[_0xf5f2('0x11')]['message']);}logger[_0xf5f2('0x11')](_0xf5f2('0xe'),_0x473100,_0x375da4[_0xf5f2('0x11')][_0xf5f2('0x13')]);return _0x466882(_0x375da4[_0xf5f2('0x11')]['message']);}else{logger[_0xf5f2('0xd')](_0xf5f2('0xe'),_0x473100,_0xf5f2('0x14'));_0x466882(_0x375da4[_0xf5f2('0x15')][_0xf5f2('0x13')]);}})[_0xf5f2('0x16')](function(_0xdb61b3){logger[_0xf5f2('0x11')](_0xf5f2('0xe'),_0x473100,_0xdb61b3);_0x46cd9c(_0xdb61b3);});});}exports[_0xf5f2('0x17')]=function(_0x20fccd){var _0x28e097=this;return new Promise(function(_0x4ff59b,_0x3ee69){return db[_0xf5f2('0x18')][_0xf5f2('0x19')](_0x20fccd[_0xf5f2('0x1a')],{'raw':_0x20fccd['options']?_0x20fccd[_0xf5f2('0x1b')][_0xf5f2('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x20fccd['options']?_0x20fccd['options'][_0xf5f2('0x1d')]||null:null,'attributes':_0x20fccd[_0xf5f2('0x1b')]?_0x20fccd['options'][_0xf5f2('0x1e')]||null:null,'limit':_0x20fccd[_0xf5f2('0x1b')]?_0x20fccd[_0xf5f2('0x1b')][_0xf5f2('0x1f')]||null:null})[_0xf5f2('0x20')](function(_0x4c691a){logger[_0xf5f2('0xd')](_0xf5f2('0x17'),_0x20fccd);logger[_0xf5f2('0xf')](_0xf5f2('0x17'),_0x20fccd,JSON[_0xf5f2('0x10')](_0x4c691a));_0x4ff59b(_0x4c691a);})['catch'](function(_0x529f07){logger[_0xf5f2('0x11')](_0xf5f2('0x17'),_0x529f07[_0xf5f2('0x13')],_0x20fccd);_0x3ee69(_0x28e097[_0xf5f2('0x11')](0x1f4,_0x529f07[_0xf5f2('0x13')]));});});};
\ No newline at end of file
+var _0xa3c4=['client','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','OpenchannelApplication,\x20%s,\x20%s','message','request\x20sent','catch','OpenchannelApplication','body','options','raw','where','attributes','limit','UpdateOpenchannelApplication','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/environment','jayson/promise'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa3c4,0xbd));var _0x4a3c=function(_0x5c3310,_0x2e3e0a){_0x5c3310=_0x5c3310-0x0;var _0x16aa35=_0xa3c4[_0x5c3310];return _0x16aa35;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x4a3c('0x0'));var BPromise=require(_0x4a3c('0x1'));var rs=require(_0x4a3c('0x2'));var fs=require('fs');var Redis=require(_0x4a3c('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x4a3c('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0x4a3c('0x5'));var jayson=require(_0x4a3c('0x6'));var client=jayson[_0x4a3c('0x7')][_0x4a3c('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x55ef89,_0x454e3d,_0x1c704b){return new BPromise(function(_0x5c727f,_0x9a55d6){return client[_0x4a3c('0x9')](_0x55ef89,_0x1c704b)[_0x4a3c('0xa')](function(_0x335d0b){logger[_0x4a3c('0xb')]('OpenchannelApplication,\x20%s,\x20%s',_0x454e3d,'request\x20sent');logger['debug'](_0x4a3c('0xc'),_0x454e3d,'request\x20sent',JSON[_0x4a3c('0xd')](_0x335d0b));if(_0x335d0b[_0x4a3c('0xe')]){if(_0x335d0b[_0x4a3c('0xe')][_0x4a3c('0xf')]===0x1f4){logger[_0x4a3c('0xe')](_0x4a3c('0x10'),_0x454e3d,_0x335d0b[_0x4a3c('0xe')][_0x4a3c('0x11')]);return _0x9a55d6(_0x335d0b[_0x4a3c('0xe')][_0x4a3c('0x11')]);}logger[_0x4a3c('0xe')](_0x4a3c('0x10'),_0x454e3d,_0x335d0b['error']['message']);return _0x5c727f(_0x335d0b['error'][_0x4a3c('0x11')]);}else{logger[_0x4a3c('0xb')](_0x4a3c('0x10'),_0x454e3d,_0x4a3c('0x12'));_0x5c727f(_0x335d0b['result'][_0x4a3c('0x11')]);}})[_0x4a3c('0x13')](function(_0x5eb423){logger[_0x4a3c('0xe')](_0x4a3c('0x10'),_0x454e3d,_0x5eb423);_0x9a55d6(_0x5eb423);});});}exports['UpdateOpenchannelApplication']=function(_0x54f251){var _0x327a98=this;return new Promise(function(_0x5ef363,_0x4da0af){return db[_0x4a3c('0x14')]['update'](_0x54f251[_0x4a3c('0x15')],{'raw':_0x54f251[_0x4a3c('0x16')]?_0x54f251['options'][_0x4a3c('0x17')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x54f251[_0x4a3c('0x16')]?_0x54f251['options'][_0x4a3c('0x18')]||null:null,'attributes':_0x54f251[_0x4a3c('0x16')]?_0x54f251[_0x4a3c('0x16')][_0x4a3c('0x19')]||null:null,'limit':_0x54f251[_0x4a3c('0x16')]?_0x54f251[_0x4a3c('0x16')][_0x4a3c('0x1a')]||null:null})['then'](function(_0x467bf7){logger[_0x4a3c('0xb')](_0x4a3c('0x1b'),_0x54f251);logger['debug'](_0x4a3c('0x1b'),_0x54f251,JSON[_0x4a3c('0xd')](_0x467bf7));_0x5ef363(_0x467bf7);})[_0x4a3c('0x13')](function(_0x20b108){logger[_0x4a3c('0xe')]('UpdateOpenchannelApplication',_0x20b108[_0x4a3c('0x11')],_0x54f251);_0x4da0af(_0x327a98[_0x4a3c('0xe')](0x1f4,_0x20b108[_0x4a3c('0x11')]));});});};
\ No newline at end of file