Built motion from commit 26d08302.|2.6.31
[motion2.git] / server / services / ami / fax / util / util.js
index 6697639..bdbec90 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeb60=['from-sip','headerinfo','util','lodash','moment','fax','logger','info','inspect','ecm','minrate','maxrate','format','\x22%s\x22','modem','gateway','faxdetect','t38timeout','localstationid','path','uniqueid','originate','xcally-motion-fax'];(function(_0xf6f5ee,_0x1c79bc){var _0x22f43e=function(_0x40afca){while(--_0x40afca){_0xf6f5ee['push'](_0xf6f5ee['shift']());}};_0x22f43e(++_0x1c79bc);}(_0xeb60,0x189));var _0x0eb6=function(_0x19244a,_0x43e29f){_0x19244a=_0x19244a-0x0;var _0x28e8e6=_0xeb60[_0x19244a];return _0x28e8e6;};'use strict';var util=require(_0x0eb6('0x0'));var _=require(_0x0eb6('0x1'));var moment=require(_0x0eb6('0x2'));var logger=require('../../../../config/logger')(_0x0eb6('0x3'));exports['message']=function(_0x4f44c0){return{'message':_0x4f44c0};};exports[_0x0eb6('0x4')]=function(_0x4f07fd,_0x4e6642){logger[_0x0eb6('0x5')](_0x4f07fd,util[_0x0eb6('0x6')](_0x4e6642,{'showHidden':![],'depth':null}));};exports['addVariables']=function(_0x5a4a65,_0x2fa8f9){var _0xd83ac8={'XMF-ECM':_0x2fa8f9[_0x0eb6('0x7')],'XMF-HEADERINFO':_0x2fa8f9['headerinfo'],'XMF-MINRATE':_0x2fa8f9[_0x0eb6('0x8')],'XMF-MAXRATE':_0x2fa8f9[_0x0eb6('0x9')],'XMF-MODEM':util[_0x0eb6('0xa')](_0x0eb6('0xb'),_0x2fa8f9[_0x0eb6('0xc')]),'XMF-GATEWAY':_0x2fa8f9[_0x0eb6('0xd')],'XMF-FAXDETECT':_0x2fa8f9[_0x0eb6('0xe')],'XMF-T38TIMEOUT':_0x2fa8f9[_0x0eb6('0xf')],'XMF-LOCALSTATIONID':_0x2fa8f9[_0x0eb6('0x10')],'XMF-PATH':_0x5a4a65[_0x0eb6('0x11')]};return _0xd83ac8;};exports['variablesAction']=function(_0x5961ec,_0x286e63){return{'actionid':_0x5961ec[_0x0eb6('0x12')],'action':_0x0eb6('0x13'),'channel':_0x5961ec['channel'],'Exten':_0x0eb6('0x14'),'Context':_0x0eb6('0x15'),'Priority':'1','callerid':util[_0x0eb6('0xa')]('\x22%s\x22\x20<%s>',_0x5961ec[_0x0eb6('0x16')]?_0x5961ec['headerinfo']:'',_0x5961ec[_0x0eb6('0x10')]),'variable':_0x286e63,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x5961ec[_0x0eb6('0x12')]};};
\ No newline at end of file
+var _0xbbc3=['uniqueid','originate','channel','xcally-motion-fax','format','\x22%s\x22\x20<%s>','util','lodash','moment','../../../../config/logger','fax','logger','info','inspect','addVariables','ecm','headerinfo','maxrate','\x22%s\x22','gateway','faxdetect','t38timeout','localstationid','path','variablesAction'];(function(_0xcc69c5,_0x5b35b2){var _0x14ec59=function(_0x4377ec){while(--_0x4377ec){_0xcc69c5['push'](_0xcc69c5['shift']());}};_0x14ec59(++_0x5b35b2);}(_0xbbc3,0x17d));var _0x3bbc=function(_0xa5adfe,_0x33832){_0xa5adfe=_0xa5adfe-0x0;var _0x1ce1d5=_0xbbc3[_0xa5adfe];return _0x1ce1d5;};'use strict';var util=require(_0x3bbc('0x0'));var _=require(_0x3bbc('0x1'));var moment=require(_0x3bbc('0x2'));var logger=require(_0x3bbc('0x3'))(_0x3bbc('0x4'));exports['message']=function(_0x5c0197){return{'message':_0x5c0197};};exports[_0x3bbc('0x5')]=function(_0x41a63e,_0x2ed9c9){logger[_0x3bbc('0x6')](_0x41a63e,util[_0x3bbc('0x7')](_0x2ed9c9,{'showHidden':![],'depth':null}));};exports[_0x3bbc('0x8')]=function(_0x109066,_0x354953){var _0xc74345={'XMF-ECM':_0x354953[_0x3bbc('0x9')],'XMF-HEADERINFO':_0x354953[_0x3bbc('0xa')],'XMF-MINRATE':_0x354953['minrate'],'XMF-MAXRATE':_0x354953[_0x3bbc('0xb')],'XMF-MODEM':util['format'](_0x3bbc('0xc'),_0x354953['modem']),'XMF-GATEWAY':_0x354953[_0x3bbc('0xd')],'XMF-FAXDETECT':_0x354953[_0x3bbc('0xe')],'XMF-T38TIMEOUT':_0x354953[_0x3bbc('0xf')],'XMF-LOCALSTATIONID':_0x354953[_0x3bbc('0x10')],'XMF-PATH':_0x109066[_0x3bbc('0x11')]};return _0xc74345;};exports[_0x3bbc('0x12')]=function(_0x178c30,_0x23d552){return{'actionid':_0x178c30[_0x3bbc('0x13')],'action':_0x3bbc('0x14'),'channel':_0x178c30[_0x3bbc('0x15')],'Exten':_0x3bbc('0x16'),'Context':'from-sip','Priority':'1','callerid':util[_0x3bbc('0x17')](_0x3bbc('0x18'),_0x178c30[_0x3bbc('0xa')]?_0x178c30[_0x3bbc('0xa')]:'',_0x178c30[_0x3bbc('0x10')]),'variable':_0x23d552,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x178c30[_0x3bbc('0x13')]};};
\ No newline at end of file