Built motion from commit d9028345.|2.5.43
[motion2.git] / server / api / cmCompany / cmCompany.rpc.js
index 3d85296..6cc4ad2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x917f=['http','request','then','info','CmCompany,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x1a21d4,_0x42f41a){var _0x2434a9=function(_0x564512){while(--_0x564512){_0x1a21d4['push'](_0x1a21d4['shift']());}};_0x2434a9(++_0x42f41a);}(_0x917f,0x8a));var _0xf917=function(_0x4945fa,_0x2ff490){_0x4945fa=_0x4945fa-0x0;var _0x1715b9=_0x917f[_0x4945fa];return _0x1715b9;};'use strict';var _=require(_0xf917('0x0'));var util=require(_0xf917('0x1'));var moment=require(_0xf917('0x2'));var BPromise=require(_0xf917('0x3'));var rs=require(_0xf917('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf917('0x5'))['db'];var utils=require(_0xf917('0x6'));var logger=require(_0xf917('0x7'))(_0xf917('0x8'));var config=require(_0xf917('0x9'));var jayson=require(_0xf917('0xa'));var client=jayson[_0xf917('0xb')][_0xf917('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1dda15,_0x327523,_0x4cb8c0){return new BPromise(function(_0x378d78,_0x5ee5d0){return client[_0xf917('0xd')](_0x1dda15,_0x4cb8c0)[_0xf917('0xe')](function(_0x487f98){logger[_0xf917('0xf')](_0xf917('0x10'),_0x327523,'request\x20sent');logger[_0xf917('0x11')]('CmCompany,\x20%s,\x20%s,\x20%s',_0x327523,_0xf917('0x12'),JSON[_0xf917('0x13')](_0x487f98));if(_0x487f98[_0xf917('0x14')]){if(_0x487f98[_0xf917('0x14')][_0xf917('0x15')]===0x1f4){logger[_0xf917('0x14')](_0xf917('0x10'),_0x327523,_0x487f98[_0xf917('0x14')][_0xf917('0x16')]);return _0x5ee5d0(_0x487f98[_0xf917('0x14')]['message']);}logger[_0xf917('0x14')]('CmCompany,\x20%s,\x20%s',_0x327523,_0x487f98[_0xf917('0x14')][_0xf917('0x16')]);return _0x378d78(_0x487f98[_0xf917('0x14')][_0xf917('0x16')]);}else{logger[_0xf917('0xf')](_0xf917('0x10'),_0x327523,'request\x20sent');_0x378d78(_0x487f98[_0xf917('0x17')]['message']);}})[_0xf917('0x18')](function(_0x3e18e7){logger[_0xf917('0x14')](_0xf917('0x10'),_0x327523,_0x3e18e7);_0x5ee5d0(_0x3e18e7);});});}
\ No newline at end of file
+var _0x1922=['lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','http','then','info','CmCompany,\x20%s,\x20%s','request\x20sent','debug','CmCompany,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch'];(function(_0x5cdc04,_0x285349){var _0x409fa1=function(_0x51598b){while(--_0x51598b){_0x5cdc04['push'](_0x5cdc04['shift']());}};_0x409fa1(++_0x285349);}(_0x1922,0xb8));var _0x2192=function(_0x38ceb3,_0x18b292){_0x38ceb3=_0x38ceb3-0x0;var _0x23b646=_0x1922[_0x38ceb3];return _0x23b646;};'use strict';var _=require(_0x2192('0x0'));var util=require(_0x2192('0x1'));var moment=require(_0x2192('0x2'));var BPromise=require(_0x2192('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x2192('0x4'));var db=require(_0x2192('0x5'))['db'];var utils=require(_0x2192('0x6'));var logger=require('../../config/logger')(_0x2192('0x7'));var config=require(_0x2192('0x8'));var jayson=require(_0x2192('0x9'));var client=jayson['client'][_0x2192('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xe191af,_0x44f4a9,_0x1a10be){return new BPromise(function(_0x458a6a,_0x4a1131){return client['request'](_0xe191af,_0x1a10be)[_0x2192('0xb')](function(_0x2d928f){logger[_0x2192('0xc')](_0x2192('0xd'),_0x44f4a9,_0x2192('0xe'));logger[_0x2192('0xf')](_0x2192('0x10'),_0x44f4a9,_0x2192('0xe'),JSON[_0x2192('0x11')](_0x2d928f));if(_0x2d928f[_0x2192('0x12')]){if(_0x2d928f[_0x2192('0x12')][_0x2192('0x13')]===0x1f4){logger[_0x2192('0x12')](_0x2192('0xd'),_0x44f4a9,_0x2d928f[_0x2192('0x12')][_0x2192('0x14')]);return _0x4a1131(_0x2d928f[_0x2192('0x12')][_0x2192('0x14')]);}logger[_0x2192('0x12')](_0x2192('0xd'),_0x44f4a9,_0x2d928f[_0x2192('0x12')][_0x2192('0x14')]);return _0x458a6a(_0x2d928f[_0x2192('0x12')][_0x2192('0x14')]);}else{logger[_0x2192('0xc')](_0x2192('0xd'),_0x44f4a9,_0x2192('0xe'));_0x458a6a(_0x2d928f[_0x2192('0x15')]['message']);}})[_0x2192('0x16')](function(_0x2d56d6){logger[_0x2192('0x12')]('CmCompany,\x20%s,\x20%s',_0x44f4a9,_0x2d56d6);_0x4a1131(_0x2d56d6);});});}
\ No newline at end of file