Built motion from commit 7ab0e143.|2.5.49
[motion2.git] / server / api / openchannelApplication / openchannelApplication.rpc.js
index ba296ce..dd8f7f8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5fe4=['then','request\x20sent','debug','stringify','error','OpenchannelApplication,\x20%s,\x20%s','message','info','catch','UpdateOpenchannelApplication','OpenchannelApplication','body','options','raw','where','attributes','limit','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','http','request'];(function(_0x24b3fd,_0x3d7922){var _0x5bebf4=function(_0x39dfdc){while(--_0x39dfdc){_0x24b3fd['push'](_0x24b3fd['shift']());}};_0x5bebf4(++_0x3d7922);}(_0x5fe4,0x1c1));var _0x45fe=function(_0x1304b2,_0x104075){_0x1304b2=_0x1304b2-0x0;var _0x1d1155=_0x5fe4[_0x1304b2];return _0x1d1155;};'use strict';var _=require('lodash');var util=require(_0x45fe('0x0'));var moment=require(_0x45fe('0x1'));var BPromise=require('bluebird');var rs=require(_0x45fe('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x45fe('0x3'))['db'];var utils=require(_0x45fe('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0x45fe('0x5'));var jayson=require(_0x45fe('0x6'));var client=jayson[_0x45fe('0x7')][_0x45fe('0x8')]({'port':0x232a});function respondWithRpcPromise(_0xe98a66,_0x188a49,_0x4166fb){return new BPromise(function(_0x29fd9f,_0x473041){return client[_0x45fe('0x9')](_0xe98a66,_0x4166fb)[_0x45fe('0xa')](function(_0x419f87){logger['info']('OpenchannelApplication,\x20%s,\x20%s',_0x188a49,_0x45fe('0xb'));logger[_0x45fe('0xc')]('OpenchannelApplication,\x20%s,\x20%s,\x20%s',_0x188a49,_0x45fe('0xb'),JSON[_0x45fe('0xd')](_0x419f87));if(_0x419f87[_0x45fe('0xe')]){if(_0x419f87[_0x45fe('0xe')]['code']===0x1f4){logger['error'](_0x45fe('0xf'),_0x188a49,_0x419f87[_0x45fe('0xe')][_0x45fe('0x10')]);return _0x473041(_0x419f87['error'][_0x45fe('0x10')]);}logger['error'](_0x45fe('0xf'),_0x188a49,_0x419f87[_0x45fe('0xe')][_0x45fe('0x10')]);return _0x29fd9f(_0x419f87[_0x45fe('0xe')]['message']);}else{logger[_0x45fe('0x11')](_0x45fe('0xf'),_0x188a49,_0x45fe('0xb'));_0x29fd9f(_0x419f87['result'][_0x45fe('0x10')]);}})[_0x45fe('0x12')](function(_0x3516ae){logger[_0x45fe('0xe')](_0x45fe('0xf'),_0x188a49,_0x3516ae);_0x473041(_0x3516ae);});});}exports[_0x45fe('0x13')]=function(_0x1be1ba){var _0x3f4ab6=this;return new Promise(function(_0x550980,_0xdd63dc){return db[_0x45fe('0x14')]['update'](_0x1be1ba[_0x45fe('0x15')],{'raw':_0x1be1ba[_0x45fe('0x16')]?_0x1be1ba['options'][_0x45fe('0x17')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1be1ba['options']?_0x1be1ba['options'][_0x45fe('0x18')]||null:null,'attributes':_0x1be1ba[_0x45fe('0x16')]?_0x1be1ba[_0x45fe('0x16')][_0x45fe('0x19')]||null:null,'limit':_0x1be1ba[_0x45fe('0x16')]?_0x1be1ba[_0x45fe('0x16')][_0x45fe('0x1a')]||null:null})['then'](function(_0x46e526){logger[_0x45fe('0x11')](_0x45fe('0x13'),_0x1be1ba);logger['debug']('UpdateOpenchannelApplication',_0x1be1ba,JSON[_0x45fe('0xd')](_0x46e526));_0x550980(_0x46e526);})[_0x45fe('0x12')](function(_0x6f9ef5){logger[_0x45fe('0xe')](_0x45fe('0x13'),_0x6f9ef5[_0x45fe('0x10')],_0x1be1ba);_0xdd63dc(_0x3f4ab6[_0x45fe('0xe')](0x1f4,_0x6f9ef5[_0x45fe('0x10')]));});});};
\ No newline at end of file
+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