Built motion from commit 74d9782e.|2.6.30
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 82f6379..ab3024c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x482b=['rpc','../../config/environment','jayson/promise','client','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','UpdateOpenchannelApplication','OpenchannelApplication','update','body','options','raw','attributes','limit','debug','catch','util','moment','randomstring','ioredis'];(function(_0x4f5a1e,_0x5da98c){var _0x12fcd2=function(_0x5e8964){while(--_0x5e8964){_0x4f5a1e['push'](_0x4f5a1e['shift']());}};_0x12fcd2(++_0x5da98c);}(_0x482b,0x164));var _0xb482=function(_0x4ec1be,_0x50beed){_0x4ec1be=_0x4ec1be-0x0;var _0x35125b=_0x482b[_0x4ec1be];return _0x35125b;};'use strict';var _=require('lodash');var util=require(_0xb482('0x0'));var moment=require(_0xb482('0x1'));var BPromise=require('bluebird');var rs=require(_0xb482('0x2'));var fs=require('fs');var Redis=require(_0xb482('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xb482('0x4'));var config=require(_0xb482('0x5'));var jayson=require(_0xb482('0x6'));var client=jayson[_0xb482('0x7')][_0xb482('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x244a3a,_0x1d0ba,_0x3cb3a1){return new BPromise(function(_0x54a290,_0x4ba0f0){return client[_0xb482('0x9')](_0x244a3a,_0x3cb3a1)[_0xb482('0xa')](function(_0x48a1f9){logger[_0xb482('0xb')](_0xb482('0xc'),_0x1d0ba,_0xb482('0xd'));logger['debug'](_0xb482('0xe'),_0x1d0ba,_0xb482('0xd'),JSON[_0xb482('0xf')](_0x48a1f9));if(_0x48a1f9[_0xb482('0x10')]){if(_0x48a1f9[_0xb482('0x10')][_0xb482('0x11')]===0x1f4){logger[_0xb482('0x10')]('OpenchannelApplication,\x20%s,\x20%s',_0x1d0ba,_0x48a1f9[_0xb482('0x10')]['message']);return _0x4ba0f0(_0x48a1f9['error'][_0xb482('0x12')]);}logger[_0xb482('0x10')](_0xb482('0xc'),_0x1d0ba,_0x48a1f9[_0xb482('0x10')][_0xb482('0x12')]);return _0x54a290(_0x48a1f9[_0xb482('0x10')][_0xb482('0x12')]);}else{logger[_0xb482('0xb')](_0xb482('0xc'),_0x1d0ba,_0xb482('0xd'));_0x54a290(_0x48a1f9[_0xb482('0x13')]['message']);}})['catch'](function(_0x31d097){logger['error']('OpenchannelApplication,\x20%s,\x20%s',_0x1d0ba,_0x31d097);_0x4ba0f0(_0x31d097);});});}exports[_0xb482('0x14')]=function(_0x237c3a){var _0x192a5e=this;return new Promise(function(_0x5b0d47,_0x4e7828){return db[_0xb482('0x15')][_0xb482('0x16')](_0x237c3a[_0xb482('0x17')],{'raw':_0x237c3a[_0xb482('0x18')]?_0x237c3a[_0xb482('0x18')][_0xb482('0x19')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x237c3a['options']?_0x237c3a[_0xb482('0x18')]['where']||null:null,'attributes':_0x237c3a[_0xb482('0x18')]?_0x237c3a[_0xb482('0x18')][_0xb482('0x1a')]||null:null,'limit':_0x237c3a[_0xb482('0x18')]?_0x237c3a[_0xb482('0x18')][_0xb482('0x1b')]||null:null})['then'](function(_0xa6ddb2){logger[_0xb482('0xb')](_0xb482('0x14'),_0x237c3a);logger[_0xb482('0x1c')](_0xb482('0x14'),_0x237c3a,JSON[_0xb482('0xf')](_0xa6ddb2));_0x5b0d47(_0xa6ddb2);})[_0xb482('0x1d')](function(_0x530823){logger[_0xb482('0x10')](_0xb482('0x14'),_0x530823[_0xb482('0x12')],_0x237c3a);_0x4e7828(_0x192a5e[_0xb482('0x10')](0x1f4,_0x530823[_0xb482('0x12')]));});});};
\ No newline at end of file
+var _0x0640=['body','options','raw','where','attributes','limit','lodash','util','moment','bluebird','randomstring','../../config/utils','../../config/logger','jayson/promise','client','request','then','info','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','UpdateOpenchannelApplication','update'];(function(_0x11e942,_0x17c666){var _0xde6892=function(_0x2a09a9){while(--_0x2a09a9){_0x11e942['push'](_0x11e942['shift']());}};_0xde6892(++_0x17c666);}(_0x0640,0x18c));var _0x0064=function(_0x3f87a9,_0x25003d){_0x3f87a9=_0x3f87a9-0x0;var _0x2e4625=_0x0640[_0x3f87a9];return _0x2e4625;};'use strict';var _=require(_0x0064('0x0'));var util=require(_0x0064('0x1'));var moment=require(_0x0064('0x2'));var BPromise=require(_0x0064('0x3'));var rs=require(_0x0064('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x0064('0x5'));var logger=require(_0x0064('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0x0064('0x7'));var client=jayson[_0x0064('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x55b9c7,_0x5294be,_0xd66f7e){return new BPromise(function(_0xdd186a,_0xa5724){return client[_0x0064('0x9')](_0x55b9c7,_0xd66f7e)[_0x0064('0xa')](function(_0x37f91e){logger[_0x0064('0xb')](_0x0064('0xc'),_0x5294be,_0x0064('0xd'));logger[_0x0064('0xe')](_0x0064('0xf'),_0x5294be,_0x0064('0xd'),JSON[_0x0064('0x10')](_0x37f91e));if(_0x37f91e['error']){if(_0x37f91e[_0x0064('0x11')][_0x0064('0x12')]===0x1f4){logger[_0x0064('0x11')](_0x0064('0xc'),_0x5294be,_0x37f91e['error'][_0x0064('0x13')]);return _0xa5724(_0x37f91e['error']['message']);}logger[_0x0064('0x11')]('OpenchannelApplication,\x20%s,\x20%s',_0x5294be,_0x37f91e[_0x0064('0x11')][_0x0064('0x13')]);return _0xdd186a(_0x37f91e[_0x0064('0x11')][_0x0064('0x13')]);}else{logger[_0x0064('0xb')](_0x0064('0xc'),_0x5294be,_0x0064('0xd'));_0xdd186a(_0x37f91e[_0x0064('0x14')]['message']);}})[_0x0064('0x15')](function(_0x2e1693){logger[_0x0064('0x11')](_0x0064('0xc'),_0x5294be,_0x2e1693);_0xa5724(_0x2e1693);});});}exports[_0x0064('0x16')]=function(_0x1415d9){var _0xfe3cb=this;return new Promise(function(_0x437954,_0x2e2858){return db['OpenchannelApplication'][_0x0064('0x17')](_0x1415d9[_0x0064('0x18')],{'raw':_0x1415d9['options']?_0x1415d9[_0x0064('0x19')][_0x0064('0x1a')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1415d9[_0x0064('0x19')]?_0x1415d9[_0x0064('0x19')][_0x0064('0x1b')]||null:null,'attributes':_0x1415d9['options']?_0x1415d9[_0x0064('0x19')][_0x0064('0x1c')]||null:null,'limit':_0x1415d9[_0x0064('0x19')]?_0x1415d9[_0x0064('0x19')][_0x0064('0x1d')]||null:null})[_0x0064('0xa')](function(_0x54182e){logger[_0x0064('0xb')]('UpdateOpenchannelApplication',_0x1415d9);logger['debug']('UpdateOpenchannelApplication',_0x1415d9,JSON[_0x0064('0x10')](_0x54182e));_0x437954(_0x54182e);})[_0x0064('0x15')](function(_0x957d81){logger['error'](_0x0064('0x16'),_0x957d81[_0x0064('0x13')],_0x1415d9);_0x2e2858(_0xfe3cb['error'](0x1f4,_0x957d81[_0x0064('0x13')]));});});};
\ No newline at end of file