Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / api / migration / migration.rpc.js
index 252e9c5..d82fefa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9137=['request\x20sent','Migration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','info','Migration,\x20%s,\x20%s'];(function(_0x54eddb,_0x5c27e0){var _0x12002b=function(_0x127559){while(--_0x127559){_0x54eddb['push'](_0x54eddb['shift']());}};_0x12002b(++_0x5c27e0);}(_0x9137,0x7b));var _0x7913=function(_0x4adce1,_0x41d240){_0x4adce1=_0x4adce1-0x0;var _0x9110fa=_0x9137[_0x4adce1];return _0x9110fa;};'use strict';var _=require(_0x7913('0x0'));var util=require(_0x7913('0x1'));var moment=require(_0x7913('0x2'));var BPromise=require(_0x7913('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7913('0x4'));var db=require(_0x7913('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x7913('0x6'))(_0x7913('0x7'));var config=require('../../config/environment');var jayson=require(_0x7913('0x8'));var client=jayson[_0x7913('0x9')][_0x7913('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x45e99c,_0x1226f2,_0x37f46b){return new BPromise(function(_0x479929,_0x38abbe){return client[_0x7913('0xb')](_0x45e99c,_0x37f46b)[_0x7913('0xc')](function(_0x52b5ef){logger[_0x7913('0xd')](_0x7913('0xe'),_0x1226f2,_0x7913('0xf'));logger['debug'](_0x7913('0x10'),_0x1226f2,'request\x20sent',JSON[_0x7913('0x11')](_0x52b5ef));if(_0x52b5ef['error']){if(_0x52b5ef[_0x7913('0x12')][_0x7913('0x13')]===0x1f4){logger['error'](_0x7913('0xe'),_0x1226f2,_0x52b5ef[_0x7913('0x12')][_0x7913('0x14')]);return _0x38abbe(_0x52b5ef[_0x7913('0x12')][_0x7913('0x14')]);}logger[_0x7913('0x12')](_0x7913('0xe'),_0x1226f2,_0x52b5ef[_0x7913('0x12')][_0x7913('0x14')]);return _0x479929(_0x52b5ef[_0x7913('0x12')][_0x7913('0x14')]);}else{logger[_0x7913('0xd')]('Migration,\x20%s,\x20%s',_0x1226f2,_0x7913('0xf'));_0x479929(_0x52b5ef[_0x7913('0x15')][_0x7913('0x14')]);}})[_0x7913('0x16')](function(_0x1ef8ca){logger[_0x7913('0x12')](_0x7913('0xe'),_0x1226f2,_0x1ef8ca);_0x38abbe(_0x1ef8ca);});});}
\ No newline at end of file
+var _0x85cf=['jayson/promise','client','request','info','debug','request\x20sent','stringify','error','code','Migration,\x20%s,\x20%s','message','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x53f6f2,_0x364bcf){var _0x14c5d3=function(_0x9b343a){while(--_0x9b343a){_0x53f6f2['push'](_0x53f6f2['shift']());}};_0x14c5d3(++_0x364bcf);}(_0x85cf,0x76));var _0xf85c=function(_0x1b713a,_0x252e46){_0x1b713a=_0x1b713a-0x0;var _0x1cbda5=_0x85cf[_0x1b713a];return _0x1cbda5;};'use strict';var _=require('lodash');var util=require(_0xf85c('0x0'));var moment=require(_0xf85c('0x1'));var BPromise=require(_0xf85c('0x2'));var rs=require(_0xf85c('0x3'));var fs=require('fs');var Redis=require(_0xf85c('0x4'));var db=require(_0xf85c('0x5'))['db'];var utils=require(_0xf85c('0x6'));var logger=require(_0xf85c('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0xf85c('0x8'));var client=jayson[_0xf85c('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x386a60,_0x41d08d,_0xe1be83){return new BPromise(function(_0x1bebcf,_0x1857d9){return client[_0xf85c('0xa')](_0x386a60,_0xe1be83)['then'](function(_0x25aa6e){logger[_0xf85c('0xb')]('Migration,\x20%s,\x20%s',_0x41d08d,'request\x20sent');logger[_0xf85c('0xc')]('Migration,\x20%s,\x20%s,\x20%s',_0x41d08d,_0xf85c('0xd'),JSON[_0xf85c('0xe')](_0x25aa6e));if(_0x25aa6e[_0xf85c('0xf')]){if(_0x25aa6e['error'][_0xf85c('0x10')]===0x1f4){logger[_0xf85c('0xf')](_0xf85c('0x11'),_0x41d08d,_0x25aa6e[_0xf85c('0xf')]['message']);return _0x1857d9(_0x25aa6e[_0xf85c('0xf')][_0xf85c('0x12')]);}logger[_0xf85c('0xf')](_0xf85c('0x11'),_0x41d08d,_0x25aa6e['error'][_0xf85c('0x12')]);return _0x1bebcf(_0x25aa6e['error'][_0xf85c('0x12')]);}else{logger['info'](_0xf85c('0x11'),_0x41d08d,'request\x20sent');_0x1bebcf(_0x25aa6e[_0xf85c('0x13')]['message']);}})[_0xf85c('0x14')](function(_0x30b768){logger[_0xf85c('0xf')](_0xf85c('0x11'),_0x41d08d,_0x30b768);_0x1857d9(_0x30b768);});});}
\ No newline at end of file