Built motion from commit 20b39a97.|2.6.29
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index e62d54d..807c124 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb1c3=['lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','update','body','options','raw','where','attributes','limit','UpdateOpenchannelApplication'];(function(_0x51f2c0,_0xb7c46e){var _0x34ffd5=function(_0x2238c0){while(--_0x2238c0){_0x51f2c0['push'](_0x51f2c0['shift']());}};_0x34ffd5(++_0xb7c46e);}(_0xb1c3,0x80));var _0x3b1c=function(_0x3c157d,_0x18ee7f){_0x3c157d=_0x3c157d-0x0;var _0x545edb=_0xb1c3[_0x3c157d];return _0x545edb;};'use strict';var _=require(_0x3b1c('0x0'));var util=require(_0x3b1c('0x1'));var moment=require('moment');var BPromise=require(_0x3b1c('0x2'));var rs=require(_0x3b1c('0x3'));var fs=require('fs');var Redis=require(_0x3b1c('0x4'));var db=require(_0x3b1c('0x5'))['db'];var utils=require(_0x3b1c('0x6'));var logger=require(_0x3b1c('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0x3b1c('0x8'));var client=jayson[_0x3b1c('0x9')][_0x3b1c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2431c9,_0x14f3f5,_0xb22ab1){return new BPromise(function(_0x2c8f1b,_0x2d718f){return client[_0x3b1c('0xb')](_0x2431c9,_0xb22ab1)[_0x3b1c('0xc')](function(_0x57eced){logger[_0x3b1c('0xd')](_0x3b1c('0xe'),_0x14f3f5,'request\x20sent');logger[_0x3b1c('0xf')](_0x3b1c('0x10'),_0x14f3f5,_0x3b1c('0x11'),JSON[_0x3b1c('0x12')](_0x57eced));if(_0x57eced[_0x3b1c('0x13')]){if(_0x57eced[_0x3b1c('0x13')][_0x3b1c('0x14')]===0x1f4){logger[_0x3b1c('0x13')](_0x3b1c('0xe'),_0x14f3f5,_0x57eced[_0x3b1c('0x13')][_0x3b1c('0x15')]);return _0x2d718f(_0x57eced[_0x3b1c('0x13')][_0x3b1c('0x15')]);}logger[_0x3b1c('0x13')]('OpenchannelApplication,\x20%s,\x20%s',_0x14f3f5,_0x57eced[_0x3b1c('0x13')][_0x3b1c('0x15')]);return _0x2c8f1b(_0x57eced[_0x3b1c('0x13')]['message']);}else{logger[_0x3b1c('0xd')](_0x3b1c('0xe'),_0x14f3f5,'request\x20sent');_0x2c8f1b(_0x57eced[_0x3b1c('0x16')][_0x3b1c('0x15')]);}})[_0x3b1c('0x17')](function(_0x240f31){logger[_0x3b1c('0x13')](_0x3b1c('0xe'),_0x14f3f5,_0x240f31);_0x2d718f(_0x240f31);});});}exports['UpdateOpenchannelApplication']=function(_0x38583){var _0xbf0ac0=this;return new Promise(function(_0x557b83,_0x2a8f92){return db['OpenchannelApplication'][_0x3b1c('0x18')](_0x38583[_0x3b1c('0x19')],{'raw':_0x38583['options']?_0x38583[_0x3b1c('0x1a')][_0x3b1c('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x38583[_0x3b1c('0x1a')]?_0x38583[_0x3b1c('0x1a')][_0x3b1c('0x1c')]||null:null,'attributes':_0x38583[_0x3b1c('0x1a')]?_0x38583[_0x3b1c('0x1a')][_0x3b1c('0x1d')]||null:null,'limit':_0x38583[_0x3b1c('0x1a')]?_0x38583[_0x3b1c('0x1a')][_0x3b1c('0x1e')]||null:null})[_0x3b1c('0xc')](function(_0x5b3877){logger[_0x3b1c('0xd')](_0x3b1c('0x1f'),_0x38583);logger[_0x3b1c('0xf')](_0x3b1c('0x1f'),_0x38583,JSON[_0x3b1c('0x12')](_0x5b3877));_0x557b83(_0x5b3877);})[_0x3b1c('0x17')](function(_0x5920a2){logger[_0x3b1c('0x13')](_0x3b1c('0x1f'),_0x5920a2[_0x3b1c('0x15')],_0x38583);_0x2a8f92(_0xbf0ac0[_0x3b1c('0x13')](0x1f4,_0x5920a2[_0x3b1c('0x15')]));});});};
\ No newline at end of file
+var _0x96aa=['util','bluebird','../../config/utils','../../config/logger','jayson/promise','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s','debug','error','code','message','result','OpenchannelApplication','update','body','options','raw','where','attributes','limit','UpdateOpenchannelApplication','lodash'];(function(_0x44de9e,_0xa5693a){var _0x23a3e5=function(_0x5c62b9){while(--_0x5c62b9){_0x44de9e['push'](_0x44de9e['shift']());}};_0x23a3e5(++_0xa5693a);}(_0x96aa,0x144));var _0xa96a=function(_0x552849,_0x431718){_0x552849=_0x552849-0x0;var _0x51ca0e=_0x96aa[_0x552849];return _0x51ca0e;};'use strict';var _=require(_0xa96a('0x0'));var util=require(_0xa96a('0x1'));var moment=require('moment');var BPromise=require(_0xa96a('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xa96a('0x3'));var logger=require(_0xa96a('0x4'))('rpc');var config=require('../../config/environment');var jayson=require(_0xa96a('0x5'));var client=jayson['client'][_0xa96a('0x6')]({'port':0x232a});function respondWithRpcPromise(_0x10251e,_0xbc8cd2,_0x3b45ca){return new BPromise(function(_0x473679,_0x33330d){return client[_0xa96a('0x7')](_0x10251e,_0x3b45ca)[_0xa96a('0x8')](function(_0x3f83b4){logger[_0xa96a('0x9')](_0xa96a('0xa'),_0xbc8cd2,'request\x20sent');logger[_0xa96a('0xb')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0xbc8cd2,'request\x20sent',JSON['stringify'](_0x3f83b4));if(_0x3f83b4[_0xa96a('0xc')]){if(_0x3f83b4['error'][_0xa96a('0xd')]===0x1f4){logger[_0xa96a('0xc')](_0xa96a('0xa'),_0xbc8cd2,_0x3f83b4[_0xa96a('0xc')][_0xa96a('0xe')]);return _0x33330d(_0x3f83b4['error'][_0xa96a('0xe')]);}logger[_0xa96a('0xc')](_0xa96a('0xa'),_0xbc8cd2,_0x3f83b4[_0xa96a('0xc')][_0xa96a('0xe')]);return _0x473679(_0x3f83b4[_0xa96a('0xc')]['message']);}else{logger[_0xa96a('0x9')](_0xa96a('0xa'),_0xbc8cd2,'request\x20sent');_0x473679(_0x3f83b4[_0xa96a('0xf')][_0xa96a('0xe')]);}})['catch'](function(_0x32ebf3){logger['error'](_0xa96a('0xa'),_0xbc8cd2,_0x32ebf3);_0x33330d(_0x32ebf3);});});}exports['UpdateOpenchannelApplication']=function(_0x108ef6){var _0x6d28d7=this;return new Promise(function(_0x188f1d,_0x5723c3){return db[_0xa96a('0x10')][_0xa96a('0x11')](_0x108ef6[_0xa96a('0x12')],{'raw':_0x108ef6[_0xa96a('0x13')]?_0x108ef6[_0xa96a('0x13')][_0xa96a('0x14')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x108ef6[_0xa96a('0x13')]?_0x108ef6[_0xa96a('0x13')][_0xa96a('0x15')]||null:null,'attributes':_0x108ef6[_0xa96a('0x13')]?_0x108ef6[_0xa96a('0x13')][_0xa96a('0x16')]||null:null,'limit':_0x108ef6['options']?_0x108ef6[_0xa96a('0x13')][_0xa96a('0x17')]||null:null})[_0xa96a('0x8')](function(_0x2334a5){logger[_0xa96a('0x9')](_0xa96a('0x18'),_0x108ef6);logger[_0xa96a('0xb')](_0xa96a('0x18'),_0x108ef6,JSON['stringify'](_0x2334a5));_0x188f1d(_0x2334a5);})['catch'](function(_0x5a43e5){logger['error'](_0xa96a('0x18'),_0x5a43e5[_0xa96a('0xe')],_0x108ef6);_0x5723c3(_0x6d28d7[_0xa96a('0xc')](0x1f4,_0x5a43e5[_0xa96a('0xe')]));});});};
\ No newline at end of file