Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / jscriptyProject / jscriptyProject.rpc.js
index b9e5b00..ea77991 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6d6f=['moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','request','info','JscriptyProject,\x20%s,\x20%s','request\x20sent','debug','JscriptyProject,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util'];(function(_0x27b409,_0x2186a3){var _0x4a1d34=function(_0x16eecf){while(--_0x16eecf){_0x27b409['push'](_0x27b409['shift']());}};_0x4a1d34(++_0x2186a3);}(_0x6d6f,0x1b7));var _0xf6d6=function(_0x2ec2bf,_0x64e983){_0x2ec2bf=_0x2ec2bf-0x0;var _0x2c279c=_0x6d6f[_0x2ec2bf];return _0x2c279c;};'use strict';var _=require(_0xf6d6('0x0'));var util=require(_0xf6d6('0x1'));var moment=require(_0xf6d6('0x2'));var BPromise=require(_0xf6d6('0x3'));var rs=require(_0xf6d6('0x4'));var fs=require('fs');var Redis=require(_0xf6d6('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xf6d6('0x6'))(_0xf6d6('0x7'));var config=require(_0xf6d6('0x8'));var jayson=require(_0xf6d6('0x9'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x40d6f1,_0x4252c9,_0x3c0657){return new BPromise(function(_0x971b09,_0xf7407f){return client[_0xf6d6('0xa')](_0x40d6f1,_0x3c0657)['then'](function(_0x4250dc){logger[_0xf6d6('0xb')](_0xf6d6('0xc'),_0x4252c9,_0xf6d6('0xd'));logger[_0xf6d6('0xe')](_0xf6d6('0xf'),_0x4252c9,_0xf6d6('0xd'),JSON[_0xf6d6('0x10')](_0x4250dc));if(_0x4250dc[_0xf6d6('0x11')]){if(_0x4250dc[_0xf6d6('0x11')][_0xf6d6('0x12')]===0x1f4){logger['error'](_0xf6d6('0xc'),_0x4252c9,_0x4250dc[_0xf6d6('0x11')][_0xf6d6('0x13')]);return _0xf7407f(_0x4250dc[_0xf6d6('0x11')][_0xf6d6('0x13')]);}logger['error']('JscriptyProject,\x20%s,\x20%s',_0x4252c9,_0x4250dc[_0xf6d6('0x11')][_0xf6d6('0x13')]);return _0x971b09(_0x4250dc['error'][_0xf6d6('0x13')]);}else{logger['info'](_0xf6d6('0xc'),_0x4252c9,_0xf6d6('0xd'));_0x971b09(_0x4250dc[_0xf6d6('0x14')][_0xf6d6('0x13')]);}})['catch'](function(_0xbb3c4e){logger['error']('JscriptyProject,\x20%s,\x20%s',_0x4252c9,_0xbb3c4e);_0xf7407f(_0xbb3c4e);});});}
\ No newline at end of file
+var _0x76a1=['stringify','error','code','message','catch','lodash','util','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','JscriptyProject,\x20%s,\x20%s','request\x20sent','debug','JscriptyProject,\x20%s,\x20%s,\x20%s'];(function(_0x2ac42c,_0x400eff){var _0x29b7f3=function(_0x2f9606){while(--_0x2f9606){_0x2ac42c['push'](_0x2ac42c['shift']());}};_0x29b7f3(++_0x400eff);}(_0x76a1,0x14f));var _0x176a=function(_0x2c751e,_0x2952b5){_0x2c751e=_0x2c751e-0x0;var _0x4e3ac8=_0x76a1[_0x2c751e];return _0x4e3ac8;};'use strict';var _=require(_0x176a('0x0'));var util=require(_0x176a('0x1'));var moment=require('moment');var BPromise=require(_0x176a('0x2'));var rs=require(_0x176a('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x176a('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x176a('0x5'))(_0x176a('0x6'));var config=require(_0x176a('0x7'));var jayson=require(_0x176a('0x8'));var client=jayson[_0x176a('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x59c6de,_0x2b1448,_0x1fdf1b){return new BPromise(function(_0x2fc2d7,_0x42a28c){return client[_0x176a('0xa')](_0x59c6de,_0x1fdf1b)[_0x176a('0xb')](function(_0x59de3b){logger[_0x176a('0xc')](_0x176a('0xd'),_0x2b1448,_0x176a('0xe'));logger[_0x176a('0xf')](_0x176a('0x10'),_0x2b1448,_0x176a('0xe'),JSON[_0x176a('0x11')](_0x59de3b));if(_0x59de3b[_0x176a('0x12')]){if(_0x59de3b[_0x176a('0x12')][_0x176a('0x13')]===0x1f4){logger[_0x176a('0x12')](_0x176a('0xd'),_0x2b1448,_0x59de3b['error'][_0x176a('0x14')]);return _0x42a28c(_0x59de3b[_0x176a('0x12')][_0x176a('0x14')]);}logger['error'](_0x176a('0xd'),_0x2b1448,_0x59de3b[_0x176a('0x12')][_0x176a('0x14')]);return _0x2fc2d7(_0x59de3b[_0x176a('0x12')][_0x176a('0x14')]);}else{logger[_0x176a('0xc')](_0x176a('0xd'),_0x2b1448,_0x176a('0xe'));_0x2fc2d7(_0x59de3b['result'][_0x176a('0x14')]);}})[_0x176a('0x15')](function(_0x299c5c){logger[_0x176a('0x12')](_0x176a('0xd'),_0x2b1448,_0x299c5c);_0x42a28c(_0x299c5c);});});}
\ No newline at end of file