Built motion from commit (unavailable).|2.0.70
[motion2.git] / server / api / jscriptyProject / jscriptyProject.rpc.js
index b76c91e..0a9531b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x202a=['moment','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','client','http','request','then','info','JscriptyProject,\x20%s,\x20%s','request\x20sent','debug','JscriptyProject,\x20%s,\x20%s,\x20%s','error','code','message','catch'];(function(_0x19329e,_0x48a91b){var _0x2103f6=function(_0x5f0104){while(--_0x5f0104){_0x19329e['push'](_0x19329e['shift']());}};_0x2103f6(++_0x48a91b);}(_0x202a,0x1db));var _0xa202=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x202a[_0x321bb2];return _0x9c12ed;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xa202('0x0'));var BPromise=require(_0xa202('0x1'));var rs=require(_0xa202('0x2'));var fs=require('fs');var db=require(_0xa202('0x3'))['db'];var utils=require(_0xa202('0x4'));var logger=require('../../config/logger')(_0xa202('0x5'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xa202('0x6')][_0xa202('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x4fe600,_0x33c89e,_0x4edac6){return new BPromise(function(_0x5dd257,_0x18f52a){return client[_0xa202('0x8')](_0x4fe600,_0x4edac6)[_0xa202('0x9')](function(_0x596969){logger[_0xa202('0xa')](_0xa202('0xb'),_0x33c89e,_0xa202('0xc'));logger[_0xa202('0xd')](_0xa202('0xe'),_0x33c89e,_0xa202('0xc'),JSON['stringify'](_0x596969));if(_0x596969[_0xa202('0xf')]){if(_0x596969[_0xa202('0xf')][_0xa202('0x10')]===0x1f4){logger[_0xa202('0xf')](_0xa202('0xb'),_0x33c89e,_0x596969['error'][_0xa202('0x11')]);return _0x18f52a(_0x596969[_0xa202('0xf')][_0xa202('0x11')]);}logger[_0xa202('0xf')](_0xa202('0xb'),_0x33c89e,_0x596969[_0xa202('0xf')]['message']);return _0x5dd257(_0x596969[_0xa202('0xf')][_0xa202('0x11')]);}else{logger[_0xa202('0xa')](_0xa202('0xb'),_0x33c89e,_0xa202('0xc'));_0x5dd257(_0x596969['result']['message']);}})[_0xa202('0x12')](function(_0x19c40e){logger[_0xa202('0xf')]('JscriptyProject,\x20%s,\x20%s',_0x33c89e,_0x19c40e);_0x18f52a(_0x19c40e);});});}
\ No newline at end of file
+var _0x3634=['../../config/utils','../../config/logger','http','then','info','JscriptyProject,\x20%s,\x20%s','request\x20sent','JscriptyProject,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','moment'];(function(_0x48d707,_0x30b4f9){var _0x327375=function(_0x4fa172){while(--_0x4fa172){_0x48d707['push'](_0x48d707['shift']());}};_0x327375(++_0x30b4f9);}(_0x3634,0x8e));var _0x4363=function(_0x467b70,_0x44a81b){_0x467b70=_0x467b70-0x0;var _0x2f3080=_0x3634[_0x467b70];return _0x2f3080;};'use strict';var _=require(_0x4363('0x0'));var util=require('util');var moment=require(_0x4363('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var db=require('../../mysqldb')['db'];var utils=require(_0x4363('0x2'));var logger=require(_0x4363('0x3'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0x4363('0x4')]({'port':0x232a});function respondWithRpcPromise(_0x35288c,_0x3b07d2,_0x20983a){return new BPromise(function(_0x48f005,_0x2e1e4a){return client['request'](_0x35288c,_0x20983a)[_0x4363('0x5')](function(_0x3aec63){logger[_0x4363('0x6')](_0x4363('0x7'),_0x3b07d2,_0x4363('0x8'));logger['debug'](_0x4363('0x9'),_0x3b07d2,'request\x20sent',JSON[_0x4363('0xa')](_0x3aec63));if(_0x3aec63[_0x4363('0xb')]){if(_0x3aec63[_0x4363('0xb')][_0x4363('0xc')]===0x1f4){logger[_0x4363('0xb')](_0x4363('0x7'),_0x3b07d2,_0x3aec63['error']['message']);return _0x2e1e4a(_0x3aec63[_0x4363('0xb')][_0x4363('0xd')]);}logger[_0x4363('0xb')]('JscriptyProject,\x20%s,\x20%s',_0x3b07d2,_0x3aec63[_0x4363('0xb')]['message']);return _0x48f005(_0x3aec63['error'][_0x4363('0xd')]);}else{logger[_0x4363('0x6')](_0x4363('0x7'),_0x3b07d2,_0x4363('0x8'));_0x48f005(_0x3aec63[_0x4363('0xe')][_0x4363('0xd')]);}})[_0x4363('0xf')](function(_0x255fe7){logger['error']('JscriptyProject,\x20%s,\x20%s',_0x3b07d2,_0x255fe7);_0x2e1e4a(_0x255fe7);});});}
\ No newline at end of file