Built motion from commit e2351160.|2.5.50
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index dd8f7f8..b3c8681 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd25b=['catch','UpdateOpenchannelApplication','OpenchannelApplication','options','raw','where','attributes','then','lodash','util','moment','bluebird','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','request','info','OpenchannelApplication,\x20%s,\x20%s','debug','stringify','error','code','message','request\x20sent','result'];(function(_0x53c257,_0x202e70){var _0x3d1e8f=function(_0x386cd7){while(--_0x386cd7){_0x53c257['push'](_0x53c257['shift']());}};_0x3d1e8f(++_0x202e70);}(_0xd25b,0xaa));var _0xbd25=function(_0x3336d4,_0x4c4305){_0x3336d4=_0x3336d4-0x0;var _0x4f15f6=_0xd25b[_0x3336d4];return _0x4f15f6;};'use strict';var _=require(_0xbd25('0x0'));var util=require(_0xbd25('0x1'));var moment=require(_0xbd25('0x2'));var BPromise=require(_0xbd25('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xbd25('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xbd25('0x5'))('rpc');var config=require(_0xbd25('0x6'));var jayson=require(_0xbd25('0x7'));var client=jayson[_0xbd25('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x15634f,_0x50ee96,_0xed943){return new BPromise(function(_0x591370,_0x249a4d){return client[_0xbd25('0x9')](_0x15634f,_0xed943)['then'](function(_0x2ecc3c){logger[_0xbd25('0xa')](_0xbd25('0xb'),_0x50ee96,'request\x20sent');logger[_0xbd25('0xc')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x50ee96,'request\x20sent',JSON[_0xbd25('0xd')](_0x2ecc3c));if(_0x2ecc3c[_0xbd25('0xe')]){if(_0x2ecc3c['error'][_0xbd25('0xf')]===0x1f4){logger[_0xbd25('0xe')](_0xbd25('0xb'),_0x50ee96,_0x2ecc3c[_0xbd25('0xe')][_0xbd25('0x10')]);return _0x249a4d(_0x2ecc3c[_0xbd25('0xe')][_0xbd25('0x10')]);}logger[_0xbd25('0xe')]('OpenchannelApplication,\x20%s,\x20%s',_0x50ee96,_0x2ecc3c[_0xbd25('0xe')][_0xbd25('0x10')]);return _0x591370(_0x2ecc3c[_0xbd25('0xe')][_0xbd25('0x10')]);}else{logger[_0xbd25('0xa')]('OpenchannelApplication,\x20%s,\x20%s',_0x50ee96,_0xbd25('0x11'));_0x591370(_0x2ecc3c[_0xbd25('0x12')][_0xbd25('0x10')]);}})[_0xbd25('0x13')](function(_0x5c997b){logger[_0xbd25('0xe')](_0xbd25('0xb'),_0x50ee96,_0x5c997b);_0x249a4d(_0x5c997b);});});}exports[_0xbd25('0x14')]=function(_0x376494){var _0xb779be=this;return new Promise(function(_0x1958e5,_0x4e569a){return db[_0xbd25('0x15')]['update'](_0x376494['body'],{'raw':_0x376494[_0xbd25('0x16')]?_0x376494[_0xbd25('0x16')][_0xbd25('0x17')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x376494[_0xbd25('0x16')]?_0x376494['options'][_0xbd25('0x18')]||null:null,'attributes':_0x376494['options']?_0x376494[_0xbd25('0x16')][_0xbd25('0x19')]||null:null,'limit':_0x376494[_0xbd25('0x16')]?_0x376494['options']['limit']||null:null})[_0xbd25('0x1a')](function(_0x3dfeef){logger[_0xbd25('0xa')](_0xbd25('0x14'),_0x376494);logger[_0xbd25('0xc')](_0xbd25('0x14'),_0x376494,JSON[_0xbd25('0xd')](_0x3dfeef));_0x1958e5(_0x3dfeef);})['catch'](function(_0x376e4b){logger[_0xbd25('0xe')]('UpdateOpenchannelApplication',_0x376e4b['message'],_0x376494);_0x4e569a(_0xb779be[_0xbd25('0xe')](0x1f4,_0x376e4b['message']));});});};
\ No newline at end of file
+var _0x34a3=['request\x20sent','debug','error','code','OpenchannelApplication,\x20%s,\x20%s','message','result','catch','OpenchannelApplication','body','options','raw','where','attributes','limit','UpdateOpenchannelApplication','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','then','info'];(function(_0x36ee10,_0x3e4e4b){var _0x1ae7e8=function(_0x138916){while(--_0x138916){_0x36ee10['push'](_0x36ee10['shift']());}};_0x1ae7e8(++_0x3e4e4b);}(_0x34a3,0x1c3));var _0x334a=function(_0x1f9faf,_0x227808){_0x1f9faf=_0x1f9faf-0x0;var _0x13ab2c=_0x34a3[_0x1f9faf];return _0x13ab2c;};'use strict';var _=require(_0x334a('0x0'));var util=require(_0x334a('0x1'));var moment=require(_0x334a('0x2'));var BPromise=require(_0x334a('0x3'));var rs=require(_0x334a('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x334a('0x5'))['db'];var utils=require(_0x334a('0x6'));var logger=require(_0x334a('0x7'))(_0x334a('0x8'));var config=require('../../config/environment');var jayson=require(_0x334a('0x9'));var client=jayson['client'][_0x334a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x30f2e2,_0x3f90b7,_0x49d4f2){return new BPromise(function(_0x50f90b,_0x48c274){return client['request'](_0x30f2e2,_0x49d4f2)[_0x334a('0xb')](function(_0xe2bdae){logger[_0x334a('0xc')]('OpenchannelApplication,\x20%s,\x20%s',_0x3f90b7,_0x334a('0xd'));logger[_0x334a('0xe')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x3f90b7,_0x334a('0xd'),JSON['stringify'](_0xe2bdae));if(_0xe2bdae[_0x334a('0xf')]){if(_0xe2bdae[_0x334a('0xf')][_0x334a('0x10')]===0x1f4){logger['error'](_0x334a('0x11'),_0x3f90b7,_0xe2bdae['error'][_0x334a('0x12')]);return _0x48c274(_0xe2bdae['error']['message']);}logger[_0x334a('0xf')]('OpenchannelApplication,\x20%s,\x20%s',_0x3f90b7,_0xe2bdae['error'][_0x334a('0x12')]);return _0x50f90b(_0xe2bdae[_0x334a('0xf')][_0x334a('0x12')]);}else{logger[_0x334a('0xc')](_0x334a('0x11'),_0x3f90b7,_0x334a('0xd'));_0x50f90b(_0xe2bdae[_0x334a('0x13')][_0x334a('0x12')]);}})[_0x334a('0x14')](function(_0x2c56de){logger[_0x334a('0xf')](_0x334a('0x11'),_0x3f90b7,_0x2c56de);_0x48c274(_0x2c56de);});});}exports['UpdateOpenchannelApplication']=function(_0x4721df){var _0x2b1f07=this;return new Promise(function(_0x4c8d30,_0x51fa87){return db[_0x334a('0x15')]['update'](_0x4721df[_0x334a('0x16')],{'raw':_0x4721df['options']?_0x4721df[_0x334a('0x17')][_0x334a('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4721df[_0x334a('0x17')]?_0x4721df[_0x334a('0x17')][_0x334a('0x19')]||null:null,'attributes':_0x4721df['options']?_0x4721df[_0x334a('0x17')][_0x334a('0x1a')]||null:null,'limit':_0x4721df[_0x334a('0x17')]?_0x4721df[_0x334a('0x17')][_0x334a('0x1b')]||null:null})[_0x334a('0xb')](function(_0x32e6d5){logger[_0x334a('0xc')](_0x334a('0x1c'),_0x4721df);logger[_0x334a('0xe')](_0x334a('0x1c'),_0x4721df,JSON['stringify'](_0x32e6d5));_0x4c8d30(_0x32e6d5);})['catch'](function(_0x24563f){logger[_0x334a('0xf')](_0x334a('0x1c'),_0x24563f['message'],_0x4721df);_0x51fa87(_0x2b1f07[_0x334a('0xf')](0x1f4,_0x24563f[_0x334a('0x12')]));});});};
\ No newline at end of file