Built motion from commit (unavailable).|2.5.9
[motion2.git] / server / services / ami / fax / util / util.js
index df6b62c..39a8693 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7af2=['info','inspect','addVariables','ecm','headerinfo','minrate','format','\x22%s\x22','modem','faxdetect','path','originate','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','localstationid','uniqueid','lodash','moment','../../../../config/logger','fax','logger'];(function(_0x4ae6ef,_0xc2af80){var _0x3cbb4e=function(_0x569ad5){while(--_0x569ad5){_0x4ae6ef['push'](_0x4ae6ef['shift']());}};_0x3cbb4e(++_0xc2af80);}(_0x7af2,0x119));var _0x27af=function(_0x3bcd96,_0x226d9e){_0x3bcd96=_0x3bcd96-0x0;var _0xd2b7f0=_0x7af2[_0x3bcd96];return _0xd2b7f0;};'use strict';var util=require('util');var _=require(_0x27af('0x0'));var moment=require(_0x27af('0x1'));var logger=require(_0x27af('0x2'))(_0x27af('0x3'));exports['message']=function(_0x8556d){return{'message':_0x8556d};};exports[_0x27af('0x4')]=function(_0x709cb6,_0x2a542f){logger[_0x27af('0x5')](_0x709cb6,util[_0x27af('0x6')](_0x2a542f,{'showHidden':![],'depth':null}));};exports[_0x27af('0x7')]=function(_0x184630,_0x2193c6){var _0x572219={'XMF-ECM':_0x2193c6[_0x27af('0x8')],'XMF-HEADERINFO':_0x2193c6[_0x27af('0x9')],'XMF-MINRATE':_0x2193c6[_0x27af('0xa')],'XMF-MAXRATE':_0x2193c6['maxrate'],'XMF-MODEM':util[_0x27af('0xb')](_0x27af('0xc'),_0x2193c6[_0x27af('0xd')]),'XMF-GATEWAY':_0x2193c6['gateway'],'XMF-FAXDETECT':_0x2193c6[_0x27af('0xe')],'XMF-T38TIMEOUT':_0x2193c6['t38timeout'],'XMF-LOCALSTATIONID':_0x2193c6['localstationid'],'XMF-PATH':_0x184630[_0x27af('0xf')]};return _0x572219;};exports['variablesAction']=function(_0x50fe01,_0x184e25){return{'actionid':_0x50fe01['uniqueid'],'action':_0x27af('0x10'),'channel':_0x50fe01['channel'],'Exten':_0x27af('0x11'),'Context':_0x27af('0x12'),'Priority':'1','callerid':util[_0x27af('0xb')](_0x27af('0x13'),_0x50fe01[_0x27af('0x9')]?_0x50fe01[_0x27af('0x9')]:'',_0x50fe01[_0x27af('0x14')]),'variable':_0x184e25,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x50fe01[_0x27af('0x15')]};};
\ No newline at end of file
+var _0x9b9b=['maxrate','modem','gateway','faxdetect','localstationid','path','variablesAction','uniqueid','originate','channel','xcally-motion-fax','from-sip','lodash','fax','message','logger','info','inspect','addVariables','ecm','headerinfo','minrate'];(function(_0x5ce34a,_0x57887e){var _0x309350=function(_0x52a947){while(--_0x52a947){_0x5ce34a['push'](_0x5ce34a['shift']());}};_0x309350(++_0x57887e);}(_0x9b9b,0x114));var _0xb9b9=function(_0x32083e,_0x130a41){_0x32083e=_0x32083e-0x0;var _0x1efcc7=_0x9b9b[_0x32083e];return _0x1efcc7;};'use strict';var util=require('util');var _=require(_0xb9b9('0x0'));var moment=require('moment');var logger=require('../../../../config/logger')(_0xb9b9('0x1'));exports[_0xb9b9('0x2')]=function(_0x1adf50){return{'message':_0x1adf50};};exports[_0xb9b9('0x3')]=function(_0x1d6ab6,_0x43c8ff){logger[_0xb9b9('0x4')](_0x1d6ab6,util[_0xb9b9('0x5')](_0x43c8ff,{'showHidden':![],'depth':null}));};exports[_0xb9b9('0x6')]=function(_0x3d1a95,_0x85eec){var _0x3ef9c1={'XMF-ECM':_0x85eec[_0xb9b9('0x7')],'XMF-HEADERINFO':_0x85eec[_0xb9b9('0x8')],'XMF-MINRATE':_0x85eec[_0xb9b9('0x9')],'XMF-MAXRATE':_0x85eec[_0xb9b9('0xa')],'XMF-MODEM':util['format']('\x22%s\x22',_0x85eec[_0xb9b9('0xb')]),'XMF-GATEWAY':_0x85eec[_0xb9b9('0xc')],'XMF-FAXDETECT':_0x85eec[_0xb9b9('0xd')],'XMF-T38TIMEOUT':_0x85eec['t38timeout'],'XMF-LOCALSTATIONID':_0x85eec[_0xb9b9('0xe')],'XMF-PATH':_0x3d1a95[_0xb9b9('0xf')]};return _0x3ef9c1;};exports[_0xb9b9('0x10')]=function(_0x4d8856,_0x3430a6){return{'actionid':_0x4d8856[_0xb9b9('0x11')],'action':_0xb9b9('0x12'),'channel':_0x4d8856[_0xb9b9('0x13')],'Exten':_0xb9b9('0x14'),'Context':_0xb9b9('0x15'),'Priority':'1','callerid':util['format']('\x22%s\x22\x20<%s>',_0x4d8856[_0xb9b9('0x8')]?_0x4d8856['headerinfo']:'',_0x4d8856[_0xb9b9('0xe')]),'variable':_0x3430a6,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x4d8856['uniqueid']};};
\ No newline at end of file