Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / jscriptyProject / jscriptyProject.rpc.js
index a01c068..e77d80c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8e74=['jayson/promise','client','request','info','JscriptyProject,\x20%s,\x20%s','JscriptyProject,\x20%s,\x20%s,\x20%s','stringify','error','message','request\x20sent','lodash','moment','bluebird','randomstring','ioredis','../../config/utils','rpc','../../config/environment'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x8e74,0x1de));var _0x48e7=function(_0x476bf4,_0x2a3755){_0x476bf4=_0x476bf4-0x0;var _0x788ffe=_0x8e74[_0x476bf4];return _0x788ffe;};'use strict';var _=require(_0x48e7('0x0'));var util=require('util');var moment=require(_0x48e7('0x1'));var BPromise=require(_0x48e7('0x2'));var rs=require(_0x48e7('0x3'));var fs=require('fs');var Redis=require(_0x48e7('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x48e7('0x5'));var logger=require('../../config/logger')(_0x48e7('0x6'));var config=require(_0x48e7('0x7'));var jayson=require(_0x48e7('0x8'));var client=jayson[_0x48e7('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x546733,_0x5863d2,_0x3587a6){return new BPromise(function(_0x21e570,_0x5847fe){return client[_0x48e7('0xa')](_0x546733,_0x3587a6)['then'](function(_0x1417f5){logger[_0x48e7('0xb')](_0x48e7('0xc'),_0x5863d2,'request\x20sent');logger['debug'](_0x48e7('0xd'),_0x5863d2,'request\x20sent',JSON[_0x48e7('0xe')](_0x1417f5));if(_0x1417f5[_0x48e7('0xf')]){if(_0x1417f5[_0x48e7('0xf')]['code']===0x1f4){logger['error'](_0x48e7('0xc'),_0x5863d2,_0x1417f5[_0x48e7('0xf')][_0x48e7('0x10')]);return _0x5847fe(_0x1417f5[_0x48e7('0xf')][_0x48e7('0x10')]);}logger[_0x48e7('0xf')](_0x48e7('0xc'),_0x5863d2,_0x1417f5['error'][_0x48e7('0x10')]);return _0x21e570(_0x1417f5['error'][_0x48e7('0x10')]);}else{logger['info']('JscriptyProject,\x20%s,\x20%s',_0x5863d2,_0x48e7('0x11'));_0x21e570(_0x1417f5['result'][_0x48e7('0x10')]);}})['catch'](function(_0x51f1a9){logger['error'](_0x48e7('0xc'),_0x5863d2,_0x51f1a9);_0x5847fe(_0x51f1a9);});});}
\ No newline at end of file
+var _0xe14f=['info','request\x20sent','debug','JscriptyProject,\x20%s,\x20%s,\x20%s','stringify','error','code','JscriptyProject,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','then'];(function(_0x4a1066,_0x4f349d){var _0x40fbc5=function(_0x4f68e6){while(--_0x4f68e6){_0x4a1066['push'](_0x4a1066['shift']());}};_0x40fbc5(++_0x4f349d);}(_0xe14f,0xcb));var _0xfe14=function(_0x42a360,_0x205a2c){_0x42a360=_0x42a360-0x0;var _0x54270c=_0xe14f[_0x42a360];return _0x54270c;};'use strict';var _=require(_0xfe14('0x0'));var util=require(_0xfe14('0x1'));var moment=require(_0xfe14('0x2'));var BPromise=require(_0xfe14('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xfe14('0x4'));var db=require(_0xfe14('0x5'))['db'];var utils=require(_0xfe14('0x6'));var logger=require('../../config/logger')(_0xfe14('0x7'));var config=require(_0xfe14('0x8'));var jayson=require(_0xfe14('0x9'));var client=jayson[_0xfe14('0xa')][_0xfe14('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x569f26,_0x29c7bd,_0x1ed83a){return new BPromise(function(_0x313932,_0x11db1c){return client['request'](_0x569f26,_0x1ed83a)[_0xfe14('0xc')](function(_0x1671d2){logger[_0xfe14('0xd')]('JscriptyProject,\x20%s,\x20%s',_0x29c7bd,_0xfe14('0xe'));logger[_0xfe14('0xf')](_0xfe14('0x10'),_0x29c7bd,_0xfe14('0xe'),JSON[_0xfe14('0x11')](_0x1671d2));if(_0x1671d2[_0xfe14('0x12')]){if(_0x1671d2[_0xfe14('0x12')][_0xfe14('0x13')]===0x1f4){logger[_0xfe14('0x12')](_0xfe14('0x14'),_0x29c7bd,_0x1671d2[_0xfe14('0x12')][_0xfe14('0x15')]);return _0x11db1c(_0x1671d2[_0xfe14('0x12')][_0xfe14('0x15')]);}logger[_0xfe14('0x12')](_0xfe14('0x14'),_0x29c7bd,_0x1671d2[_0xfe14('0x12')][_0xfe14('0x15')]);return _0x313932(_0x1671d2['error'][_0xfe14('0x15')]);}else{logger[_0xfe14('0xd')](_0xfe14('0x14'),_0x29c7bd,_0xfe14('0xe'));_0x313932(_0x1671d2[_0xfe14('0x16')][_0xfe14('0x15')]);}})[_0xfe14('0x17')](function(_0x571ab9){logger[_0xfe14('0x12')]('JscriptyProject,\x20%s,\x20%s',_0x29c7bd,_0x571ab9);_0x11db1c(_0x571ab9);});});}
\ No newline at end of file