Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 64c1413..007b933 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x880e=['rpc','../../config/environment','jayson/promise','request','then','info','OpenchannelApplication,\x20%s,\x20%s','error','code','message','request\x20sent','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','options','raw','where','stringify','lodash','util','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x3be8a4,_0x580c92){var _0x439efa=function(_0x333fb8){while(--_0x333fb8){_0x3be8a4['push'](_0x3be8a4['shift']());}};_0x439efa(++_0x580c92);}(_0x880e,0x9b));var _0xe880=function(_0x1d1963,_0x32cc0e){_0x1d1963=_0x1d1963-0x0;var _0x3f58bb=_0x880e[_0x1d1963];return _0x3f58bb;};'use strict';var _=require(_0xe880('0x0'));var util=require(_0xe880('0x1'));var moment=require('moment');var BPromise=require(_0xe880('0x2'));var rs=require(_0xe880('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xe880('0x4'))['db'];var utils=require(_0xe880('0x5'));var logger=require(_0xe880('0x6'))(_0xe880('0x7'));var config=require(_0xe880('0x8'));var jayson=require(_0xe880('0x9'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x19dccb,_0x33fae3,_0x3b4d1f){return new BPromise(function(_0x4f1c4d,_0x168425){return client[_0xe880('0xa')](_0x19dccb,_0x3b4d1f)[_0xe880('0xb')](function(_0x4560f3){logger[_0xe880('0xc')](_0xe880('0xd'),_0x33fae3,'request\x20sent');logger['debug']('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x33fae3,'request\x20sent',JSON['stringify'](_0x4560f3));if(_0x4560f3[_0xe880('0xe')]){if(_0x4560f3[_0xe880('0xe')][_0xe880('0xf')]===0x1f4){logger['error']('OpenchannelApplication,\x20%s,\x20%s',_0x33fae3,_0x4560f3[_0xe880('0xe')][_0xe880('0x10')]);return _0x168425(_0x4560f3[_0xe880('0xe')][_0xe880('0x10')]);}logger[_0xe880('0xe')](_0xe880('0xd'),_0x33fae3,_0x4560f3[_0xe880('0xe')][_0xe880('0x10')]);return _0x4f1c4d(_0x4560f3[_0xe880('0xe')][_0xe880('0x10')]);}else{logger['info']('OpenchannelApplication,\x20%s,\x20%s',_0x33fae3,_0xe880('0x11'));_0x4f1c4d(_0x4560f3[_0xe880('0x12')][_0xe880('0x10')]);}})[_0xe880('0x13')](function(_0x4b4721){logger[_0xe880('0xe')](_0xe880('0xd'),_0x33fae3,_0x4b4721);_0x168425(_0x4b4721);});});}exports[_0xe880('0x14')]=function(_0x4ffa88){var _0x5162f4=this;return new Promise(function(_0x4789de,_0x506a79){return db[_0xe880('0x15')][_0xe880('0x16')](_0x4ffa88['body'],{'raw':_0x4ffa88[_0xe880('0x17')]?_0x4ffa88[_0xe880('0x17')][_0xe880('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4ffa88['options']?_0x4ffa88[_0xe880('0x17')][_0xe880('0x19')]||null:null,'attributes':_0x4ffa88[_0xe880('0x17')]?_0x4ffa88[_0xe880('0x17')]['attributes']||null:null,'limit':_0x4ffa88[_0xe880('0x17')]?_0x4ffa88[_0xe880('0x17')]['limit']||null:null})[_0xe880('0xb')](function(_0x5b6100){logger[_0xe880('0xc')](_0xe880('0x14'),_0x4ffa88);logger['debug']('UpdateOpenchannelApplication',_0x4ffa88,JSON[_0xe880('0x1a')](_0x5b6100));_0x4789de(_0x5b6100);})[_0xe880('0x13')](function(_0x3723be){logger[_0xe880('0xe')](_0xe880('0x14'),_0x3723be[_0xe880('0x10')],_0x4ffa88);_0x506a79(_0x5162f4['error'](0x1f4,_0x3723be[_0xe880('0x10')]));});});};
\ No newline at end of file
+var _0x9397=['then','info','request\x20sent','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','code','error','OpenchannelApplication,\x20%s,\x20%s','message','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','options','where','debug','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request'];(function(_0x25a597,_0xa4ae6d){var _0x2a5eb4=function(_0x3e36cb){while(--_0x3e36cb){_0x25a597['push'](_0x25a597['shift']());}};_0x2a5eb4(++_0xa4ae6d);}(_0x9397,0x84));var _0x7939=function(_0x15f8c6,_0x1e62bd){_0x15f8c6=_0x15f8c6-0x0;var _0x4c28ef=_0x9397[_0x15f8c6];return _0x4c28ef;};'use strict';var _=require(_0x7939('0x0'));var util=require(_0x7939('0x1'));var moment=require('moment');var BPromise=require(_0x7939('0x2'));var rs=require(_0x7939('0x3'));var fs=require('fs');var Redis=require(_0x7939('0x4'));var db=require(_0x7939('0x5'))['db'];var utils=require(_0x7939('0x6'));var logger=require(_0x7939('0x7'))(_0x7939('0x8'));var config=require(_0x7939('0x9'));var jayson=require(_0x7939('0xa'));var client=jayson['client'][_0x7939('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2f7cc6,_0xef2e2d,_0x4166da){return new BPromise(function(_0x2abaf1,_0x2ff856){return client[_0x7939('0xc')](_0x2f7cc6,_0x4166da)[_0x7939('0xd')](function(_0x27c280){logger[_0x7939('0xe')]('OpenchannelApplication,\x20%s,\x20%s',_0xef2e2d,_0x7939('0xf'));logger['debug'](_0x7939('0x10'),_0xef2e2d,_0x7939('0xf'),JSON[_0x7939('0x11')](_0x27c280));if(_0x27c280['error']){if(_0x27c280['error'][_0x7939('0x12')]===0x1f4){logger[_0x7939('0x13')](_0x7939('0x14'),_0xef2e2d,_0x27c280[_0x7939('0x13')][_0x7939('0x15')]);return _0x2ff856(_0x27c280['error']['message']);}logger[_0x7939('0x13')](_0x7939('0x14'),_0xef2e2d,_0x27c280[_0x7939('0x13')]['message']);return _0x2abaf1(_0x27c280[_0x7939('0x13')][_0x7939('0x15')]);}else{logger[_0x7939('0xe')](_0x7939('0x14'),_0xef2e2d,'request\x20sent');_0x2abaf1(_0x27c280['result'][_0x7939('0x15')]);}})[_0x7939('0x16')](function(_0x19bf05){logger[_0x7939('0x13')](_0x7939('0x14'),_0xef2e2d,_0x19bf05);_0x2ff856(_0x19bf05);});});}exports[_0x7939('0x17')]=function(_0x4e35ee){var _0x5a1f3e=this;return new Promise(function(_0x52e7c8,_0x11af62){return db[_0x7939('0x18')][_0x7939('0x19')](_0x4e35ee['body'],{'raw':_0x4e35ee['options']?_0x4e35ee[_0x7939('0x1a')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4e35ee['options']?_0x4e35ee['options'][_0x7939('0x1b')]||null:null,'attributes':_0x4e35ee[_0x7939('0x1a')]?_0x4e35ee[_0x7939('0x1a')]['attributes']||null:null,'limit':_0x4e35ee[_0x7939('0x1a')]?_0x4e35ee[_0x7939('0x1a')]['limit']||null:null})[_0x7939('0xd')](function(_0x202b3e){logger[_0x7939('0xe')](_0x7939('0x17'),_0x4e35ee);logger[_0x7939('0x1c')]('UpdateOpenchannelApplication',_0x4e35ee,JSON['stringify'](_0x202b3e));_0x52e7c8(_0x202b3e);})[_0x7939('0x16')](function(_0x45995b){logger['error']('UpdateOpenchannelApplication',_0x45995b[_0x7939('0x15')],_0x4e35ee);_0x11af62(_0x5a1f3e[_0x7939('0x13')](0x1f4,_0x45995b[_0x7939('0x15')]));});});};
\ No newline at end of file