Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / faxTransferReport / faxTransferReport.rpc.js
index 07d5f9b..d16c2a5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc7f5=['../../config/environment','jayson/promise','client','request','FaxTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','code','error','message','info','result','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc'];(function(_0x2074db,_0x10b81b){var _0x27324c=function(_0x5c3d5c){while(--_0x5c3d5c){_0x2074db['push'](_0x2074db['shift']());}};_0x27324c(++_0x10b81b);}(_0xc7f5,0x15d));var _0x5c7f=function(_0x4498f2,_0x9cfe3d){_0x4498f2=_0x4498f2-0x0;var _0x3a7213=_0xc7f5[_0x4498f2];return _0x3a7213;};'use strict';var _=require('lodash');var util=require(_0x5c7f('0x0'));var moment=require(_0x5c7f('0x1'));var BPromise=require('bluebird');var rs=require(_0x5c7f('0x2'));var fs=require('fs');var Redis=require(_0x5c7f('0x3'));var db=require(_0x5c7f('0x4'))['db'];var utils=require(_0x5c7f('0x5'));var logger=require(_0x5c7f('0x6'))(_0x5c7f('0x7'));var config=require(_0x5c7f('0x8'));var jayson=require(_0x5c7f('0x9'));var client=jayson[_0x5c7f('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x54d112,_0x29b5b6,_0x3f9191){return new BPromise(function(_0x36af99,_0x33f789){return client[_0x5c7f('0xb')](_0x54d112,_0x3f9191)['then'](function(_0x135fd1){logger['info'](_0x5c7f('0xc'),_0x29b5b6,_0x5c7f('0xd'));logger[_0x5c7f('0xe')]('FaxTransferReport,\x20%s,\x20%s,\x20%s',_0x29b5b6,'request\x20sent',JSON[_0x5c7f('0xf')](_0x135fd1));if(_0x135fd1['error']){if(_0x135fd1['error'][_0x5c7f('0x10')]===0x1f4){logger[_0x5c7f('0x11')](_0x5c7f('0xc'),_0x29b5b6,_0x135fd1[_0x5c7f('0x11')][_0x5c7f('0x12')]);return _0x33f789(_0x135fd1[_0x5c7f('0x11')][_0x5c7f('0x12')]);}logger[_0x5c7f('0x11')](_0x5c7f('0xc'),_0x29b5b6,_0x135fd1[_0x5c7f('0x11')][_0x5c7f('0x12')]);return _0x36af99(_0x135fd1[_0x5c7f('0x11')]['message']);}else{logger[_0x5c7f('0x13')](_0x5c7f('0xc'),_0x29b5b6,_0x5c7f('0xd'));_0x36af99(_0x135fd1[_0x5c7f('0x14')][_0x5c7f('0x12')]);}})['catch'](function(_0x552b45){logger['error'](_0x5c7f('0xc'),_0x29b5b6,_0x552b45);_0x33f789(_0x552b45);});});}
\ No newline at end of file
+var _0xb4e8=['FaxTransferReport,\x20%s,\x20%s','debug','request\x20sent','error','code','message','result','catch','lodash','util','bluebird','ioredis','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http','request','info'];(function(_0x28947d,_0x4cc9c6){var _0x12d2ee=function(_0x3f38fc){while(--_0x3f38fc){_0x28947d['push'](_0x28947d['shift']());}};_0x12d2ee(++_0x4cc9c6);}(_0xb4e8,0x184));var _0x8b4e=function(_0x2c8d1e,_0x52b307){_0x2c8d1e=_0x2c8d1e-0x0;var _0x24a2f3=_0xb4e8[_0x2c8d1e];return _0x24a2f3;};'use strict';var _=require(_0x8b4e('0x0'));var util=require(_0x8b4e('0x1'));var moment=require('moment');var BPromise=require(_0x8b4e('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x8b4e('0x3'));var db=require(_0x8b4e('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x8b4e('0x5'))('rpc');var config=require(_0x8b4e('0x6'));var jayson=require(_0x8b4e('0x7'));var client=jayson[_0x8b4e('0x8')][_0x8b4e('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x48c1a5,_0x72a51,_0x954a35){return new BPromise(function(_0x32d550,_0x216671){return client[_0x8b4e('0xa')](_0x48c1a5,_0x954a35)['then'](function(_0x3daee3){logger[_0x8b4e('0xb')](_0x8b4e('0xc'),_0x72a51,'request\x20sent');logger[_0x8b4e('0xd')]('FaxTransferReport,\x20%s,\x20%s,\x20%s',_0x72a51,_0x8b4e('0xe'),JSON['stringify'](_0x3daee3));if(_0x3daee3[_0x8b4e('0xf')]){if(_0x3daee3[_0x8b4e('0xf')][_0x8b4e('0x10')]===0x1f4){logger[_0x8b4e('0xf')](_0x8b4e('0xc'),_0x72a51,_0x3daee3[_0x8b4e('0xf')][_0x8b4e('0x11')]);return _0x216671(_0x3daee3['error']['message']);}logger[_0x8b4e('0xf')](_0x8b4e('0xc'),_0x72a51,_0x3daee3['error'][_0x8b4e('0x11')]);return _0x32d550(_0x3daee3[_0x8b4e('0xf')][_0x8b4e('0x11')]);}else{logger[_0x8b4e('0xb')](_0x8b4e('0xc'),_0x72a51,_0x8b4e('0xe'));_0x32d550(_0x3daee3[_0x8b4e('0x12')][_0x8b4e('0x11')]);}})[_0x8b4e('0x13')](function(_0x8c87f0){logger[_0x8b4e('0xf')](_0x8b4e('0xc'),_0x72a51,_0x8c87f0);_0x216671(_0x8c87f0);});});}
\ No newline at end of file