Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 7c786d3..561780a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf61a=['error','code','message','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','options','attributes','limit','debug','stringify','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','client','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s','OpenchannelApplication,\x20%s,\x20%s,\x20%s','request\x20sent'];(function(_0x366545,_0xb0e092){var _0x50eee6=function(_0x37f4e6){while(--_0x37f4e6){_0x366545['push'](_0x366545['shift']());}};_0x50eee6(++_0xb0e092);}(_0xf61a,0x140));var _0xaf61=function(_0x39a734,_0x5e328e){_0x39a734=_0x39a734-0x0;var _0x116785=_0xf61a[_0x39a734];return _0x116785;};'use strict';var _=require(_0xaf61('0x0'));var util=require('util');var moment=require(_0xaf61('0x1'));var BPromise=require(_0xaf61('0x2'));var rs=require(_0xaf61('0x3'));var fs=require('fs');var Redis=require(_0xaf61('0x4'));var db=require(_0xaf61('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xaf61('0x6'))(_0xaf61('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xaf61('0x8')][_0xaf61('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x16fa69,_0xe927d2,_0x258fa0){return new BPromise(function(_0x206b5a,_0x49e84d){return client[_0xaf61('0xa')](_0x16fa69,_0x258fa0)[_0xaf61('0xb')](function(_0x4b8cc4){logger[_0xaf61('0xc')](_0xaf61('0xd'),_0xe927d2,'request\x20sent');logger['debug'](_0xaf61('0xe'),_0xe927d2,_0xaf61('0xf'),JSON['stringify'](_0x4b8cc4));if(_0x4b8cc4[_0xaf61('0x10')]){if(_0x4b8cc4[_0xaf61('0x10')][_0xaf61('0x11')]===0x1f4){logger[_0xaf61('0x10')](_0xaf61('0xd'),_0xe927d2,_0x4b8cc4[_0xaf61('0x10')]['message']);return _0x49e84d(_0x4b8cc4[_0xaf61('0x10')][_0xaf61('0x12')]);}logger[_0xaf61('0x10')](_0xaf61('0xd'),_0xe927d2,_0x4b8cc4['error'][_0xaf61('0x12')]);return _0x206b5a(_0x4b8cc4[_0xaf61('0x10')][_0xaf61('0x12')]);}else{logger[_0xaf61('0xc')](_0xaf61('0xd'),_0xe927d2,_0xaf61('0xf'));_0x206b5a(_0x4b8cc4[_0xaf61('0x13')][_0xaf61('0x12')]);}})[_0xaf61('0x14')](function(_0x1f1f14){logger[_0xaf61('0x10')](_0xaf61('0xd'),_0xe927d2,_0x1f1f14);_0x49e84d(_0x1f1f14);});});}exports[_0xaf61('0x15')]=function(_0xd802e9){var _0x46130d=this;return new Promise(function(_0x457ad1,_0x5b4057){return db[_0xaf61('0x16')]['update'](_0xd802e9['body'],{'raw':_0xd802e9[_0xaf61('0x17')]?_0xd802e9['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xd802e9['options']?_0xd802e9[_0xaf61('0x17')]['where']||null:null,'attributes':_0xd802e9[_0xaf61('0x17')]?_0xd802e9[_0xaf61('0x17')][_0xaf61('0x18')]||null:null,'limit':_0xd802e9[_0xaf61('0x17')]?_0xd802e9['options'][_0xaf61('0x19')]||null:null})[_0xaf61('0xb')](function(_0x35adfd){logger[_0xaf61('0xc')]('UpdateOpenchannelApplication',_0xd802e9);logger[_0xaf61('0x1a')](_0xaf61('0x15'),_0xd802e9,JSON[_0xaf61('0x1b')](_0x35adfd));_0x457ad1(_0x35adfd);})[_0xaf61('0x14')](function(_0x868f4c){logger[_0xaf61('0x10')](_0xaf61('0x15'),_0x868f4c[_0xaf61('0x12')],_0xd802e9);_0x5b4057(_0x46130d['error'](0x1f4,_0x868f4c['message']));});});};
\ No newline at end of file
+var _0x8dc1=['where','attributes','limit','then','debug','lodash','bluebird','randomstring','ioredis','../../config/utils','../../config/environment','jayson/promise','client','http','request','info','OpenchannelApplication,\x20%s,\x20%s','OpenchannelApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','UpdateOpenchannelApplication','update','body','options','raw'];(function(_0x7e2b72,_0x5eb647){var _0x2c1b40=function(_0xc343dc){while(--_0xc343dc){_0x7e2b72['push'](_0x7e2b72['shift']());}};_0x2c1b40(++_0x5eb647);}(_0x8dc1,0x144));var _0x18dc=function(_0x2599fb,_0x326664){_0x2599fb=_0x2599fb-0x0;var _0x3b1691=_0x8dc1[_0x2599fb];return _0x3b1691;};'use strict';var _=require(_0x18dc('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x18dc('0x1'));var rs=require(_0x18dc('0x2'));var fs=require('fs');var Redis=require(_0x18dc('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x18dc('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0x18dc('0x5'));var jayson=require(_0x18dc('0x6'));var client=jayson[_0x18dc('0x7')][_0x18dc('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x236d70,_0x3fbb0d,_0x3b2902){return new BPromise(function(_0x5e6642,_0xa67821){return client[_0x18dc('0x9')](_0x236d70,_0x3b2902)['then'](function(_0x1d966b){logger[_0x18dc('0xa')](_0x18dc('0xb'),_0x3fbb0d,'request\x20sent');logger['debug'](_0x18dc('0xc'),_0x3fbb0d,_0x18dc('0xd'),JSON[_0x18dc('0xe')](_0x1d966b));if(_0x1d966b['error']){if(_0x1d966b[_0x18dc('0xf')][_0x18dc('0x10')]===0x1f4){logger[_0x18dc('0xf')](_0x18dc('0xb'),_0x3fbb0d,_0x1d966b['error'][_0x18dc('0x11')]);return _0xa67821(_0x1d966b[_0x18dc('0xf')][_0x18dc('0x11')]);}logger[_0x18dc('0xf')](_0x18dc('0xb'),_0x3fbb0d,_0x1d966b[_0x18dc('0xf')][_0x18dc('0x11')]);return _0x5e6642(_0x1d966b['error'][_0x18dc('0x11')]);}else{logger[_0x18dc('0xa')]('OpenchannelApplication,\x20%s,\x20%s',_0x3fbb0d,_0x18dc('0xd'));_0x5e6642(_0x1d966b['result'][_0x18dc('0x11')]);}})[_0x18dc('0x12')](function(_0x362c67){logger[_0x18dc('0xf')](_0x18dc('0xb'),_0x3fbb0d,_0x362c67);_0xa67821(_0x362c67);});});}exports[_0x18dc('0x13')]=function(_0x4fcad2){var _0x359302=this;return new Promise(function(_0x3cf65c,_0x30d729){return db['OpenchannelApplication'][_0x18dc('0x14')](_0x4fcad2[_0x18dc('0x15')],{'raw':_0x4fcad2[_0x18dc('0x16')]?_0x4fcad2['options'][_0x18dc('0x17')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4fcad2[_0x18dc('0x16')]?_0x4fcad2[_0x18dc('0x16')][_0x18dc('0x18')]||null:null,'attributes':_0x4fcad2[_0x18dc('0x16')]?_0x4fcad2[_0x18dc('0x16')][_0x18dc('0x19')]||null:null,'limit':_0x4fcad2[_0x18dc('0x16')]?_0x4fcad2['options'][_0x18dc('0x1a')]||null:null})[_0x18dc('0x1b')](function(_0x1ecc69){logger[_0x18dc('0xa')](_0x18dc('0x13'),_0x4fcad2);logger[_0x18dc('0x1c')](_0x18dc('0x13'),_0x4fcad2,JSON[_0x18dc('0xe')](_0x1ecc69));_0x3cf65c(_0x1ecc69);})[_0x18dc('0x12')](function(_0x4428e1){logger['error'](_0x18dc('0x13'),_0x4428e1[_0x18dc('0x11')],_0x4fcad2);_0x30d729(_0x359302[_0x18dc('0xf')](0x1f4,_0x4428e1['message']));});});};
\ No newline at end of file