Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / services / ami / fax / util / util.js
index 70db65e..f4b892d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5db8=['format','modem','gateway','faxdetect','t38timeout','originate','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','localstationid','uniqueid','util','lodash','moment','fax','message','info','inspect','addVariables','ecm','headerinfo','minrate'];(function(_0x178d9c,_0x3aaad3){var _0x9656c5=function(_0x3dfe99){while(--_0x3dfe99){_0x178d9c['push'](_0x178d9c['shift']());}};_0x9656c5(++_0x3aaad3);}(_0x5db8,0xbb));var _0x85db=function(_0x332998,_0x2d99c7){_0x332998=_0x332998-0x0;var _0x460be7=_0x5db8[_0x332998];return _0x460be7;};'use strict';var util=require(_0x85db('0x0'));var _=require(_0x85db('0x1'));var moment=require(_0x85db('0x2'));var logger=require('../../../../config/logger')(_0x85db('0x3'));exports[_0x85db('0x4')]=function(_0x42c47f){return{'message':_0x42c47f};};exports['logger']=function(_0x5b7426,_0x13c216){logger[_0x85db('0x5')](_0x5b7426,util[_0x85db('0x6')](_0x13c216,{'showHidden':![],'depth':null}));};exports[_0x85db('0x7')]=function(_0x48bf16,_0x489b13){var _0x2b9f25={'XMF-ECM':_0x489b13[_0x85db('0x8')],'XMF-HEADERINFO':_0x489b13[_0x85db('0x9')],'XMF-MINRATE':_0x489b13[_0x85db('0xa')],'XMF-MAXRATE':_0x489b13['maxrate'],'XMF-MODEM':util[_0x85db('0xb')]('\x22%s\x22',_0x489b13[_0x85db('0xc')]),'XMF-GATEWAY':_0x489b13[_0x85db('0xd')],'XMF-FAXDETECT':_0x489b13[_0x85db('0xe')],'XMF-T38TIMEOUT':_0x489b13[_0x85db('0xf')],'XMF-LOCALSTATIONID':_0x489b13['localstationid'],'XMF-PATH':_0x48bf16['path']};return _0x2b9f25;};exports['variablesAction']=function(_0x14f838,_0x458b2b){return{'actionid':_0x14f838['uniqueid'],'action':_0x85db('0x10'),'channel':_0x14f838['channel'],'Exten':_0x85db('0x11'),'Context':_0x85db('0x12'),'Priority':'1','callerid':util[_0x85db('0xb')](_0x85db('0x13'),_0x14f838[_0x85db('0x9')]?_0x14f838[_0x85db('0x9')]:'',_0x14f838[_0x85db('0x14')]),'variable':_0x458b2b,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x14f838[_0x85db('0x15')]};};
\ No newline at end of file
+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