Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / services / ami / fax / util / util.js
index f4b892d..44f2210 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5ff3=['originate','channel','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','headerinfo','uniqueid','lodash','../../../../config/logger','message','logger','info','inspect','addVariables','ecm','minrate','maxrate','format','modem','faxdetect','t38timeout','variablesAction'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x5ff3,0x17d));var _0x35ff=function(_0x387aa7,_0x5dfcba){_0x387aa7=_0x387aa7-0x0;var _0x534a87=_0x5ff3[_0x387aa7];return _0x534a87;};'use strict';var util=require('util');var _=require(_0x35ff('0x0'));var moment=require('moment');var logger=require(_0x35ff('0x1'))('fax');exports[_0x35ff('0x2')]=function(_0x1bb200){return{'message':_0x1bb200};};exports[_0x35ff('0x3')]=function(_0xd0846d,_0x551514){logger[_0x35ff('0x4')](_0xd0846d,util[_0x35ff('0x5')](_0x551514,{'showHidden':![],'depth':null}));};exports[_0x35ff('0x6')]=function(_0x11e738,_0x30c3ff){var _0x495c31={'XMF-ECM':_0x30c3ff[_0x35ff('0x7')],'XMF-HEADERINFO':_0x30c3ff['headerinfo'],'XMF-MINRATE':_0x30c3ff[_0x35ff('0x8')],'XMF-MAXRATE':_0x30c3ff[_0x35ff('0x9')],'XMF-MODEM':util[_0x35ff('0xa')]('\x22%s\x22',_0x30c3ff[_0x35ff('0xb')]),'XMF-GATEWAY':_0x30c3ff['gateway'],'XMF-FAXDETECT':_0x30c3ff[_0x35ff('0xc')],'XMF-T38TIMEOUT':_0x30c3ff[_0x35ff('0xd')],'XMF-LOCALSTATIONID':_0x30c3ff['localstationid'],'XMF-PATH':_0x11e738['path']};return _0x495c31;};exports[_0x35ff('0xe')]=function(_0x574c81,_0x592295){return{'actionid':_0x574c81['uniqueid'],'action':_0x35ff('0xf'),'channel':_0x574c81[_0x35ff('0x10')],'Exten':_0x35ff('0x11'),'Context':_0x35ff('0x12'),'Priority':'1','callerid':util['format'](_0x35ff('0x13'),_0x574c81[_0x35ff('0x14')]?_0x574c81[_0x35ff('0x14')]:'',_0x574c81['localstationid']),'variable':_0x592295,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x574c81[_0x35ff('0x15')]};};
\ No newline at end of file
+var _0xe205=['inspect','addVariables','ecm','maxrate','format','modem','gateway','faxdetect','t38timeout','path','variablesAction','uniqueid','originate','xcally-motion-fax','from-sip','headerinfo','localstationid','util','lodash','moment','../../../../config/logger','fax','message','logger','info'];(function(_0x5c3ae9,_0x450f9a){var _0x3f5950=function(_0x594c1f){while(--_0x594c1f){_0x5c3ae9['push'](_0x5c3ae9['shift']());}};_0x3f5950(++_0x450f9a);}(_0xe205,0xa7));var _0x5e20=function(_0x431e61,_0x53c722){_0x431e61=_0x431e61-0x0;var _0x5328e4=_0xe205[_0x431e61];return _0x5328e4;};'use strict';var util=require(_0x5e20('0x0'));var _=require(_0x5e20('0x1'));var moment=require(_0x5e20('0x2'));var logger=require(_0x5e20('0x3'))(_0x5e20('0x4'));exports[_0x5e20('0x5')]=function(_0x13bace){return{'message':_0x13bace};};exports[_0x5e20('0x6')]=function(_0x37c5e9,_0x4ac934){logger[_0x5e20('0x7')](_0x37c5e9,util[_0x5e20('0x8')](_0x4ac934,{'showHidden':![],'depth':null}));};exports[_0x5e20('0x9')]=function(_0x3c4203,_0x5eca5c){var _0x4cc88d={'XMF-ECM':_0x5eca5c[_0x5e20('0xa')],'XMF-HEADERINFO':_0x5eca5c['headerinfo'],'XMF-MINRATE':_0x5eca5c['minrate'],'XMF-MAXRATE':_0x5eca5c[_0x5e20('0xb')],'XMF-MODEM':util[_0x5e20('0xc')]('\x22%s\x22',_0x5eca5c[_0x5e20('0xd')]),'XMF-GATEWAY':_0x5eca5c[_0x5e20('0xe')],'XMF-FAXDETECT':_0x5eca5c[_0x5e20('0xf')],'XMF-T38TIMEOUT':_0x5eca5c[_0x5e20('0x10')],'XMF-LOCALSTATIONID':_0x5eca5c['localstationid'],'XMF-PATH':_0x3c4203[_0x5e20('0x11')]};return _0x4cc88d;};exports[_0x5e20('0x12')]=function(_0x270689,_0x27f1f9){return{'actionid':_0x270689[_0x5e20('0x13')],'action':_0x5e20('0x14'),'channel':_0x270689['channel'],'Exten':_0x5e20('0x15'),'Context':_0x5e20('0x16'),'Priority':'1','callerid':util[_0x5e20('0xc')]('\x22%s\x22\x20<%s>',_0x270689[_0x5e20('0x17')]?_0x270689['headerinfo']:'',_0x270689[_0x5e20('0x18')]),'variable':_0x27f1f9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x270689['uniqueid']};};
\ No newline at end of file