Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / jscriptyProject / jscriptyProject.rpc.js
index f3f009d..095b57e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xce8e=['moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','http','request','then','info','JscriptyProject,\x20%s,\x20%s','request\x20sent','debug','JscriptyProject,\x20%s,\x20%s,\x20%s','error','message','result','catch','util'];(function(_0x1f7120,_0x53456a){var _0x512142=function(_0xae9761){while(--_0xae9761){_0x1f7120['push'](_0x1f7120['shift']());}};_0x512142(++_0x53456a);}(_0xce8e,0xd1));var _0xece8=function(_0x2bc075,_0x3ccbdf){_0x2bc075=_0x2bc075-0x0;var _0x342ad0=_0xce8e[_0x2bc075];return _0x342ad0;};'use strict';var _=require('lodash');var util=require(_0xece8('0x0'));var moment=require(_0xece8('0x1'));var BPromise=require(_0xece8('0x2'));var rs=require(_0xece8('0x3'));var fs=require('fs');var Redis=require(_0xece8('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xece8('0x5'));var logger=require(_0xece8('0x6'))(_0xece8('0x7'));var config=require(_0xece8('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0xece8('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x55cdd3,_0x2e3a5a,_0x1911be){return new BPromise(function(_0x104227,_0xec1a7){return client[_0xece8('0xa')](_0x55cdd3,_0x1911be)[_0xece8('0xb')](function(_0x3d1cf1){logger[_0xece8('0xc')](_0xece8('0xd'),_0x2e3a5a,_0xece8('0xe'));logger[_0xece8('0xf')](_0xece8('0x10'),_0x2e3a5a,'request\x20sent',JSON['stringify'](_0x3d1cf1));if(_0x3d1cf1[_0xece8('0x11')]){if(_0x3d1cf1['error']['code']===0x1f4){logger[_0xece8('0x11')](_0xece8('0xd'),_0x2e3a5a,_0x3d1cf1[_0xece8('0x11')][_0xece8('0x12')]);return _0xec1a7(_0x3d1cf1[_0xece8('0x11')][_0xece8('0x12')]);}logger['error'](_0xece8('0xd'),_0x2e3a5a,_0x3d1cf1[_0xece8('0x11')]['message']);return _0x104227(_0x3d1cf1[_0xece8('0x11')][_0xece8('0x12')]);}else{logger[_0xece8('0xc')](_0xece8('0xd'),_0x2e3a5a,_0xece8('0xe'));_0x104227(_0x3d1cf1[_0xece8('0x13')]['message']);}})[_0xece8('0x14')](function(_0x1904b3){logger[_0xece8('0x11')](_0xece8('0xd'),_0x2e3a5a,_0x1904b3);_0xec1a7(_0x1904b3);});});}
\ No newline at end of file
+var _0x6283=['catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','rpc','jayson/promise','http','request','then','info','JscriptyProject,\x20%s,\x20%s','request\x20sent','JscriptyProject,\x20%s,\x20%s,\x20%s','stringify','error','message','result'];(function(_0x330d1f,_0x47c710){var _0x1df784=function(_0x3ec796){while(--_0x3ec796){_0x330d1f['push'](_0x330d1f['shift']());}};_0x1df784(++_0x47c710);}(_0x6283,0x7f));var _0x3628=function(_0x39c818,_0x22aba6){_0x39c818=_0x39c818-0x0;var _0x1dc170=_0x6283[_0x39c818];return _0x1dc170;};'use strict';var _=require(_0x3628('0x0'));var util=require(_0x3628('0x1'));var moment=require(_0x3628('0x2'));var BPromise=require(_0x3628('0x3'));var rs=require(_0x3628('0x4'));var fs=require('fs');var Redis=require(_0x3628('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x3628('0x6'));var logger=require('../../config/logger')(_0x3628('0x7'));var config=require('../../config/environment');var jayson=require(_0x3628('0x8'));var client=jayson['client'][_0x3628('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2c07ea,_0x16eb5e,_0x5d49e0){return new BPromise(function(_0x5ecbff,_0x445e2a){return client[_0x3628('0xa')](_0x2c07ea,_0x5d49e0)[_0x3628('0xb')](function(_0x23f745){logger[_0x3628('0xc')](_0x3628('0xd'),_0x16eb5e,_0x3628('0xe'));logger['debug'](_0x3628('0xf'),_0x16eb5e,_0x3628('0xe'),JSON[_0x3628('0x10')](_0x23f745));if(_0x23f745[_0x3628('0x11')]){if(_0x23f745['error']['code']===0x1f4){logger['error'](_0x3628('0xd'),_0x16eb5e,_0x23f745[_0x3628('0x11')]['message']);return _0x445e2a(_0x23f745[_0x3628('0x11')][_0x3628('0x12')]);}logger[_0x3628('0x11')](_0x3628('0xd'),_0x16eb5e,_0x23f745['error'][_0x3628('0x12')]);return _0x5ecbff(_0x23f745[_0x3628('0x11')]['message']);}else{logger['info'](_0x3628('0xd'),_0x16eb5e,_0x3628('0xe'));_0x5ecbff(_0x23f745[_0x3628('0x13')][_0x3628('0x12')]);}})[_0x3628('0x14')](function(_0x23ba00){logger['error']('JscriptyProject,\x20%s,\x20%s',_0x16eb5e,_0x23ba00);_0x445e2a(_0x23ba00);});});}
\ No newline at end of file