Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / squareReportDetail / squareReportDetail.rpc.js
index b4cc430..091010c 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 _0x84a0=['request','then','info','debug','SquareDetailsReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','SquareDetailsReport,\x20%s,\x20%s','message','result','catch','SquareDetailsReport','create','body','options','raw','CreateSquareDetailsReport','lodash','util','moment','bluebird','ioredis','../../mysqldb','rpc','../../config/environment','client','http'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x84a0,0x66));var _0x084a=function(_0x43fb15,_0x4b3f5b){_0x43fb15=_0x43fb15-0x0;var _0x42d47a=_0x84a0[_0x43fb15];return _0x42d47a;};'use strict';var _=require(_0x084a('0x0'));var util=require(_0x084a('0x1'));var moment=require(_0x084a('0x2'));var BPromise=require(_0x084a('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x084a('0x4'));var db=require(_0x084a('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x084a('0x6'));var config=require(_0x084a('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x084a('0x8')][_0x084a('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2e6810,_0x373d2,_0x2b30bc){return new BPromise(function(_0x58d419,_0x1051a9){return client[_0x084a('0xa')](_0x2e6810,_0x2b30bc)[_0x084a('0xb')](function(_0x2888e3){logger[_0x084a('0xc')]('SquareDetailsReport,\x20%s,\x20%s',_0x373d2,'request\x20sent');logger[_0x084a('0xd')](_0x084a('0xe'),_0x373d2,_0x084a('0xf'),JSON[_0x084a('0x10')](_0x2888e3));if(_0x2888e3[_0x084a('0x11')]){if(_0x2888e3['error']['code']===0x1f4){logger[_0x084a('0x11')](_0x084a('0x12'),_0x373d2,_0x2888e3[_0x084a('0x11')][_0x084a('0x13')]);return _0x1051a9(_0x2888e3[_0x084a('0x11')][_0x084a('0x13')]);}logger[_0x084a('0x11')](_0x084a('0x12'),_0x373d2,_0x2888e3['error'][_0x084a('0x13')]);return _0x58d419(_0x2888e3['error'][_0x084a('0x13')]);}else{logger[_0x084a('0xc')](_0x084a('0x12'),_0x373d2,_0x084a('0xf'));_0x58d419(_0x2888e3[_0x084a('0x14')]['message']);}})[_0x084a('0x15')](function(_0x4abd81){logger[_0x084a('0x11')](_0x084a('0x12'),_0x373d2,_0x4abd81);_0x1051a9(_0x4abd81);});});}exports['CreateSquareDetailsReport']=function(_0xf2c333){var _0x32c729=this;return new Promise(function(_0x4134b9,_0x14bb19){return db[_0x084a('0x16')][_0x084a('0x17')](_0xf2c333[_0x084a('0x18')],{'raw':_0xf2c333[_0x084a('0x19')]?_0xf2c333[_0x084a('0x19')][_0x084a('0x1a')]===undefined?!![]:![]:!![]})[_0x084a('0xb')](function(_0x279e25){logger[_0x084a('0xc')](_0x084a('0x1b'),_0xf2c333);logger[_0x084a('0xd')]('CreateSquareDetailsReport',_0xf2c333,JSON[_0x084a('0x10')](_0x279e25));_0x4134b9(_0x279e25);})[_0x084a('0x15')](function(_0x41a90f){logger[_0x084a('0x11')](_0x084a('0x1b'),_0x41a90f['message'],_0xf2c333);_0x14bb19(_0x32c729[_0x084a('0x11')](0x1f4,_0x41a90f[_0x084a('0x13')]));});});};
\ No newline at end of file