Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / squareReportDetail / squareReportDetail.rpc.js
index 2bb7879..8a09fc7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf0b5=['randomstring','ioredis','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','then','info','SquareDetailsReport,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','CreateSquareDetailsReport','create','body','options','raw','debug','lodash','util','bluebird'];(function(_0x4e9e73,_0x9e6a2c){var _0x28a0aa=function(_0x3a1eb0){while(--_0x3a1eb0){_0x4e9e73['push'](_0x4e9e73['shift']());}};_0x28a0aa(++_0x9e6a2c);}(_0xf0b5,0x115));var _0x5f0b=function(_0x32b8ab,_0x1fc292){_0x32b8ab=_0x32b8ab-0x0;var _0x582e98=_0xf0b5[_0x32b8ab];return _0x582e98;};'use strict';var _=require(_0x5f0b('0x0'));var util=require(_0x5f0b('0x1'));var moment=require('moment');var BPromise=require(_0x5f0b('0x2'));var rs=require(_0x5f0b('0x3'));var fs=require('fs');var Redis=require(_0x5f0b('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x5f0b('0x5'));var logger=require(_0x5f0b('0x6'))(_0x5f0b('0x7'));var config=require('../../config/environment');var jayson=require(_0x5f0b('0x8'));var client=jayson[_0x5f0b('0x9')][_0x5f0b('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x52680d,_0x430a65,_0x108a75){return new BPromise(function(_0x304801,_0x2792b1){return client[_0x5f0b('0xb')](_0x52680d,_0x108a75)[_0x5f0b('0xc')](function(_0x44f7ab){logger[_0x5f0b('0xd')](_0x5f0b('0xe'),_0x430a65,_0x5f0b('0xf'));logger['debug']('SquareDetailsReport,\x20%s,\x20%s,\x20%s',_0x430a65,_0x5f0b('0xf'),JSON[_0x5f0b('0x10')](_0x44f7ab));if(_0x44f7ab[_0x5f0b('0x11')]){if(_0x44f7ab[_0x5f0b('0x11')][_0x5f0b('0x12')]===0x1f4){logger['error'](_0x5f0b('0xe'),_0x430a65,_0x44f7ab[_0x5f0b('0x11')]['message']);return _0x2792b1(_0x44f7ab[_0x5f0b('0x11')][_0x5f0b('0x13')]);}logger['error'](_0x5f0b('0xe'),_0x430a65,_0x44f7ab['error'][_0x5f0b('0x13')]);return _0x304801(_0x44f7ab[_0x5f0b('0x11')][_0x5f0b('0x13')]);}else{logger[_0x5f0b('0xd')](_0x5f0b('0xe'),_0x430a65,'request\x20sent');_0x304801(_0x44f7ab[_0x5f0b('0x14')][_0x5f0b('0x13')]);}})[_0x5f0b('0x15')](function(_0x42e81e){logger[_0x5f0b('0x11')]('SquareDetailsReport,\x20%s,\x20%s',_0x430a65,_0x42e81e);_0x2792b1(_0x42e81e);});});}exports[_0x5f0b('0x16')]=function(_0x33a21e){var _0x56dd0f=this;return new Promise(function(_0x5dd636,_0x33abd3){return db['SquareDetailsReport'][_0x5f0b('0x17')](_0x33a21e[_0x5f0b('0x18')],{'raw':_0x33a21e['options']?_0x33a21e[_0x5f0b('0x19')][_0x5f0b('0x1a')]===undefined?!![]:![]:!![]})[_0x5f0b('0xc')](function(_0x57e3b1){logger['info'](_0x5f0b('0x16'),_0x33a21e);logger[_0x5f0b('0x1b')]('CreateSquareDetailsReport',_0x33a21e,JSON[_0x5f0b('0x10')](_0x57e3b1));_0x5dd636(_0x57e3b1);})['catch'](function(_0x133eb6){logger[_0x5f0b('0x11')]('CreateSquareDetailsReport',_0x133eb6[_0x5f0b('0x13')],_0x33a21e);_0x33abd3(_0x56dd0f[_0x5f0b('0x11')](0x1f4,_0x133eb6[_0x5f0b('0x13')]));});});};
\ No newline at end of file
+var _0xccde=['stringify','error','code','SquareDetailsReport,\x20%s,\x20%s','message','result','CreateSquareDetailsReport','create','body','options','raw','debug','catch','lodash','moment','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','request\x20sent'];(function(_0xdb48cf,_0x3b2644){var _0x55ec5b=function(_0x1f98cd){while(--_0x1f98cd){_0xdb48cf['push'](_0xdb48cf['shift']());}};_0x55ec5b(++_0x3b2644);}(_0xccde,0x1e1));var _0xeccd=function(_0x32a767,_0x4e3e76){_0x32a767=_0x32a767-0x0;var _0x2b4e6d=_0xccde[_0x32a767];return _0x2b4e6d;};'use strict';var _=require(_0xeccd('0x0'));var util=require('util');var moment=require(_0xeccd('0x1'));var BPromise=require('bluebird');var rs=require(_0xeccd('0x2'));var fs=require('fs');var Redis=require(_0xeccd('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xeccd('0x4'))(_0xeccd('0x5'));var config=require(_0xeccd('0x6'));var jayson=require(_0xeccd('0x7'));var client=jayson[_0xeccd('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x338742,_0x130f1c,_0x1b622f){return new BPromise(function(_0x1eebfb,_0x4b068e){return client[_0xeccd('0x9')](_0x338742,_0x1b622f)[_0xeccd('0xa')](function(_0x9dccd){logger[_0xeccd('0xb')]('SquareDetailsReport,\x20%s,\x20%s',_0x130f1c,'request\x20sent');logger['debug']('SquareDetailsReport,\x20%s,\x20%s,\x20%s',_0x130f1c,_0xeccd('0xc'),JSON[_0xeccd('0xd')](_0x9dccd));if(_0x9dccd[_0xeccd('0xe')]){if(_0x9dccd[_0xeccd('0xe')][_0xeccd('0xf')]===0x1f4){logger['error'](_0xeccd('0x10'),_0x130f1c,_0x9dccd[_0xeccd('0xe')][_0xeccd('0x11')]);return _0x4b068e(_0x9dccd[_0xeccd('0xe')][_0xeccd('0x11')]);}logger[_0xeccd('0xe')]('SquareDetailsReport,\x20%s,\x20%s',_0x130f1c,_0x9dccd['error'][_0xeccd('0x11')]);return _0x1eebfb(_0x9dccd[_0xeccd('0xe')][_0xeccd('0x11')]);}else{logger[_0xeccd('0xb')]('SquareDetailsReport,\x20%s,\x20%s',_0x130f1c,_0xeccd('0xc'));_0x1eebfb(_0x9dccd[_0xeccd('0x12')]['message']);}})['catch'](function(_0x42e47e){logger[_0xeccd('0xe')](_0xeccd('0x10'),_0x130f1c,_0x42e47e);_0x4b068e(_0x42e47e);});});}exports[_0xeccd('0x13')]=function(_0xb0fad7){var _0x360d25=this;return new Promise(function(_0x466d98,_0x17596a){return db['SquareDetailsReport'][_0xeccd('0x14')](_0xb0fad7[_0xeccd('0x15')],{'raw':_0xb0fad7[_0xeccd('0x16')]?_0xb0fad7[_0xeccd('0x16')][_0xeccd('0x17')]===undefined?!![]:![]:!![]})[_0xeccd('0xa')](function(_0x508439){logger['info']('CreateSquareDetailsReport',_0xb0fad7);logger[_0xeccd('0x18')]('CreateSquareDetailsReport',_0xb0fad7,JSON[_0xeccd('0xd')](_0x508439));_0x466d98(_0x508439);})[_0xeccd('0x19')](function(_0x54083d){logger[_0xeccd('0xe')]('CreateSquareDetailsReport',_0x54083d[_0xeccd('0x11')],_0xb0fad7);_0x17596a(_0x360d25[_0xeccd('0xe')](0x1f4,_0x54083d[_0xeccd('0x11')]));});});};
\ No newline at end of file