Built motion from commit (unavailable).|2.3.93
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 963be87..62043a2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4cfa=['update','body','options','raw','where','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','UpdateOpenchannelApplication','OpenchannelApplication'];(function(_0x1763f2,_0x29f8e9){var _0xcc8175=function(_0x19d8e2){while(--_0x19d8e2){_0x1763f2['push'](_0x1763f2['shift']());}};_0xcc8175(++_0x29f8e9);}(_0x4cfa,0xb9));var _0xa4cf=function(_0x50c50b,_0x3a6fb3){_0x50c50b=_0x50c50b-0x0;var _0x423c29=_0x4cfa[_0x50c50b];return _0x423c29;};'use strict';var _=require(_0xa4cf('0x0'));var util=require(_0xa4cf('0x1'));var moment=require(_0xa4cf('0x2'));var BPromise=require(_0xa4cf('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa4cf('0x4'));var db=require(_0xa4cf('0x5'))['db'];var utils=require(_0xa4cf('0x6'));var logger=require(_0xa4cf('0x7'))(_0xa4cf('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xa4cf('0x9')][_0xa4cf('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3e5ad2,_0x2982fb,_0x501ff6){return new BPromise(function(_0xd81ac9,_0x1d48c8){return client[_0xa4cf('0xb')](_0x3e5ad2,_0x501ff6)[_0xa4cf('0xc')](function(_0x4968cc){logger[_0xa4cf('0xd')](_0xa4cf('0xe'),_0x2982fb,'request\x20sent');logger[_0xa4cf('0xf')](_0xa4cf('0x10'),_0x2982fb,'request\x20sent',JSON[_0xa4cf('0x11')](_0x4968cc));if(_0x4968cc['error']){if(_0x4968cc[_0xa4cf('0x12')][_0xa4cf('0x13')]===0x1f4){logger[_0xa4cf('0x12')](_0xa4cf('0xe'),_0x2982fb,_0x4968cc[_0xa4cf('0x12')][_0xa4cf('0x14')]);return _0x1d48c8(_0x4968cc[_0xa4cf('0x12')]['message']);}logger[_0xa4cf('0x12')]('OpenchannelApplication,\x20%s,\x20%s',_0x2982fb,_0x4968cc[_0xa4cf('0x12')][_0xa4cf('0x14')]);return _0xd81ac9(_0x4968cc['error']['message']);}else{logger[_0xa4cf('0xd')]('OpenchannelApplication,\x20%s,\x20%s',_0x2982fb,'request\x20sent');_0xd81ac9(_0x4968cc[_0xa4cf('0x15')]['message']);}})[_0xa4cf('0x16')](function(_0xce8c8e){logger[_0xa4cf('0x12')](_0xa4cf('0xe'),_0x2982fb,_0xce8c8e);_0x1d48c8(_0xce8c8e);});});}exports[_0xa4cf('0x17')]=function(_0x7ba179){var _0x55f9eb=this;return new Promise(function(_0x134368,_0x1db09f){return db[_0xa4cf('0x18')][_0xa4cf('0x19')](_0x7ba179[_0xa4cf('0x1a')],{'raw':_0x7ba179[_0xa4cf('0x1b')]?_0x7ba179[_0xa4cf('0x1b')][_0xa4cf('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x7ba179[_0xa4cf('0x1b')]?_0x7ba179['options'][_0xa4cf('0x1d')]||null:null,'attributes':_0x7ba179[_0xa4cf('0x1b')]?_0x7ba179[_0xa4cf('0x1b')]['attributes']||null:null,'limit':_0x7ba179[_0xa4cf('0x1b')]?_0x7ba179[_0xa4cf('0x1b')]['limit']||null:null})['then'](function(_0x543ca1){logger[_0xa4cf('0xd')](_0xa4cf('0x17'),_0x7ba179);logger[_0xa4cf('0xf')]('UpdateOpenchannelApplication',_0x7ba179,JSON[_0xa4cf('0x11')](_0x543ca1));_0x134368(_0x543ca1);})[_0xa4cf('0x16')](function(_0x1a2628){logger[_0xa4cf('0x12')]('UpdateOpenchannelApplication',_0x1a2628['message'],_0x7ba179);_0x1db09f(_0x55f9eb[_0xa4cf('0x12')](0x1f4,_0x1a2628[_0xa4cf('0x14')]));});});};
\ No newline at end of file
+var _0x38a1=['lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','info','result','catch','update','body','raw','options','where','attributes','limit','UpdateOpenchannelApplication'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x38a1,0x160));var _0x138a=function(_0x44dd17,_0x3caaf7){_0x44dd17=_0x44dd17-0x0;var _0x372f92=_0x38a1[_0x44dd17];return _0x372f92;};'use strict';var _=require(_0x138a('0x0'));var util=require(_0x138a('0x1'));var moment=require(_0x138a('0x2'));var BPromise=require('bluebird');var rs=require(_0x138a('0x3'));var fs=require('fs');var Redis=require(_0x138a('0x4'));var db=require(_0x138a('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x138a('0x6'))(_0x138a('0x7'));var config=require(_0x138a('0x8'));var jayson=require(_0x138a('0x9'));var client=jayson[_0x138a('0xa')][_0x138a('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1247b6,_0x3a6386,_0x4a4499){return new BPromise(function(_0x2e5837,_0x1bd255){return client[_0x138a('0xc')](_0x1247b6,_0x4a4499)[_0x138a('0xd')](function(_0x25b93e){logger['info'](_0x138a('0xe'),_0x3a6386,_0x138a('0xf'));logger[_0x138a('0x10')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x3a6386,_0x138a('0xf'),JSON[_0x138a('0x11')](_0x25b93e));if(_0x25b93e[_0x138a('0x12')]){if(_0x25b93e[_0x138a('0x12')][_0x138a('0x13')]===0x1f4){logger['error']('OpenchannelApplication,\x20%s,\x20%s',_0x3a6386,_0x25b93e['error'][_0x138a('0x14')]);return _0x1bd255(_0x25b93e[_0x138a('0x12')]['message']);}logger[_0x138a('0x12')](_0x138a('0xe'),_0x3a6386,_0x25b93e[_0x138a('0x12')][_0x138a('0x14')]);return _0x2e5837(_0x25b93e[_0x138a('0x12')][_0x138a('0x14')]);}else{logger[_0x138a('0x15')](_0x138a('0xe'),_0x3a6386,_0x138a('0xf'));_0x2e5837(_0x25b93e[_0x138a('0x16')][_0x138a('0x14')]);}})[_0x138a('0x17')](function(_0x14b8ed){logger[_0x138a('0x12')](_0x138a('0xe'),_0x3a6386,_0x14b8ed);_0x1bd255(_0x14b8ed);});});}exports['UpdateOpenchannelApplication']=function(_0x3f5307){var _0x5001d0=this;return new Promise(function(_0x2244be,_0x4be507){return db['OpenchannelApplication'][_0x138a('0x18')](_0x3f5307[_0x138a('0x19')],{'raw':_0x3f5307['options']?_0x3f5307['options'][_0x138a('0x1a')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f5307[_0x138a('0x1b')]?_0x3f5307['options'][_0x138a('0x1c')]||null:null,'attributes':_0x3f5307[_0x138a('0x1b')]?_0x3f5307[_0x138a('0x1b')][_0x138a('0x1d')]||null:null,'limit':_0x3f5307['options']?_0x3f5307[_0x138a('0x1b')][_0x138a('0x1e')]||null:null})['then'](function(_0x141af7){logger[_0x138a('0x15')](_0x138a('0x1f'),_0x3f5307);logger[_0x138a('0x10')]('UpdateOpenchannelApplication',_0x3f5307,JSON[_0x138a('0x11')](_0x141af7));_0x2244be(_0x141af7);})[_0x138a('0x17')](function(_0x51a099){logger[_0x138a('0x12')](_0x138a('0x1f'),_0x51a099[_0x138a('0x14')],_0x3f5307);_0x4be507(_0x5001d0[_0x138a('0x12')](0x1f4,_0x51a099[_0x138a('0x14')]));});});};
\ No newline at end of file