Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / squareReportDetail / squareReportDetail.rpc.js
index 5c1d462..b4cc430 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x366b=['debug','SquareDetailsReport,\x20%s,\x20%s,\x20%s','error','code','message','result','CreateSquareDetailsReport','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','SquareDetailsReport,\x20%s,\x20%s','request\x20sent'];(function(_0x1e40e9,_0x16cc7a){var _0x3d3cbc=function(_0x51019e){while(--_0x51019e){_0x1e40e9['push'](_0x1e40e9['shift']());}};_0x3d3cbc(++_0x16cc7a);}(_0x366b,0x158));var _0xb366=function(_0xd4fe46,_0x6f733){_0xd4fe46=_0xd4fe46-0x0;var _0x173e7d=_0x366b[_0xd4fe46];return _0x173e7d;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xb366('0x0'));var BPromise=require(_0xb366('0x1'));var rs=require(_0xb366('0x2'));var fs=require('fs');var Redis=require(_0xb366('0x3'));var db=require(_0xb366('0x4'))['db'];var utils=require(_0xb366('0x5'));var logger=require(_0xb366('0x6'))(_0xb366('0x7'));var config=require(_0xb366('0x8'));var jayson=require(_0xb366('0x9'));var client=jayson[_0xb366('0xa')][_0xb366('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1c8f82,_0x41a04d,_0x497fbd){return new BPromise(function(_0xadf1fa,_0x2bb6ce){return client['request'](_0x1c8f82,_0x497fbd)[_0xb366('0xc')](function(_0x510fb5){logger[_0xb366('0xd')](_0xb366('0xe'),_0x41a04d,_0xb366('0xf'));logger[_0xb366('0x10')](_0xb366('0x11'),_0x41a04d,'request\x20sent',JSON['stringify'](_0x510fb5));if(_0x510fb5[_0xb366('0x12')]){if(_0x510fb5[_0xb366('0x12')][_0xb366('0x13')]===0x1f4){logger[_0xb366('0x12')](_0xb366('0xe'),_0x41a04d,_0x510fb5[_0xb366('0x12')][_0xb366('0x14')]);return _0x2bb6ce(_0x510fb5['error'][_0xb366('0x14')]);}logger[_0xb366('0x12')](_0xb366('0xe'),_0x41a04d,_0x510fb5[_0xb366('0x12')][_0xb366('0x14')]);return _0xadf1fa(_0x510fb5[_0xb366('0x12')]['message']);}else{logger[_0xb366('0xd')](_0xb366('0xe'),_0x41a04d,_0xb366('0xf'));_0xadf1fa(_0x510fb5[_0xb366('0x15')][_0xb366('0x14')]);}})['catch'](function(_0x3b5291){logger[_0xb366('0x12')](_0xb366('0xe'),_0x41a04d,_0x3b5291);_0x2bb6ce(_0x3b5291);});});}exports[_0xb366('0x16')]=function(_0x4efea7){var _0x1e9466=this;return new Promise(function(_0x4a1953,_0x3a0bf1){return db['SquareDetailsReport']['create'](_0x4efea7['body'],{'raw':_0x4efea7['options']?_0x4efea7['options']['raw']===undefined?!![]:![]:!![]})[_0xb366('0xc')](function(_0x36f05f){logger[_0xb366('0xd')](_0xb366('0x16'),_0x4efea7);logger[_0xb366('0x10')](_0xb366('0x16'),_0x4efea7,JSON['stringify'](_0x36f05f));_0x4a1953(_0x36f05f);})[_0xb366('0x17')](function(_0x2321da){logger['error'](_0xb366('0x16'),_0x2321da['message'],_0x4efea7);_0x3a0bf1(_0x1e9466[_0xb366('0x12')](0x1f4,_0x2321da[_0xb366('0x14')]));});});};
\ No newline at end of file
+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