Built motion from commit 4c281f94.|2.6.31
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index b8efe62..3bca0d9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbe13=['message','OpenchannelApplication,\x20%s,\x20%s','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','body','raw','options','where','attributes','limit','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','OpenchannelApplication,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x2d4661,_0x2da65c){var _0x42ed1e=function(_0x263c50){while(--_0x263c50){_0x2d4661['push'](_0x2d4661['shift']());}};_0x42ed1e(++_0x2da65c);}(_0xbe13,0x13f));var _0x3be1=function(_0x50a957,_0x445378){_0x50a957=_0x50a957-0x0;var _0x5262c4=_0xbe13[_0x50a957];return _0x5262c4;};'use strict';var _=require(_0x3be1('0x0'));var util=require(_0x3be1('0x1'));var moment=require(_0x3be1('0x2'));var BPromise=require(_0x3be1('0x3'));var rs=require(_0x3be1('0x4'));var fs=require('fs');var Redis=require(_0x3be1('0x5'));var db=require(_0x3be1('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x3be1('0x7'))('rpc');var config=require(_0x3be1('0x8'));var jayson=require(_0x3be1('0x9'));var client=jayson[_0x3be1('0xa')][_0x3be1('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5b7071,_0x41c1c6,_0x46330a){return new BPromise(function(_0x448fe4,_0x17ac16){return client[_0x3be1('0xc')](_0x5b7071,_0x46330a)[_0x3be1('0xd')](function(_0x282715){logger[_0x3be1('0xe')]('OpenchannelApplication,\x20%s,\x20%s',_0x41c1c6,_0x3be1('0xf'));logger[_0x3be1('0x10')](_0x3be1('0x11'),_0x41c1c6,'request\x20sent',JSON[_0x3be1('0x12')](_0x282715));if(_0x282715[_0x3be1('0x13')]){if(_0x282715[_0x3be1('0x13')][_0x3be1('0x14')]===0x1f4){logger[_0x3be1('0x13')]('OpenchannelApplication,\x20%s,\x20%s',_0x41c1c6,_0x282715[_0x3be1('0x13')][_0x3be1('0x15')]);return _0x17ac16(_0x282715[_0x3be1('0x13')][_0x3be1('0x15')]);}logger['error'](_0x3be1('0x16'),_0x41c1c6,_0x282715['error'][_0x3be1('0x15')]);return _0x448fe4(_0x282715['error'][_0x3be1('0x15')]);}else{logger[_0x3be1('0xe')](_0x3be1('0x16'),_0x41c1c6,_0x3be1('0xf'));_0x448fe4(_0x282715[_0x3be1('0x17')][_0x3be1('0x15')]);}})[_0x3be1('0x18')](function(_0x4a5bbe){logger[_0x3be1('0x13')](_0x3be1('0x16'),_0x41c1c6,_0x4a5bbe);_0x17ac16(_0x4a5bbe);});});}exports[_0x3be1('0x19')]=function(_0x2c6765){var _0x38ea8e=this;return new Promise(function(_0x5b8d23,_0x46fc45){return db[_0x3be1('0x1a')][_0x3be1('0x1b')](_0x2c6765[_0x3be1('0x1c')],{'raw':_0x2c6765['options']?_0x2c6765['options'][_0x3be1('0x1d')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2c6765[_0x3be1('0x1e')]?_0x2c6765[_0x3be1('0x1e')][_0x3be1('0x1f')]||null:null,'attributes':_0x2c6765[_0x3be1('0x1e')]?_0x2c6765['options'][_0x3be1('0x20')]||null:null,'limit':_0x2c6765['options']?_0x2c6765['options'][_0x3be1('0x21')]||null:null})['then'](function(_0x3679ef){logger[_0x3be1('0xe')]('UpdateOpenchannelApplication',_0x2c6765);logger[_0x3be1('0x10')](_0x3be1('0x19'),_0x2c6765,JSON[_0x3be1('0x12')](_0x3679ef));_0x5b8d23(_0x3679ef);})['catch'](function(_0x32a413){logger[_0x3be1('0x13')](_0x3be1('0x19'),_0x32a413[_0x3be1('0x15')],_0x2c6765);_0x46fc45(_0x38ea8e['error'](0x1f4,_0x32a413['message']));});});};
\ No newline at end of file
+var _0x5c9f=['UpdateOpenchannelApplication','OpenchannelApplication','update','body','options','raw','attributes','limit','debug','stringify','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','OpenchannelApplication,\x20%s,\x20%s,\x20%s','error','code','message','info','result'];(function(_0x9bb2c3,_0x3edacf){var _0x3f77c7=function(_0xb9c8){while(--_0xb9c8){_0x9bb2c3['push'](_0x9bb2c3['shift']());}};_0x3f77c7(++_0x3edacf);}(_0x5c9f,0x1c5));var _0xf5c9=function(_0x508c10,_0x5a15f0){_0x508c10=_0x508c10-0x0;var _0x3108b5=_0x5c9f[_0x508c10];return _0x3108b5;};'use strict';var _=require(_0xf5c9('0x0'));var util=require('util');var moment=require(_0xf5c9('0x1'));var BPromise=require(_0xf5c9('0x2'));var rs=require(_0xf5c9('0x3'));var fs=require('fs');var Redis=require(_0xf5c9('0x4'));var db=require(_0xf5c9('0x5'))['db'];var utils=require(_0xf5c9('0x6'));var logger=require(_0xf5c9('0x7'))(_0xf5c9('0x8'));var config=require(_0xf5c9('0x9'));var jayson=require(_0xf5c9('0xa'));var client=jayson[_0xf5c9('0xb')][_0xf5c9('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x31436c,_0x4a03e5,_0x108f90){return new BPromise(function(_0x2ce6b2,_0x1bbfd8){return client[_0xf5c9('0xd')](_0x31436c,_0x108f90)[_0xf5c9('0xe')](function(_0x5b1647){logger['info'](_0xf5c9('0xf'),_0x4a03e5,_0xf5c9('0x10'));logger['debug'](_0xf5c9('0x11'),_0x4a03e5,_0xf5c9('0x10'),JSON['stringify'](_0x5b1647));if(_0x5b1647[_0xf5c9('0x12')]){if(_0x5b1647[_0xf5c9('0x12')][_0xf5c9('0x13')]===0x1f4){logger[_0xf5c9('0x12')](_0xf5c9('0xf'),_0x4a03e5,_0x5b1647[_0xf5c9('0x12')]['message']);return _0x1bbfd8(_0x5b1647['error'][_0xf5c9('0x14')]);}logger[_0xf5c9('0x12')](_0xf5c9('0xf'),_0x4a03e5,_0x5b1647['error'][_0xf5c9('0x14')]);return _0x2ce6b2(_0x5b1647[_0xf5c9('0x12')][_0xf5c9('0x14')]);}else{logger[_0xf5c9('0x15')](_0xf5c9('0xf'),_0x4a03e5,'request\x20sent');_0x2ce6b2(_0x5b1647[_0xf5c9('0x16')][_0xf5c9('0x14')]);}})['catch'](function(_0x4578e0){logger['error'](_0xf5c9('0xf'),_0x4a03e5,_0x4578e0);_0x1bbfd8(_0x4578e0);});});}exports[_0xf5c9('0x17')]=function(_0x356d91){var _0x32f27a=this;return new Promise(function(_0x739ae2,_0x3b4ddd){return db[_0xf5c9('0x18')][_0xf5c9('0x19')](_0x356d91[_0xf5c9('0x1a')],{'raw':_0x356d91[_0xf5c9('0x1b')]?_0x356d91[_0xf5c9('0x1b')][_0xf5c9('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x356d91[_0xf5c9('0x1b')]?_0x356d91[_0xf5c9('0x1b')]['where']||null:null,'attributes':_0x356d91[_0xf5c9('0x1b')]?_0x356d91[_0xf5c9('0x1b')][_0xf5c9('0x1d')]||null:null,'limit':_0x356d91[_0xf5c9('0x1b')]?_0x356d91[_0xf5c9('0x1b')][_0xf5c9('0x1e')]||null:null})[_0xf5c9('0xe')](function(_0xce821f){logger[_0xf5c9('0x15')](_0xf5c9('0x17'),_0x356d91);logger[_0xf5c9('0x1f')](_0xf5c9('0x17'),_0x356d91,JSON[_0xf5c9('0x20')](_0xce821f));_0x739ae2(_0xce821f);})[_0xf5c9('0x21')](function(_0x10845e){logger['error'](_0xf5c9('0x17'),_0x10845e[_0xf5c9('0x14')],_0x356d91);_0x3b4ddd(_0x32f27a['error'](0x1f4,_0x10845e['message']));});});};
\ No newline at end of file