Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / faxTransferReport / faxTransferReport.rpc.js
index 4d817e6..0dabc06 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4a11=['result','lodash','util','randomstring','ioredis','../../config/utils','rpc','jayson/promise','client','http','request','info','FaxTransferReport,\x20%s,\x20%s','request\x20sent','FaxTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message'];(function(_0x1969a7,_0x5a133a){var _0x3d665f=function(_0x39c64b){while(--_0x39c64b){_0x1969a7['push'](_0x1969a7['shift']());}};_0x3d665f(++_0x5a133a);}(_0x4a11,0x131));var _0x14a1=function(_0xb4ce16,_0x2bd30c){_0xb4ce16=_0xb4ce16-0x0;var _0x14055c=_0x4a11[_0xb4ce16];return _0x14055c;};'use strict';var _=require(_0x14a1('0x0'));var util=require(_0x14a1('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x14a1('0x2'));var fs=require('fs');var Redis=require(_0x14a1('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x14a1('0x4'));var logger=require('../../config/logger')(_0x14a1('0x5'));var config=require('../../config/environment');var jayson=require(_0x14a1('0x6'));var client=jayson[_0x14a1('0x7')][_0x14a1('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x55b38a,_0x527567,_0x588202){return new BPromise(function(_0x17aaa4,_0x412582){return client[_0x14a1('0x9')](_0x55b38a,_0x588202)['then'](function(_0x14b649){logger[_0x14a1('0xa')](_0x14a1('0xb'),_0x527567,_0x14a1('0xc'));logger['debug'](_0x14a1('0xd'),_0x527567,_0x14a1('0xc'),JSON[_0x14a1('0xe')](_0x14b649));if(_0x14b649[_0x14a1('0xf')]){if(_0x14b649[_0x14a1('0xf')][_0x14a1('0x10')]===0x1f4){logger['error']('FaxTransferReport,\x20%s,\x20%s',_0x527567,_0x14b649['error'][_0x14a1('0x11')]);return _0x412582(_0x14b649['error'][_0x14a1('0x11')]);}logger[_0x14a1('0xf')]('FaxTransferReport,\x20%s,\x20%s',_0x527567,_0x14b649[_0x14a1('0xf')][_0x14a1('0x11')]);return _0x17aaa4(_0x14b649[_0x14a1('0xf')]['message']);}else{logger[_0x14a1('0xa')]('FaxTransferReport,\x20%s,\x20%s',_0x527567,'request\x20sent');_0x17aaa4(_0x14b649[_0x14a1('0x12')][_0x14a1('0x11')]);}})['catch'](function(_0x2667bf){logger['error'](_0x14a1('0xb'),_0x527567,_0x2667bf);_0x412582(_0x2667bf);});});}
\ No newline at end of file
+var _0x3db8=['../../config/logger','rpc','jayson/promise','client','http','request','then','info','FaxTransferReport,\x20%s,\x20%s','request\x20sent','debug','FaxTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird'];(function(_0xcc926b,_0xa6d99){var _0x21341c=function(_0x3c8b1c){while(--_0x3c8b1c){_0xcc926b['push'](_0xcc926b['shift']());}};_0x21341c(++_0xa6d99);}(_0x3db8,0x10d));var _0x83db=function(_0x4637f7,_0x52f044){_0x4637f7=_0x4637f7-0x0;var _0x5c43b0=_0x3db8[_0x4637f7];return _0x5c43b0;};'use strict';var _=require(_0x83db('0x0'));var util=require(_0x83db('0x1'));var moment=require(_0x83db('0x2'));var BPromise=require(_0x83db('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x83db('0x4'))(_0x83db('0x5'));var config=require('../../config/environment');var jayson=require(_0x83db('0x6'));var client=jayson[_0x83db('0x7')][_0x83db('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x493f70,_0x3b89f2,_0x286f1d){return new BPromise(function(_0x82a304,_0x171641){return client[_0x83db('0x9')](_0x493f70,_0x286f1d)[_0x83db('0xa')](function(_0x8ab5d1){logger[_0x83db('0xb')](_0x83db('0xc'),_0x3b89f2,_0x83db('0xd'));logger[_0x83db('0xe')](_0x83db('0xf'),_0x3b89f2,_0x83db('0xd'),JSON[_0x83db('0x10')](_0x8ab5d1));if(_0x8ab5d1[_0x83db('0x11')]){if(_0x8ab5d1[_0x83db('0x11')][_0x83db('0x12')]===0x1f4){logger[_0x83db('0x11')](_0x83db('0xc'),_0x3b89f2,_0x8ab5d1['error'][_0x83db('0x13')]);return _0x171641(_0x8ab5d1['error']['message']);}logger['error']('FaxTransferReport,\x20%s,\x20%s',_0x3b89f2,_0x8ab5d1[_0x83db('0x11')]['message']);return _0x82a304(_0x8ab5d1[_0x83db('0x11')]['message']);}else{logger['info'](_0x83db('0xc'),_0x3b89f2,_0x83db('0xd'));_0x82a304(_0x8ab5d1[_0x83db('0x14')][_0x83db('0x13')]);}})['catch'](function(_0x106db4){logger['error']('FaxTransferReport,\x20%s,\x20%s',_0x3b89f2,_0x106db4);_0x171641(_0x106db4);});});}
\ No newline at end of file