Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / squareReportDetail / squareReportDetail.rpc.js
index b4cc430..f0c6724 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x55cb=['CreateSquareDetailsReport','SquareDetailsReport','create','body','options','then','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','jayson/promise','http','request','info','SquareDetailsReport,\x20%s,\x20%s','request\x20sent','debug','SquareDetailsReport,\x20%s,\x20%s,\x20%s','stringify','error','message'];(function(_0x525c7b,_0x488fcc){var _0x27b33e=function(_0x56d43b){while(--_0x56d43b){_0x525c7b['push'](_0x525c7b['shift']());}};_0x27b33e(++_0x488fcc);}(_0x55cb,0x164));var _0xb55c=function(_0x383158,_0x415e43){_0x383158=_0x383158-0x0;var _0x507985=_0x55cb[_0x383158];return _0x507985;};'use strict';var _=require(_0xb55c('0x0'));var util=require(_0xb55c('0x1'));var moment=require(_0xb55c('0x2'));var BPromise=require(_0xb55c('0x3'));var rs=require(_0xb55c('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb55c('0x5'))['db'];var utils=require(_0xb55c('0x6'));var logger=require('../../config/logger')(_0xb55c('0x7'));var config=require('../../config/environment');var jayson=require(_0xb55c('0x8'));var client=jayson['client'][_0xb55c('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1ceb67,_0x40a370,_0x4da357){return new BPromise(function(_0x235659,_0x253d32){return client[_0xb55c('0xa')](_0x1ceb67,_0x4da357)['then'](function(_0x5a2bce){logger[_0xb55c('0xb')](_0xb55c('0xc'),_0x40a370,_0xb55c('0xd'));logger[_0xb55c('0xe')](_0xb55c('0xf'),_0x40a370,_0xb55c('0xd'),JSON[_0xb55c('0x10')](_0x5a2bce));if(_0x5a2bce[_0xb55c('0x11')]){if(_0x5a2bce['error']['code']===0x1f4){logger[_0xb55c('0x11')](_0xb55c('0xc'),_0x40a370,_0x5a2bce['error'][_0xb55c('0x12')]);return _0x253d32(_0x5a2bce[_0xb55c('0x11')][_0xb55c('0x12')]);}logger[_0xb55c('0x11')]('SquareDetailsReport,\x20%s,\x20%s',_0x40a370,_0x5a2bce['error'][_0xb55c('0x12')]);return _0x235659(_0x5a2bce[_0xb55c('0x11')][_0xb55c('0x12')]);}else{logger[_0xb55c('0xb')]('SquareDetailsReport,\x20%s,\x20%s',_0x40a370,'request\x20sent');_0x235659(_0x5a2bce['result'][_0xb55c('0x12')]);}})['catch'](function(_0x2e5be5){logger[_0xb55c('0x11')](_0xb55c('0xc'),_0x40a370,_0x2e5be5);_0x253d32(_0x2e5be5);});});}exports[_0xb55c('0x13')]=function(_0x9ef566){var _0x2c8df4=this;return new Promise(function(_0x1504be,_0x5dc836){return db[_0xb55c('0x14')][_0xb55c('0x15')](_0x9ef566[_0xb55c('0x16')],{'raw':_0x9ef566[_0xb55c('0x17')]?_0x9ef566['options']['raw']===undefined?!![]:![]:!![]})[_0xb55c('0x18')](function(_0x2db82a){logger[_0xb55c('0xb')]('CreateSquareDetailsReport',_0x9ef566);logger[_0xb55c('0xe')](_0xb55c('0x13'),_0x9ef566,JSON[_0xb55c('0x10')](_0x2db82a));_0x1504be(_0x2db82a);})['catch'](function(_0x5d396e){logger[_0xb55c('0x11')]('CreateSquareDetailsReport',_0x5d396e[_0xb55c('0x12')],_0x9ef566);_0x5dc836(_0x2c8df4[_0xb55c('0x11')](0x1f4,_0x5d396e[_0xb55c('0x12')]));});});};
\ No newline at end of file
+var _0x531a=['info','SquareDetailsReport,\x20%s,\x20%s','request\x20sent','debug','SquareDetailsReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','CreateSquareDetailsReport','create','body','options','raw','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','then'];(function(_0x4fc442,_0x4b21d0){var _0x1e2430=function(_0xcbe383){while(--_0xcbe383){_0x4fc442['push'](_0x4fc442['shift']());}};_0x1e2430(++_0x4b21d0);}(_0x531a,0x100));var _0xa531=function(_0x96cefd,_0x25cb5d){_0x96cefd=_0x96cefd-0x0;var _0x4310c1=_0x531a[_0x96cefd];return _0x4310c1;};'use strict';var _=require(_0xa531('0x0'));var util=require(_0xa531('0x1'));var moment=require(_0xa531('0x2'));var BPromise=require(_0xa531('0x3'));var rs=require(_0xa531('0x4'));var fs=require('fs');var Redis=require(_0xa531('0x5'));var db=require(_0xa531('0x6'))['db'];var utils=require(_0xa531('0x7'));var logger=require(_0xa531('0x8'))(_0xa531('0x9'));var config=require('../../config/environment');var jayson=require(_0xa531('0xa'));var client=jayson['client'][_0xa531('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4446b9,_0x3fd172,_0x286dc7){return new BPromise(function(_0x3b68a7,_0x5bd2f9){return client[_0xa531('0xc')](_0x4446b9,_0x286dc7)[_0xa531('0xd')](function(_0x4d07e4){logger[_0xa531('0xe')](_0xa531('0xf'),_0x3fd172,_0xa531('0x10'));logger[_0xa531('0x11')](_0xa531('0x12'),_0x3fd172,'request\x20sent',JSON[_0xa531('0x13')](_0x4d07e4));if(_0x4d07e4['error']){if(_0x4d07e4[_0xa531('0x14')][_0xa531('0x15')]===0x1f4){logger[_0xa531('0x14')]('SquareDetailsReport,\x20%s,\x20%s',_0x3fd172,_0x4d07e4[_0xa531('0x14')][_0xa531('0x16')]);return _0x5bd2f9(_0x4d07e4['error'][_0xa531('0x16')]);}logger[_0xa531('0x14')]('SquareDetailsReport,\x20%s,\x20%s',_0x3fd172,_0x4d07e4[_0xa531('0x14')][_0xa531('0x16')]);return _0x3b68a7(_0x4d07e4[_0xa531('0x14')]['message']);}else{logger['info']('SquareDetailsReport,\x20%s,\x20%s',_0x3fd172,_0xa531('0x10'));_0x3b68a7(_0x4d07e4[_0xa531('0x17')][_0xa531('0x16')]);}})[_0xa531('0x18')](function(_0x324076){logger[_0xa531('0x14')]('SquareDetailsReport,\x20%s,\x20%s',_0x3fd172,_0x324076);_0x5bd2f9(_0x324076);});});}exports[_0xa531('0x19')]=function(_0x5124a1){var _0x412b84=this;return new Promise(function(_0x146013,_0x4fb62e){return db['SquareDetailsReport'][_0xa531('0x1a')](_0x5124a1[_0xa531('0x1b')],{'raw':_0x5124a1[_0xa531('0x1c')]?_0x5124a1['options'][_0xa531('0x1d')]===undefined?!![]:![]:!![]})[_0xa531('0xd')](function(_0x4096f0){logger['info'](_0xa531('0x19'),_0x5124a1);logger[_0xa531('0x11')]('CreateSquareDetailsReport',_0x5124a1,JSON[_0xa531('0x13')](_0x4096f0));_0x146013(_0x4096f0);})[_0xa531('0x18')](function(_0x3a2016){logger[_0xa531('0x14')](_0xa531('0x19'),_0x3a2016[_0xa531('0x16')],_0x5124a1);_0x4fb62e(_0x412b84[_0xa531('0x14')](0x1f4,_0x3a2016[_0xa531('0x16')]));});});};
\ No newline at end of file