Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / squareReportDetail / squareReportDetail.rpc.js
index 1c6d04c..e3d1539 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1e50=['../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','SquareDetailsReport,\x20%s,\x20%s,\x20%s','stringify','error','code','SquareDetailsReport,\x20%s,\x20%s','message','result','catch','CreateSquareDetailsReport','SquareDetailsReport','options','raw','util','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x1e50,0x1bb));var _0x01e5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1e50[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x01e5('0x0'));var moment=require('moment');var BPromise=require(_0x01e5('0x1'));var rs=require(_0x01e5('0x2'));var fs=require('fs');var Redis=require(_0x01e5('0x3'));var db=require(_0x01e5('0x4'))['db'];var utils=require(_0x01e5('0x5'));var logger=require('../../config/logger')(_0x01e5('0x6'));var config=require(_0x01e5('0x7'));var jayson=require(_0x01e5('0x8'));var client=jayson[_0x01e5('0x9')][_0x01e5('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x44a31e,_0x11f02f,_0x1791ea){return new BPromise(function(_0xc9e372,_0x21be40){return client[_0x01e5('0xb')](_0x44a31e,_0x1791ea)[_0x01e5('0xc')](function(_0xcc4988){logger[_0x01e5('0xd')]('SquareDetailsReport,\x20%s,\x20%s',_0x11f02f,_0x01e5('0xe'));logger[_0x01e5('0xf')](_0x01e5('0x10'),_0x11f02f,_0x01e5('0xe'),JSON[_0x01e5('0x11')](_0xcc4988));if(_0xcc4988[_0x01e5('0x12')]){if(_0xcc4988[_0x01e5('0x12')][_0x01e5('0x13')]===0x1f4){logger[_0x01e5('0x12')](_0x01e5('0x14'),_0x11f02f,_0xcc4988[_0x01e5('0x12')][_0x01e5('0x15')]);return _0x21be40(_0xcc4988[_0x01e5('0x12')][_0x01e5('0x15')]);}logger[_0x01e5('0x12')](_0x01e5('0x14'),_0x11f02f,_0xcc4988[_0x01e5('0x12')]['message']);return _0xc9e372(_0xcc4988[_0x01e5('0x12')][_0x01e5('0x15')]);}else{logger[_0x01e5('0xd')](_0x01e5('0x14'),_0x11f02f,_0x01e5('0xe'));_0xc9e372(_0xcc4988[_0x01e5('0x16')][_0x01e5('0x15')]);}})[_0x01e5('0x17')](function(_0x21ad1d){logger['error'](_0x01e5('0x14'),_0x11f02f,_0x21ad1d);_0x21be40(_0x21ad1d);});});}exports[_0x01e5('0x18')]=function(_0x1ede67){var _0x565fd9=this;return new Promise(function(_0x5b8e78,_0x55a9c4){return db[_0x01e5('0x19')]['create'](_0x1ede67['body'],{'raw':_0x1ede67[_0x01e5('0x1a')]?_0x1ede67[_0x01e5('0x1a')][_0x01e5('0x1b')]===undefined?!![]:![]:!![]})[_0x01e5('0xc')](function(_0x37ff7e){logger[_0x01e5('0xd')](_0x01e5('0x18'),_0x1ede67);logger[_0x01e5('0xf')]('CreateSquareDetailsReport',_0x1ede67,JSON[_0x01e5('0x11')](_0x37ff7e));_0x5b8e78(_0x37ff7e);})['catch'](function(_0x478b70){logger['error']('CreateSquareDetailsReport',_0x478b70['message'],_0x1ede67);_0x55a9c4(_0x565fd9[_0x01e5('0x12')](0x1f4,_0x478b70[_0x01e5('0x15')]));});});};
\ No newline at end of file
+var _0x4fc2=['rpc','../../config/environment','client','http','request','then','info','SquareDetailsReport,\x20%s,\x20%s','request\x20sent','debug','SquareDetailsReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','create','body','options','raw','CreateSquareDetailsReport','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils'];(function(_0x40c87e,_0x40e38b){var _0xebcac5=function(_0x1c3523){while(--_0x1c3523){_0x40c87e['push'](_0x40c87e['shift']());}};_0xebcac5(++_0x40e38b);}(_0x4fc2,0x111));var _0x24fc=function(_0xdb0ce1,_0x1db757){_0xdb0ce1=_0xdb0ce1-0x0;var _0x24fa8b=_0x4fc2[_0xdb0ce1];return _0x24fa8b;};'use strict';var _=require(_0x24fc('0x0'));var util=require(_0x24fc('0x1'));var moment=require(_0x24fc('0x2'));var BPromise=require(_0x24fc('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x24fc('0x4'));var db=require(_0x24fc('0x5'))['db'];var utils=require(_0x24fc('0x6'));var logger=require('../../config/logger')(_0x24fc('0x7'));var config=require(_0x24fc('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x24fc('0x9')][_0x24fc('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4889f4,_0x115851,_0x22a0c8){return new BPromise(function(_0x220f9a,_0x123eff){return client[_0x24fc('0xb')](_0x4889f4,_0x22a0c8)[_0x24fc('0xc')](function(_0x5afdf1){logger[_0x24fc('0xd')](_0x24fc('0xe'),_0x115851,_0x24fc('0xf'));logger[_0x24fc('0x10')](_0x24fc('0x11'),_0x115851,_0x24fc('0xf'),JSON[_0x24fc('0x12')](_0x5afdf1));if(_0x5afdf1[_0x24fc('0x13')]){if(_0x5afdf1['error'][_0x24fc('0x14')]===0x1f4){logger[_0x24fc('0x13')]('SquareDetailsReport,\x20%s,\x20%s',_0x115851,_0x5afdf1[_0x24fc('0x13')][_0x24fc('0x15')]);return _0x123eff(_0x5afdf1[_0x24fc('0x13')][_0x24fc('0x15')]);}logger[_0x24fc('0x13')](_0x24fc('0xe'),_0x115851,_0x5afdf1['error'][_0x24fc('0x15')]);return _0x220f9a(_0x5afdf1[_0x24fc('0x13')][_0x24fc('0x15')]);}else{logger[_0x24fc('0xd')]('SquareDetailsReport,\x20%s,\x20%s',_0x115851,_0x24fc('0xf'));_0x220f9a(_0x5afdf1['result'][_0x24fc('0x15')]);}})[_0x24fc('0x16')](function(_0x218fb6){logger[_0x24fc('0x13')](_0x24fc('0xe'),_0x115851,_0x218fb6);_0x123eff(_0x218fb6);});});}exports['CreateSquareDetailsReport']=function(_0x23873c){var _0x1cb3d0=this;return new Promise(function(_0x6cfa0a,_0x8ac114){return db['SquareDetailsReport'][_0x24fc('0x17')](_0x23873c[_0x24fc('0x18')],{'raw':_0x23873c[_0x24fc('0x19')]?_0x23873c['options'][_0x24fc('0x1a')]===undefined?!![]:![]:!![]})[_0x24fc('0xc')](function(_0xbf1d6b){logger[_0x24fc('0xd')]('CreateSquareDetailsReport',_0x23873c);logger[_0x24fc('0x10')]('CreateSquareDetailsReport',_0x23873c,JSON[_0x24fc('0x12')](_0xbf1d6b));_0x6cfa0a(_0xbf1d6b);})['catch'](function(_0x3ed464){logger[_0x24fc('0x13')](_0x24fc('0x1b'),_0x3ed464['message'],_0x23873c);_0x8ac114(_0x1cb3d0[_0x24fc('0x13')](0x1f4,_0x3ed464['message']));});});};
\ No newline at end of file