Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index b3c8681..1239236 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x34a3=['request\x20sent','debug','error','code','OpenchannelApplication,\x20%s,\x20%s','message','result','catch','OpenchannelApplication','body','options','raw','where','attributes','limit','UpdateOpenchannelApplication','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','then','info'];(function(_0x36ee10,_0x3e4e4b){var _0x1ae7e8=function(_0x138916){while(--_0x138916){_0x36ee10['push'](_0x36ee10['shift']());}};_0x1ae7e8(++_0x3e4e4b);}(_0x34a3,0x1c3));var _0x334a=function(_0x1f9faf,_0x227808){_0x1f9faf=_0x1f9faf-0x0;var _0x13ab2c=_0x34a3[_0x1f9faf];return _0x13ab2c;};'use strict';var _=require(_0x334a('0x0'));var util=require(_0x334a('0x1'));var moment=require(_0x334a('0x2'));var BPromise=require(_0x334a('0x3'));var rs=require(_0x334a('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x334a('0x5'))['db'];var utils=require(_0x334a('0x6'));var logger=require(_0x334a('0x7'))(_0x334a('0x8'));var config=require('../../config/environment');var jayson=require(_0x334a('0x9'));var client=jayson['client'][_0x334a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x30f2e2,_0x3f90b7,_0x49d4f2){return new BPromise(function(_0x50f90b,_0x48c274){return client['request'](_0x30f2e2,_0x49d4f2)[_0x334a('0xb')](function(_0xe2bdae){logger[_0x334a('0xc')]('OpenchannelApplication,\x20%s,\x20%s',_0x3f90b7,_0x334a('0xd'));logger[_0x334a('0xe')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x3f90b7,_0x334a('0xd'),JSON['stringify'](_0xe2bdae));if(_0xe2bdae[_0x334a('0xf')]){if(_0xe2bdae[_0x334a('0xf')][_0x334a('0x10')]===0x1f4){logger['error'](_0x334a('0x11'),_0x3f90b7,_0xe2bdae['error'][_0x334a('0x12')]);return _0x48c274(_0xe2bdae['error']['message']);}logger[_0x334a('0xf')]('OpenchannelApplication,\x20%s,\x20%s',_0x3f90b7,_0xe2bdae['error'][_0x334a('0x12')]);return _0x50f90b(_0xe2bdae[_0x334a('0xf')][_0x334a('0x12')]);}else{logger[_0x334a('0xc')](_0x334a('0x11'),_0x3f90b7,_0x334a('0xd'));_0x50f90b(_0xe2bdae[_0x334a('0x13')][_0x334a('0x12')]);}})[_0x334a('0x14')](function(_0x2c56de){logger[_0x334a('0xf')](_0x334a('0x11'),_0x3f90b7,_0x2c56de);_0x48c274(_0x2c56de);});});}exports['UpdateOpenchannelApplication']=function(_0x4721df){var _0x2b1f07=this;return new Promise(function(_0x4c8d30,_0x51fa87){return db[_0x334a('0x15')]['update'](_0x4721df[_0x334a('0x16')],{'raw':_0x4721df['options']?_0x4721df[_0x334a('0x17')][_0x334a('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4721df[_0x334a('0x17')]?_0x4721df[_0x334a('0x17')][_0x334a('0x19')]||null:null,'attributes':_0x4721df['options']?_0x4721df[_0x334a('0x17')][_0x334a('0x1a')]||null:null,'limit':_0x4721df[_0x334a('0x17')]?_0x4721df[_0x334a('0x17')][_0x334a('0x1b')]||null:null})[_0x334a('0xb')](function(_0x32e6d5){logger[_0x334a('0xc')](_0x334a('0x1c'),_0x4721df);logger[_0x334a('0xe')](_0x334a('0x1c'),_0x4721df,JSON['stringify'](_0x32e6d5));_0x4c8d30(_0x32e6d5);})['catch'](function(_0x24563f){logger[_0x334a('0xf')](_0x334a('0x1c'),_0x24563f['message'],_0x4721df);_0x51fa87(_0x2b1f07[_0x334a('0xf')](0x1f4,_0x24563f[_0x334a('0x12')]));});});};
\ No newline at end of file
+var _0xa1bb=['message','info','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','body','options','raw','where','attributes','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','OpenchannelApplication,\x20%s,\x20%s'];(function(_0x4acfd2,_0x5b9374){var _0x12afbe=function(_0x5bc178){while(--_0x5bc178){_0x4acfd2['push'](_0x4acfd2['shift']());}};_0x12afbe(++_0x5b9374);}(_0xa1bb,0x69));var _0xba1b=function(_0x17f7c0,_0x59bc24){_0x17f7c0=_0x17f7c0-0x0;var _0x1781c7=_0xa1bb[_0x17f7c0];return _0x1781c7;};'use strict';var _=require('lodash');var util=require(_0xba1b('0x0'));var moment=require(_0xba1b('0x1'));var BPromise=require(_0xba1b('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xba1b('0x3'));var db=require(_0xba1b('0x4'))['db'];var utils=require(_0xba1b('0x5'));var logger=require(_0xba1b('0x6'))(_0xba1b('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xba1b('0x8')][_0xba1b('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5c8e45,_0x3264e1,_0xa6e3d6){return new BPromise(function(_0x12141d,_0x567457){return client[_0xba1b('0xa')](_0x5c8e45,_0xa6e3d6)[_0xba1b('0xb')](function(_0xeb5a7c){logger['info']('OpenchannelApplication,\x20%s,\x20%s',_0x3264e1,'request\x20sent');logger[_0xba1b('0xc')](_0xba1b('0xd'),_0x3264e1,_0xba1b('0xe'),JSON[_0xba1b('0xf')](_0xeb5a7c));if(_0xeb5a7c[_0xba1b('0x10')]){if(_0xeb5a7c['error'][_0xba1b('0x11')]===0x1f4){logger[_0xba1b('0x10')](_0xba1b('0x12'),_0x3264e1,_0xeb5a7c[_0xba1b('0x10')]['message']);return _0x567457(_0xeb5a7c[_0xba1b('0x10')][_0xba1b('0x13')]);}logger[_0xba1b('0x10')](_0xba1b('0x12'),_0x3264e1,_0xeb5a7c[_0xba1b('0x10')][_0xba1b('0x13')]);return _0x12141d(_0xeb5a7c[_0xba1b('0x10')][_0xba1b('0x13')]);}else{logger[_0xba1b('0x14')]('OpenchannelApplication,\x20%s,\x20%s',_0x3264e1,'request\x20sent');_0x12141d(_0xeb5a7c[_0xba1b('0x15')][_0xba1b('0x13')]);}})[_0xba1b('0x16')](function(_0x4dba50){logger[_0xba1b('0x10')](_0xba1b('0x12'),_0x3264e1,_0x4dba50);_0x567457(_0x4dba50);});});}exports[_0xba1b('0x17')]=function(_0x1d0f10){var _0x57968b=this;return new Promise(function(_0x57526e,_0x3e92b4){return db[_0xba1b('0x18')][_0xba1b('0x19')](_0x1d0f10[_0xba1b('0x1a')],{'raw':_0x1d0f10[_0xba1b('0x1b')]?_0x1d0f10[_0xba1b('0x1b')][_0xba1b('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1d0f10[_0xba1b('0x1b')]?_0x1d0f10[_0xba1b('0x1b')][_0xba1b('0x1d')]||null:null,'attributes':_0x1d0f10[_0xba1b('0x1b')]?_0x1d0f10['options'][_0xba1b('0x1e')]||null:null,'limit':_0x1d0f10['options']?_0x1d0f10[_0xba1b('0x1b')]['limit']||null:null})[_0xba1b('0xb')](function(_0x5959ff){logger[_0xba1b('0x14')]('UpdateOpenchannelApplication',_0x1d0f10);logger[_0xba1b('0xc')]('UpdateOpenchannelApplication',_0x1d0f10,JSON[_0xba1b('0xf')](_0x5959ff));_0x57526e(_0x5959ff);})[_0xba1b('0x16')](function(_0x1e2e02){logger[_0xba1b('0x10')]('UpdateOpenchannelApplication',_0x1e2e02[_0xba1b('0x13')],_0x1d0f10);_0x3e92b4(_0x57968b[_0xba1b('0x10')](0x1f4,_0x1e2e02[_0xba1b('0x13')]));});});};
\ No newline at end of file