Built motion from commit (unavailable).|2.4.3
[motion2.git] / server / api / saTypeProduct / saTypeProduct.rpc.js
index 9989f90..4886ef3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0525=['catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','http','request','then','info','request\x20sent','debug','SATypeProduct,\x20%s,\x20%s,\x20%s','stringify','error','code','SATypeProduct,\x20%s,\x20%s','message','result'];(function(_0x1c8c28,_0x3ee093){var _0x1f59b4=function(_0x29bcc0){while(--_0x29bcc0){_0x1c8c28['push'](_0x1c8c28['shift']());}};_0x1f59b4(++_0x3ee093);}(_0x0525,0x74));var _0x5052=function(_0x35213d,_0x5a5f7b){_0x35213d=_0x35213d-0x0;var _0x4559eb=_0x0525[_0x35213d];return _0x4559eb;};'use strict';var _=require(_0x5052('0x0'));var util=require(_0x5052('0x1'));var moment=require(_0x5052('0x2'));var BPromise=require(_0x5052('0x3'));var rs=require(_0x5052('0x4'));var fs=require('fs');var Redis=require(_0x5052('0x5'));var db=require(_0x5052('0x6'))['db'];var utils=require(_0x5052('0x7'));var logger=require('../../config/logger')('rpc');var config=require(_0x5052('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0x5052('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x3cf7f5,_0xa8cb07,_0x20b6d5){return new BPromise(function(_0xf1f8af,_0x3c6bf9){return client[_0x5052('0xa')](_0x3cf7f5,_0x20b6d5)[_0x5052('0xb')](function(_0x100ec0){logger[_0x5052('0xc')]('SATypeProduct,\x20%s,\x20%s',_0xa8cb07,_0x5052('0xd'));logger[_0x5052('0xe')](_0x5052('0xf'),_0xa8cb07,_0x5052('0xd'),JSON[_0x5052('0x10')](_0x100ec0));if(_0x100ec0[_0x5052('0x11')]){if(_0x100ec0[_0x5052('0x11')][_0x5052('0x12')]===0x1f4){logger[_0x5052('0x11')](_0x5052('0x13'),_0xa8cb07,_0x100ec0['error']['message']);return _0x3c6bf9(_0x100ec0['error']['message']);}logger[_0x5052('0x11')](_0x5052('0x13'),_0xa8cb07,_0x100ec0['error'][_0x5052('0x14')]);return _0xf1f8af(_0x100ec0[_0x5052('0x11')][_0x5052('0x14')]);}else{logger[_0x5052('0xc')](_0x5052('0x13'),_0xa8cb07,_0x5052('0xd'));_0xf1f8af(_0x100ec0[_0x5052('0x15')][_0x5052('0x14')]);}})[_0x5052('0x16')](function(_0x335d7b){logger[_0x5052('0x11')](_0x5052('0x13'),_0xa8cb07,_0x335d7b);_0x3c6bf9(_0x335d7b);});});}
\ No newline at end of file
+var _0xcf59=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','SATypeProduct,\x20%s,\x20%s','debug','SATypeProduct,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info','result','catch','lodash','moment','bluebird','randomstring'];(function(_0x1c7f6f,_0x208f3e){var _0x148a84=function(_0x4bdb76){while(--_0x4bdb76){_0x1c7f6f['push'](_0x1c7f6f['shift']());}};_0x148a84(++_0x208f3e);}(_0xcf59,0x128));var _0x9cf5=function(_0x4dccfb,_0x5c9f92){_0x4dccfb=_0x4dccfb-0x0;var _0x20bc89=_0xcf59[_0x4dccfb];return _0x20bc89;};'use strict';var _=require(_0x9cf5('0x0'));var util=require('util');var moment=require(_0x9cf5('0x1'));var BPromise=require(_0x9cf5('0x2'));var rs=require(_0x9cf5('0x3'));var fs=require('fs');var Redis=require(_0x9cf5('0x4'));var db=require(_0x9cf5('0x5'))['db'];var utils=require(_0x9cf5('0x6'));var logger=require(_0x9cf5('0x7'))(_0x9cf5('0x8'));var config=require(_0x9cf5('0x9'));var jayson=require(_0x9cf5('0xa'));var client=jayson[_0x9cf5('0xb')][_0x9cf5('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x5cdf31,_0x1c72d6,_0x2e391d){return new BPromise(function(_0x3f73ba,_0x10b95a){return client['request'](_0x5cdf31,_0x2e391d)[_0x9cf5('0xd')](function(_0x36474c){logger['info'](_0x9cf5('0xe'),_0x1c72d6,'request\x20sent');logger[_0x9cf5('0xf')](_0x9cf5('0x10'),_0x1c72d6,_0x9cf5('0x11'),JSON[_0x9cf5('0x12')](_0x36474c));if(_0x36474c['error']){if(_0x36474c[_0x9cf5('0x13')][_0x9cf5('0x14')]===0x1f4){logger[_0x9cf5('0x13')](_0x9cf5('0xe'),_0x1c72d6,_0x36474c[_0x9cf5('0x13')][_0x9cf5('0x15')]);return _0x10b95a(_0x36474c[_0x9cf5('0x13')][_0x9cf5('0x15')]);}logger['error'](_0x9cf5('0xe'),_0x1c72d6,_0x36474c[_0x9cf5('0x13')][_0x9cf5('0x15')]);return _0x3f73ba(_0x36474c[_0x9cf5('0x13')][_0x9cf5('0x15')]);}else{logger[_0x9cf5('0x16')](_0x9cf5('0xe'),_0x1c72d6,'request\x20sent');_0x3f73ba(_0x36474c[_0x9cf5('0x17')]['message']);}})[_0x9cf5('0x18')](function(_0x5f44e6){logger[_0x9cf5('0x13')](_0x9cf5('0xe'),_0x1c72d6,_0x5f44e6);_0x10b95a(_0x5f44e6);});});}
\ No newline at end of file