Built motion from commit ce03bc3d.|2.5.39
[motion2.git] / server / api / faxTransferReport / faxTransferReport.rpc.js
index dc0ffef..59b5002 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa492=['result','catch','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','request\x20sent','debug','FaxTransferReport,\x20%s,\x20%s,\x20%s','error','code','FaxTransferReport,\x20%s,\x20%s','message'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa492,0x178));var _0x2a49=function(_0x6557e0,_0x5a9e27){_0x6557e0=_0x6557e0-0x0;var _0x2ac9e4=_0xa492[_0x6557e0];return _0x2ac9e4;};'use strict';var _=require('lodash');var util=require(_0x2a49('0x0'));var moment=require(_0x2a49('0x1'));var BPromise=require('bluebird');var rs=require(_0x2a49('0x2'));var fs=require('fs');var Redis=require(_0x2a49('0x3'));var db=require(_0x2a49('0x4'))['db'];var utils=require(_0x2a49('0x5'));var logger=require(_0x2a49('0x6'))(_0x2a49('0x7'));var config=require(_0x2a49('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x2a49('0x9')][_0x2a49('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x588e2b,_0x3f7fa8,_0x4fe62c){return new BPromise(function(_0x18ed09,_0x55b95c){return client[_0x2a49('0xb')](_0x588e2b,_0x4fe62c)[_0x2a49('0xc')](function(_0x1132ba){logger['info']('FaxTransferReport,\x20%s,\x20%s',_0x3f7fa8,_0x2a49('0xd'));logger[_0x2a49('0xe')](_0x2a49('0xf'),_0x3f7fa8,_0x2a49('0xd'),JSON['stringify'](_0x1132ba));if(_0x1132ba[_0x2a49('0x10')]){if(_0x1132ba[_0x2a49('0x10')][_0x2a49('0x11')]===0x1f4){logger[_0x2a49('0x10')](_0x2a49('0x12'),_0x3f7fa8,_0x1132ba[_0x2a49('0x10')][_0x2a49('0x13')]);return _0x55b95c(_0x1132ba['error']['message']);}logger['error'](_0x2a49('0x12'),_0x3f7fa8,_0x1132ba[_0x2a49('0x10')][_0x2a49('0x13')]);return _0x18ed09(_0x1132ba['error'][_0x2a49('0x13')]);}else{logger['info'](_0x2a49('0x12'),_0x3f7fa8,_0x2a49('0xd'));_0x18ed09(_0x1132ba[_0x2a49('0x14')][_0x2a49('0x13')]);}})[_0x2a49('0x15')](function(_0x5c861b){logger[_0x2a49('0x10')](_0x2a49('0x12'),_0x3f7fa8,_0x5c861b);_0x55b95c(_0x5c861b);});});}
\ No newline at end of file
+var _0x4b77=['error','code','message','result','catch','lodash','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request','then','info','FaxTransferReport,\x20%s,\x20%s','request\x20sent','debug','FaxTransferReport,\x20%s,\x20%s,\x20%s'];(function(_0x4bdd3a,_0x4eae8b){var _0x504566=function(_0x336cc1){while(--_0x336cc1){_0x4bdd3a['push'](_0x4bdd3a['shift']());}};_0x504566(++_0x4eae8b);}(_0x4b77,0x1bd));var _0x74b7=function(_0x56568b,_0x2dfb78){_0x56568b=_0x56568b-0x0;var _0x3a9720=_0x4b77[_0x56568b];return _0x3a9720;};'use strict';var _=require(_0x74b7('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x74b7('0x1'));var db=require(_0x74b7('0x2'))['db'];var utils=require(_0x74b7('0x3'));var logger=require('../../config/logger')(_0x74b7('0x4'));var config=require(_0x74b7('0x5'));var jayson=require(_0x74b7('0x6'));var client=jayson[_0x74b7('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x256817,_0x4c0c54,_0x43a398){return new BPromise(function(_0x51fcae,_0x3b1667){return client[_0x74b7('0x8')](_0x256817,_0x43a398)[_0x74b7('0x9')](function(_0x3cc669){logger[_0x74b7('0xa')](_0x74b7('0xb'),_0x4c0c54,_0x74b7('0xc'));logger[_0x74b7('0xd')](_0x74b7('0xe'),_0x4c0c54,_0x74b7('0xc'),JSON['stringify'](_0x3cc669));if(_0x3cc669[_0x74b7('0xf')]){if(_0x3cc669[_0x74b7('0xf')][_0x74b7('0x10')]===0x1f4){logger['error'](_0x74b7('0xb'),_0x4c0c54,_0x3cc669[_0x74b7('0xf')]['message']);return _0x3b1667(_0x3cc669[_0x74b7('0xf')][_0x74b7('0x11')]);}logger['error'](_0x74b7('0xb'),_0x4c0c54,_0x3cc669[_0x74b7('0xf')][_0x74b7('0x11')]);return _0x51fcae(_0x3cc669[_0x74b7('0xf')][_0x74b7('0x11')]);}else{logger[_0x74b7('0xa')]('FaxTransferReport,\x20%s,\x20%s',_0x4c0c54,'request\x20sent');_0x51fcae(_0x3cc669[_0x74b7('0x12')][_0x74b7('0x11')]);}})[_0x74b7('0x13')](function(_0x5476b8){logger['error'](_0x74b7('0xb'),_0x4c0c54,_0x5476b8);_0x3b1667(_0x5476b8);});});}
\ No newline at end of file