Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / cmCompany / cmCompany.rpc.js
index 5847130..1338742 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcb1c=['result','catch','lodash','util','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','CmCompany,\x20%s,\x20%s','request\x20sent','CmCompany,\x20%s,\x20%s,\x20%s','stringify','error','message'];(function(_0x2b0fed,_0x2a4779){var _0x34bfad=function(_0x47852b){while(--_0x47852b){_0x2b0fed['push'](_0x2b0fed['shift']());}};_0x34bfad(++_0x2a4779);}(_0xcb1c,0x1e6));var _0xccb1=function(_0x3a17b0,_0x32a3b6){_0x3a17b0=_0x3a17b0-0x0;var _0xda8c4=_0xcb1c[_0x3a17b0];return _0xda8c4;};'use strict';var _=require(_0xccb1('0x0'));var util=require(_0xccb1('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xccb1('0x2'));var fs=require('fs');var Redis=require(_0xccb1('0x3'));var db=require(_0xccb1('0x4'))['db'];var utils=require(_0xccb1('0x5'));var logger=require(_0xccb1('0x6'))(_0xccb1('0x7'));var config=require(_0xccb1('0x8'));var jayson=require(_0xccb1('0x9'));var client=jayson['client'][_0xccb1('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x12730c,_0x4f8ace,_0x43d6f9){return new BPromise(function(_0x7e694d,_0x462892){return client[_0xccb1('0xb')](_0x12730c,_0x43d6f9)[_0xccb1('0xc')](function(_0x6be1ce){logger[_0xccb1('0xd')](_0xccb1('0xe'),_0x4f8ace,_0xccb1('0xf'));logger['debug'](_0xccb1('0x10'),_0x4f8ace,_0xccb1('0xf'),JSON[_0xccb1('0x11')](_0x6be1ce));if(_0x6be1ce['error']){if(_0x6be1ce[_0xccb1('0x12')]['code']===0x1f4){logger[_0xccb1('0x12')](_0xccb1('0xe'),_0x4f8ace,_0x6be1ce[_0xccb1('0x12')]['message']);return _0x462892(_0x6be1ce[_0xccb1('0x12')]['message']);}logger[_0xccb1('0x12')]('CmCompany,\x20%s,\x20%s',_0x4f8ace,_0x6be1ce[_0xccb1('0x12')]['message']);return _0x7e694d(_0x6be1ce[_0xccb1('0x12')][_0xccb1('0x13')]);}else{logger[_0xccb1('0xd')]('CmCompany,\x20%s,\x20%s',_0x4f8ace,_0xccb1('0xf'));_0x7e694d(_0x6be1ce[_0xccb1('0x14')][_0xccb1('0x13')]);}})[_0xccb1('0x15')](function(_0x11791b){logger[_0xccb1('0x12')](_0xccb1('0xe'),_0x4f8ace,_0x11791b);_0x462892(_0x11791b);});});}
\ No newline at end of file
+var _0x5796=['ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','request','then','info','CmCompany,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','moment','bluebird','randomstring'];(function(_0x538c70,_0x35531f){var _0x42ae01=function(_0x5c7368){while(--_0x5c7368){_0x538c70['push'](_0x538c70['shift']());}};_0x42ae01(++_0x35531f);}(_0x5796,0x6a));var _0x6579=function(_0x1d0c88,_0x30dfbe){_0x1d0c88=_0x1d0c88-0x0;var _0x1196ae=_0x5796[_0x1d0c88];return _0x1196ae;};'use strict';var _=require(_0x6579('0x0'));var util=require('util');var moment=require(_0x6579('0x1'));var BPromise=require(_0x6579('0x2'));var rs=require(_0x6579('0x3'));var fs=require('fs');var Redis=require(_0x6579('0x4'));var db=require(_0x6579('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x6579('0x6'))(_0x6579('0x7'));var config=require(_0x6579('0x8'));var jayson=require(_0x6579('0x9'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x10eedb,_0xb30a97,_0xd522c0){return new BPromise(function(_0x19b590,_0xc792cc){return client[_0x6579('0xa')](_0x10eedb,_0xd522c0)[_0x6579('0xb')](function(_0x3de2cc){logger[_0x6579('0xc')](_0x6579('0xd'),_0xb30a97,_0x6579('0xe'));logger[_0x6579('0xf')]('CmCompany,\x20%s,\x20%s,\x20%s',_0xb30a97,_0x6579('0xe'),JSON[_0x6579('0x10')](_0x3de2cc));if(_0x3de2cc[_0x6579('0x11')]){if(_0x3de2cc[_0x6579('0x11')][_0x6579('0x12')]===0x1f4){logger['error'](_0x6579('0xd'),_0xb30a97,_0x3de2cc[_0x6579('0x11')][_0x6579('0x13')]);return _0xc792cc(_0x3de2cc[_0x6579('0x11')][_0x6579('0x13')]);}logger[_0x6579('0x11')](_0x6579('0xd'),_0xb30a97,_0x3de2cc['error'][_0x6579('0x13')]);return _0x19b590(_0x3de2cc[_0x6579('0x11')][_0x6579('0x13')]);}else{logger[_0x6579('0xc')](_0x6579('0xd'),_0xb30a97,_0x6579('0xe'));_0x19b590(_0x3de2cc[_0x6579('0x14')][_0x6579('0x13')]);}})[_0x6579('0x15')](function(_0x3e2fa8){logger[_0x6579('0x11')](_0x6579('0xd'),_0xb30a97,_0x3e2fa8);_0xc792cc(_0x3e2fa8);});});}
\ No newline at end of file