Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / cmList / cmList.rpc.js
index 6f16ccb..4afda36 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x03f0=['redis','localhost','socket.io-emitter','./cmList.socket','register','then','info','request\x20sent','debug','CmList,\x20%s,\x20%s,\x20%s','stringify','error','code','CmList,\x20%s,\x20%s','message','result','catch','util','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x440b56,_0x146230){var _0x4d1d13=function(_0xb98af2){while(--_0xb98af2){_0x440b56['push'](_0x440b56['shift']());}};_0x4d1d13(++_0x146230);}(_0x03f0,0xe9));var _0x003f=function(_0x9cd6f1,_0x29cbe0){_0x9cd6f1=_0x9cd6f1-0x0;var _0x22c381=_0x03f0[_0x9cd6f1];return _0x22c381;};'use strict';var _=require('lodash');var util=require(_0x003f('0x0'));var moment=require('moment');var BPromise=require(_0x003f('0x1'));var rs=require(_0x003f('0x2'));var fs=require('fs');var Redis=require(_0x003f('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x003f('0x4'))(_0x003f('0x5'));var config=require(_0x003f('0x6'));var jayson=require(_0x003f('0x7'));var client=jayson[_0x003f('0x8')][_0x003f('0x9')]({'port':0x232a});config[_0x003f('0xa')]=_['defaults'](config[_0x003f('0xa')],{'host':_0x003f('0xb'),'port':0x18eb});var socket=require(_0x003f('0xc'))(new Redis(config[_0x003f('0xa')]));require(_0x003f('0xd'))[_0x003f('0xe')](socket);function respondWithRpcPromise(_0x11eea2,_0xb288df,_0x5d11e8){return new BPromise(function(_0x184620,_0x487bbd){return client['request'](_0x11eea2,_0x5d11e8)[_0x003f('0xf')](function(_0x40631f){logger[_0x003f('0x10')]('CmList,\x20%s,\x20%s',_0xb288df,_0x003f('0x11'));logger[_0x003f('0x12')](_0x003f('0x13'),_0xb288df,_0x003f('0x11'),JSON[_0x003f('0x14')](_0x40631f));if(_0x40631f['error']){if(_0x40631f[_0x003f('0x15')][_0x003f('0x16')]===0x1f4){logger[_0x003f('0x15')](_0x003f('0x17'),_0xb288df,_0x40631f[_0x003f('0x15')][_0x003f('0x18')]);return _0x487bbd(_0x40631f[_0x003f('0x15')][_0x003f('0x18')]);}logger['error'](_0x003f('0x17'),_0xb288df,_0x40631f['error'][_0x003f('0x18')]);return _0x184620(_0x40631f[_0x003f('0x15')][_0x003f('0x18')]);}else{logger[_0x003f('0x10')](_0x003f('0x17'),_0xb288df,_0x003f('0x11'));_0x184620(_0x40631f[_0x003f('0x19')][_0x003f('0x18')]);}})[_0x003f('0x1a')](function(_0x35ad3a){logger[_0x003f('0x15')](_0x003f('0x17'),_0xb288df,_0x35ad3a);_0x487bbd(_0x35ad3a);});});}
\ No newline at end of file
+var _0x9905=['../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','redis','defaults','socket.io-emitter','./cmList.socket','register','request','then','CmList,\x20%s,\x20%s','request\x20sent','debug','CmList,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb'];(function(_0x1f27b1,_0x2e69cf){var _0x3a33ff=function(_0x1d7bce){while(--_0x1d7bce){_0x1f27b1['push'](_0x1f27b1['shift']());}};_0x3a33ff(++_0x2e69cf);}(_0x9905,0x1d6));var _0x5990=function(_0x3e1878,_0x4aab06){_0x3e1878=_0x3e1878-0x0;var _0x17331d=_0x9905[_0x3e1878];return _0x17331d;};'use strict';var _=require(_0x5990('0x0'));var util=require(_0x5990('0x1'));var moment=require(_0x5990('0x2'));var BPromise=require(_0x5990('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x5990('0x4'));var db=require(_0x5990('0x5'))['db'];var utils=require(_0x5990('0x6'));var logger=require(_0x5990('0x7'))('rpc');var config=require(_0x5990('0x8'));var jayson=require(_0x5990('0x9'));var client=jayson['client'][_0x5990('0xa')]({'port':0x232a});config[_0x5990('0xb')]=_[_0x5990('0xc')](config[_0x5990('0xb')],{'host':'localhost','port':0x18eb});var socket=require(_0x5990('0xd'))(new Redis(config['redis']));require(_0x5990('0xe'))[_0x5990('0xf')](socket);function respondWithRpcPromise(_0x355d29,_0x513961,_0x14770c){return new BPromise(function(_0x1d514e,_0x44cc5c){return client[_0x5990('0x10')](_0x355d29,_0x14770c)[_0x5990('0x11')](function(_0x46a8c2){logger['info'](_0x5990('0x12'),_0x513961,_0x5990('0x13'));logger[_0x5990('0x14')](_0x5990('0x15'),_0x513961,_0x5990('0x13'),JSON[_0x5990('0x16')](_0x46a8c2));if(_0x46a8c2[_0x5990('0x17')]){if(_0x46a8c2[_0x5990('0x17')][_0x5990('0x18')]===0x1f4){logger[_0x5990('0x17')](_0x5990('0x12'),_0x513961,_0x46a8c2[_0x5990('0x17')][_0x5990('0x19')]);return _0x44cc5c(_0x46a8c2[_0x5990('0x17')]['message']);}logger[_0x5990('0x17')](_0x5990('0x12'),_0x513961,_0x46a8c2['error'][_0x5990('0x19')]);return _0x1d514e(_0x46a8c2['error']['message']);}else{logger[_0x5990('0x1a')](_0x5990('0x12'),_0x513961,_0x5990('0x13'));_0x1d514e(_0x46a8c2['result'][_0x5990('0x19')]);}})[_0x5990('0x1b')](function(_0x1d6598){logger[_0x5990('0x17')]('CmList,\x20%s,\x20%s',_0x513961,_0x1d6598);_0x44cc5c(_0x1d6598);});});}
\ No newline at end of file