Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 38875bd..cb5ded1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x18fa=['request\x20sent','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','code','error','message','OpenchannelApplication,\x20%s,\x20%s','info','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','body','raw','options','where','attributes','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then'];(function(_0x17411e,_0x7a9af){var _0x4ed00a=function(_0x19afcf){while(--_0x19afcf){_0x17411e['push'](_0x17411e['shift']());}};_0x4ed00a(++_0x7a9af);}(_0x18fa,0x17e));var _0xa18f=function(_0xfd8742,_0xcb6da2){_0xfd8742=_0xfd8742-0x0;var _0x40c118=_0x18fa[_0xfd8742];return _0x40c118;};'use strict';var _=require(_0xa18f('0x0'));var util=require(_0xa18f('0x1'));var moment=require(_0xa18f('0x2'));var BPromise=require(_0xa18f('0x3'));var rs=require(_0xa18f('0x4'));var fs=require('fs');var Redis=require(_0xa18f('0x5'));var db=require(_0xa18f('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0xa18f('0x7'))(_0xa18f('0x8'));var config=require(_0xa18f('0x9'));var jayson=require(_0xa18f('0xa'));var client=jayson[_0xa18f('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x6894f1,_0x1aac6d,_0x48867e){return new BPromise(function(_0x23d99e,_0x327efa){return client[_0xa18f('0xc')](_0x6894f1,_0x48867e)[_0xa18f('0xd')](function(_0x471b64){logger['info']('OpenchannelApplication,\x20%s,\x20%s',_0x1aac6d,_0xa18f('0xe'));logger[_0xa18f('0xf')](_0xa18f('0x10'),_0x1aac6d,'request\x20sent',JSON[_0xa18f('0x11')](_0x471b64));if(_0x471b64['error']){if(_0x471b64['error'][_0xa18f('0x12')]===0x1f4){logger[_0xa18f('0x13')]('OpenchannelApplication,\x20%s,\x20%s',_0x1aac6d,_0x471b64[_0xa18f('0x13')][_0xa18f('0x14')]);return _0x327efa(_0x471b64[_0xa18f('0x13')][_0xa18f('0x14')]);}logger[_0xa18f('0x13')](_0xa18f('0x15'),_0x1aac6d,_0x471b64[_0xa18f('0x13')][_0xa18f('0x14')]);return _0x23d99e(_0x471b64[_0xa18f('0x13')][_0xa18f('0x14')]);}else{logger[_0xa18f('0x16')](_0xa18f('0x15'),_0x1aac6d,_0xa18f('0xe'));_0x23d99e(_0x471b64[_0xa18f('0x17')][_0xa18f('0x14')]);}})[_0xa18f('0x18')](function(_0x194ee1){logger[_0xa18f('0x13')](_0xa18f('0x15'),_0x1aac6d,_0x194ee1);_0x327efa(_0x194ee1);});});}exports[_0xa18f('0x19')]=function(_0x1a925a){var _0x5e9567=this;return new Promise(function(_0x17599d,_0x21991c){return db[_0xa18f('0x1a')][_0xa18f('0x1b')](_0x1a925a[_0xa18f('0x1c')],{'raw':_0x1a925a['options']?_0x1a925a['options'][_0xa18f('0x1d')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1a925a[_0xa18f('0x1e')]?_0x1a925a[_0xa18f('0x1e')][_0xa18f('0x1f')]||null:null,'attributes':_0x1a925a[_0xa18f('0x1e')]?_0x1a925a[_0xa18f('0x1e')][_0xa18f('0x20')]||null:null,'limit':_0x1a925a['options']?_0x1a925a[_0xa18f('0x1e')]['limit']||null:null})[_0xa18f('0xd')](function(_0x434ca9){logger[_0xa18f('0x16')]('UpdateOpenchannelApplication',_0x1a925a);logger[_0xa18f('0xf')]('UpdateOpenchannelApplication',_0x1a925a,JSON[_0xa18f('0x11')](_0x434ca9));_0x17599d(_0x434ca9);})[_0xa18f('0x18')](function(_0xc5c7e5){logger[_0xa18f('0x13')]('UpdateOpenchannelApplication',_0xc5c7e5[_0xa18f('0x14')],_0x1a925a);_0x21991c(_0x5e9567['error'](0x1f4,_0xc5c7e5[_0xa18f('0x14')]));});});};
\ No newline at end of file
+var _0x4054=['rpc','../../config/environment','jayson/promise','request','then','info','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','UpdateOpenchannelApplication','update','body','options','raw','attributes','catch','lodash','util','ioredis','../../config/utils'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x4054,0x173));var _0x4405=function(_0x569354,_0x31cec7){_0x569354=_0x569354-0x0;var _0x49fdb4=_0x4054[_0x569354];return _0x49fdb4;};'use strict';var _=require(_0x4405('0x0'));var util=require(_0x4405('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x4405('0x2'));var db=require('../../mysqldb')['db'];var utils=require(_0x4405('0x3'));var logger=require('../../config/logger')(_0x4405('0x4'));var config=require(_0x4405('0x5'));var jayson=require(_0x4405('0x6'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x4244f0,_0x58eff2,_0x5abdd1){return new BPromise(function(_0x4b965b,_0x48f250){return client[_0x4405('0x7')](_0x4244f0,_0x5abdd1)[_0x4405('0x8')](function(_0x4caa51){logger[_0x4405('0x9')](_0x4405('0xa'),_0x58eff2,_0x4405('0xb'));logger[_0x4405('0xc')](_0x4405('0xd'),_0x58eff2,'request\x20sent',JSON[_0x4405('0xe')](_0x4caa51));if(_0x4caa51[_0x4405('0xf')]){if(_0x4caa51['error'][_0x4405('0x10')]===0x1f4){logger[_0x4405('0xf')]('OpenchannelApplication,\x20%s,\x20%s',_0x58eff2,_0x4caa51[_0x4405('0xf')][_0x4405('0x11')]);return _0x48f250(_0x4caa51[_0x4405('0xf')][_0x4405('0x11')]);}logger[_0x4405('0xf')](_0x4405('0xa'),_0x58eff2,_0x4caa51[_0x4405('0xf')]['message']);return _0x4b965b(_0x4caa51[_0x4405('0xf')][_0x4405('0x11')]);}else{logger[_0x4405('0x9')]('OpenchannelApplication,\x20%s,\x20%s',_0x58eff2,'request\x20sent');_0x4b965b(_0x4caa51['result'][_0x4405('0x11')]);}})['catch'](function(_0x3c26a9){logger[_0x4405('0xf')](_0x4405('0xa'),_0x58eff2,_0x3c26a9);_0x48f250(_0x3c26a9);});});}exports[_0x4405('0x12')]=function(_0xc429f7){var _0x1b5a0f=this;return new Promise(function(_0x418076,_0x256ee0){return db['OpenchannelApplication'][_0x4405('0x13')](_0xc429f7[_0x4405('0x14')],{'raw':_0xc429f7[_0x4405('0x15')]?_0xc429f7[_0x4405('0x15')][_0x4405('0x16')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xc429f7[_0x4405('0x15')]?_0xc429f7['options']['where']||null:null,'attributes':_0xc429f7[_0x4405('0x15')]?_0xc429f7['options'][_0x4405('0x17')]||null:null,'limit':_0xc429f7['options']?_0xc429f7[_0x4405('0x15')]['limit']||null:null})['then'](function(_0x131a55){logger[_0x4405('0x9')](_0x4405('0x12'),_0xc429f7);logger[_0x4405('0xc')]('UpdateOpenchannelApplication',_0xc429f7,JSON[_0x4405('0xe')](_0x131a55));_0x418076(_0x131a55);})[_0x4405('0x18')](function(_0x29c7bd){logger[_0x4405('0xf')]('UpdateOpenchannelApplication',_0x29c7bd[_0x4405('0x11')],_0xc429f7);_0x256ee0(_0x1b5a0f[_0x4405('0xf')](0x1f4,_0x29c7bd[_0x4405('0x11')]));});});};
\ No newline at end of file