Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / cmCompany / cmCompany.rpc.js
index c65c473..9db75f4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7b5f=['../../config/logger','rpc','../../config/environment','jayson/promise','request','then','info','CmCompany,\x20%s,\x20%s','request\x20sent','CmCompany,\x20%s,\x20%s,\x20%s','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x5944e9,_0xf3da60){var _0x1098b8=function(_0x265f4){while(--_0x265f4){_0x5944e9['push'](_0x5944e9['shift']());}};_0x1098b8(++_0xf3da60);}(_0x7b5f,0x92));var _0xf7b5=function(_0x523cef,_0x3f95e2){_0x523cef=_0x523cef-0x0;var _0x28def2=_0x7b5f[_0x523cef];return _0x28def2;};'use strict';var _=require(_0xf7b5('0x0'));var util=require(_0xf7b5('0x1'));var moment=require(_0xf7b5('0x2'));var BPromise=require(_0xf7b5('0x3'));var rs=require(_0xf7b5('0x4'));var fs=require('fs');var Redis=require(_0xf7b5('0x5'));var db=require(_0xf7b5('0x6'))['db'];var utils=require(_0xf7b5('0x7'));var logger=require(_0xf7b5('0x8'))(_0xf7b5('0x9'));var config=require(_0xf7b5('0xa'));var jayson=require(_0xf7b5('0xb'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x30a203,_0x5edd90,_0x474a12){return new BPromise(function(_0x56ac37,_0xcc1409){return client[_0xf7b5('0xc')](_0x30a203,_0x474a12)[_0xf7b5('0xd')](function(_0x421a63){logger[_0xf7b5('0xe')](_0xf7b5('0xf'),_0x5edd90,_0xf7b5('0x10'));logger['debug'](_0xf7b5('0x11'),_0x5edd90,'request\x20sent',JSON['stringify'](_0x421a63));if(_0x421a63[_0xf7b5('0x12')]){if(_0x421a63[_0xf7b5('0x12')]['code']===0x1f4){logger[_0xf7b5('0x12')](_0xf7b5('0xf'),_0x5edd90,_0x421a63[_0xf7b5('0x12')][_0xf7b5('0x13')]);return _0xcc1409(_0x421a63[_0xf7b5('0x12')][_0xf7b5('0x13')]);}logger[_0xf7b5('0x12')]('CmCompany,\x20%s,\x20%s',_0x5edd90,_0x421a63['error'][_0xf7b5('0x13')]);return _0x56ac37(_0x421a63['error'][_0xf7b5('0x13')]);}else{logger[_0xf7b5('0xe')](_0xf7b5('0xf'),_0x5edd90,_0xf7b5('0x10'));_0x56ac37(_0x421a63[_0xf7b5('0x14')][_0xf7b5('0x13')]);}})[_0xf7b5('0x15')](function(_0x52d21a){logger[_0xf7b5('0x12')](_0xf7b5('0xf'),_0x5edd90,_0x52d21a);_0xcc1409(_0x52d21a);});});}
\ No newline at end of file
+var _0x7f63=['../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','then','info','request\x20sent','debug','CmCompany,\x20%s,\x20%s,\x20%s','stringify','error','code','CmCompany,\x20%s,\x20%s','message','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x3022d6,_0x1d6ef4){var _0x14787a=function(_0x5001f5){while(--_0x5001f5){_0x3022d6['push'](_0x3022d6['shift']());}};_0x14787a(++_0x1d6ef4);}(_0x7f63,0x13c));var _0x37f6=function(_0x28b3aa,_0x352f31){_0x28b3aa=_0x28b3aa-0x0;var _0x2332fb=_0x7f63[_0x28b3aa];return _0x2332fb;};'use strict';var _=require('lodash');var util=require(_0x37f6('0x0'));var moment=require(_0x37f6('0x1'));var BPromise=require(_0x37f6('0x2'));var rs=require(_0x37f6('0x3'));var fs=require('fs');var Redis=require(_0x37f6('0x4'));var db=require(_0x37f6('0x5'))['db'];var utils=require(_0x37f6('0x6'));var logger=require(_0x37f6('0x7'))('rpc');var config=require(_0x37f6('0x8'));var jayson=require(_0x37f6('0x9'));var client=jayson[_0x37f6('0xa')][_0x37f6('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x30d763,_0x3ff9f7,_0x52416b){return new BPromise(function(_0x3bcce1,_0x32f021){return client['request'](_0x30d763,_0x52416b)[_0x37f6('0xc')](function(_0x21a2b7){logger[_0x37f6('0xd')]('CmCompany,\x20%s,\x20%s',_0x3ff9f7,_0x37f6('0xe'));logger[_0x37f6('0xf')](_0x37f6('0x10'),_0x3ff9f7,_0x37f6('0xe'),JSON[_0x37f6('0x11')](_0x21a2b7));if(_0x21a2b7[_0x37f6('0x12')]){if(_0x21a2b7['error'][_0x37f6('0x13')]===0x1f4){logger[_0x37f6('0x12')](_0x37f6('0x14'),_0x3ff9f7,_0x21a2b7[_0x37f6('0x12')][_0x37f6('0x15')]);return _0x32f021(_0x21a2b7[_0x37f6('0x12')][_0x37f6('0x15')]);}logger[_0x37f6('0x12')](_0x37f6('0x14'),_0x3ff9f7,_0x21a2b7[_0x37f6('0x12')][_0x37f6('0x15')]);return _0x3bcce1(_0x21a2b7[_0x37f6('0x12')][_0x37f6('0x15')]);}else{logger[_0x37f6('0xd')](_0x37f6('0x14'),_0x3ff9f7,'request\x20sent');_0x3bcce1(_0x21a2b7['result']['message']);}})[_0x37f6('0x16')](function(_0x23a50b){logger[_0x37f6('0x12')](_0x37f6('0x14'),_0x3ff9f7,_0x23a50b);_0x32f021(_0x23a50b);});});}
\ No newline at end of file