Built motion from commit 8c034dcd.|2.6.31
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index 90be476..777f0ca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x41a8=['OpenchannelApplication','update','options','raw','attributes','limit','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','UpdateOpenchannelApplication'];(function(_0x129bab,_0x13fc75){var _0x39f8ee=function(_0x14852a){while(--_0x14852a){_0x129bab['push'](_0x129bab['shift']());}};_0x39f8ee(++_0x13fc75);}(_0x41a8,0x1aa));var _0x841a=function(_0x1b2c4e,_0x418ad2){_0x1b2c4e=_0x1b2c4e-0x0;var _0x48bb84=_0x41a8[_0x1b2c4e];return _0x48bb84;};'use strict';var _=require('lodash');var util=require(_0x841a('0x0'));var moment=require(_0x841a('0x1'));var BPromise=require(_0x841a('0x2'));var rs=require(_0x841a('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x841a('0x4'))['db'];var utils=require(_0x841a('0x5'));var logger=require('../../config/logger')(_0x841a('0x6'));var config=require(_0x841a('0x7'));var jayson=require(_0x841a('0x8'));var client=jayson[_0x841a('0x9')][_0x841a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3fd14a,_0x1cef68,_0x3fb4f8){return new BPromise(function(_0x56af99,_0x1de4ea){return client[_0x841a('0xb')](_0x3fd14a,_0x3fb4f8)[_0x841a('0xc')](function(_0xcc5838){logger[_0x841a('0xd')](_0x841a('0xe'),_0x1cef68,_0x841a('0xf'));logger[_0x841a('0x10')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x1cef68,_0x841a('0xf'),JSON[_0x841a('0x11')](_0xcc5838));if(_0xcc5838[_0x841a('0x12')]){if(_0xcc5838[_0x841a('0x12')][_0x841a('0x13')]===0x1f4){logger[_0x841a('0x12')](_0x841a('0xe'),_0x1cef68,_0xcc5838[_0x841a('0x12')][_0x841a('0x14')]);return _0x1de4ea(_0xcc5838['error'][_0x841a('0x14')]);}logger[_0x841a('0x12')](_0x841a('0xe'),_0x1cef68,_0xcc5838[_0x841a('0x12')]['message']);return _0x56af99(_0xcc5838[_0x841a('0x12')]['message']);}else{logger[_0x841a('0xd')](_0x841a('0xe'),_0x1cef68,_0x841a('0xf'));_0x56af99(_0xcc5838[_0x841a('0x15')][_0x841a('0x14')]);}})[_0x841a('0x16')](function(_0x2d9ad3){logger['error'](_0x841a('0xe'),_0x1cef68,_0x2d9ad3);_0x1de4ea(_0x2d9ad3);});});}exports[_0x841a('0x17')]=function(_0x20018f){var _0x522e59=this;return new Promise(function(_0xfec195,_0x8c144c){return db[_0x841a('0x18')][_0x841a('0x19')](_0x20018f['body'],{'raw':_0x20018f[_0x841a('0x1a')]?_0x20018f['options'][_0x841a('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x20018f[_0x841a('0x1a')]?_0x20018f[_0x841a('0x1a')]['where']||null:null,'attributes':_0x20018f[_0x841a('0x1a')]?_0x20018f[_0x841a('0x1a')][_0x841a('0x1c')]||null:null,'limit':_0x20018f[_0x841a('0x1a')]?_0x20018f[_0x841a('0x1a')][_0x841a('0x1d')]||null:null})[_0x841a('0xc')](function(_0x11f408){logger[_0x841a('0xd')](_0x841a('0x17'),_0x20018f);logger[_0x841a('0x10')]('UpdateOpenchannelApplication',_0x20018f,JSON[_0x841a('0x11')](_0x11f408));_0xfec195(_0x11f408);})[_0x841a('0x16')](function(_0xe333ce){logger[_0x841a('0x12')]('UpdateOpenchannelApplication',_0xe333ce['message'],_0x20018f);_0x8c144c(_0x522e59[_0x841a('0x12')](0x1f4,_0xe333ce[_0x841a('0x14')]));});});};
\ No newline at end of file
+var _0xfb10=['randomstring','ioredis','../../config/utils','rpc','jayson/promise','client','http','request','then','OpenchannelApplication,\x20%s,\x20%s','request\x20sent','OpenchannelApplication,\x20%s,\x20%s,\x20%s','error','message','info','result','catch','UpdateOpenchannelApplication','OpenchannelApplication','update','body','options','raw','where','debug','stringify','lodash','util','bluebird'];(function(_0x1deb03,_0xd05ad8){var _0x189fe7=function(_0x321225){while(--_0x321225){_0x1deb03['push'](_0x1deb03['shift']());}};_0x189fe7(++_0xd05ad8);}(_0xfb10,0x1cd));var _0x0fb1=function(_0x2be5cd,_0xd9ea0d){_0x2be5cd=_0x2be5cd-0x0;var _0x48e55b=_0xfb10[_0x2be5cd];return _0x48e55b;};'use strict';var _=require(_0x0fb1('0x0'));var util=require(_0x0fb1('0x1'));var moment=require('moment');var BPromise=require(_0x0fb1('0x2'));var rs=require(_0x0fb1('0x3'));var fs=require('fs');var Redis=require(_0x0fb1('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x0fb1('0x5'));var logger=require('../../config/logger')(_0x0fb1('0x6'));var config=require('../../config/environment');var jayson=require(_0x0fb1('0x7'));var client=jayson[_0x0fb1('0x8')][_0x0fb1('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x34eddb,_0x5f478a,_0x57b788){return new BPromise(function(_0x807752,_0x32f93f){return client[_0x0fb1('0xa')](_0x34eddb,_0x57b788)[_0x0fb1('0xb')](function(_0x197d2e){logger['info'](_0x0fb1('0xc'),_0x5f478a,_0x0fb1('0xd'));logger['debug'](_0x0fb1('0xe'),_0x5f478a,_0x0fb1('0xd'),JSON['stringify'](_0x197d2e));if(_0x197d2e[_0x0fb1('0xf')]){if(_0x197d2e['error']['code']===0x1f4){logger[_0x0fb1('0xf')]('OpenchannelApplication,\x20%s,\x20%s',_0x5f478a,_0x197d2e['error'][_0x0fb1('0x10')]);return _0x32f93f(_0x197d2e[_0x0fb1('0xf')][_0x0fb1('0x10')]);}logger[_0x0fb1('0xf')](_0x0fb1('0xc'),_0x5f478a,_0x197d2e[_0x0fb1('0xf')][_0x0fb1('0x10')]);return _0x807752(_0x197d2e[_0x0fb1('0xf')][_0x0fb1('0x10')]);}else{logger[_0x0fb1('0x11')](_0x0fb1('0xc'),_0x5f478a,'request\x20sent');_0x807752(_0x197d2e[_0x0fb1('0x12')][_0x0fb1('0x10')]);}})[_0x0fb1('0x13')](function(_0x442074){logger[_0x0fb1('0xf')](_0x0fb1('0xc'),_0x5f478a,_0x442074);_0x32f93f(_0x442074);});});}exports[_0x0fb1('0x14')]=function(_0x60b62d){var _0x45b96e=this;return new Promise(function(_0x56fb5a,_0x2e8c6d){return db[_0x0fb1('0x15')][_0x0fb1('0x16')](_0x60b62d[_0x0fb1('0x17')],{'raw':_0x60b62d['options']?_0x60b62d[_0x0fb1('0x18')][_0x0fb1('0x19')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x60b62d['options']?_0x60b62d[_0x0fb1('0x18')][_0x0fb1('0x1a')]||null:null,'attributes':_0x60b62d[_0x0fb1('0x18')]?_0x60b62d[_0x0fb1('0x18')]['attributes']||null:null,'limit':_0x60b62d[_0x0fb1('0x18')]?_0x60b62d['options']['limit']||null:null})[_0x0fb1('0xb')](function(_0x1195ba){logger['info']('UpdateOpenchannelApplication',_0x60b62d);logger[_0x0fb1('0x1b')](_0x0fb1('0x14'),_0x60b62d,JSON[_0x0fb1('0x1c')](_0x1195ba));_0x56fb5a(_0x1195ba);})['catch'](function(_0x55c006){logger[_0x0fb1('0xf')](_0x0fb1('0x14'),_0x55c006[_0x0fb1('0x10')],_0x60b62d);_0x2e8c6d(_0x45b96e[_0x0fb1('0xf')](0x1f4,_0x55c006['message']));});});};
\ No newline at end of file