Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / ami / fax / util / util.js
index b59caa5..ac1f0b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x64f2=['headerinfo','localstationid','moment','../../../../config/logger','fax','message','inspect','addVariables','ecm','minrate','maxrate','gateway','faxdetect','t38timeout','variablesAction','uniqueid','channel','xcally-motion-fax','from-sip'];(function(_0x3d2d2d,_0xcbc2fa){var _0x5325e4=function(_0xcb1b4f){while(--_0xcb1b4f){_0x3d2d2d['push'](_0x3d2d2d['shift']());}};_0x5325e4(++_0xcbc2fa);}(_0x64f2,0xad));var _0x264f=function(_0x19f7c5,_0x382820){_0x19f7c5=_0x19f7c5-0x0;var _0x169121=_0x64f2[_0x19f7c5];return _0x169121;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x264f('0x0'));var logger=require(_0x264f('0x1'))(_0x264f('0x2'));exports[_0x264f('0x3')]=function(_0x3f569c){return{'message':_0x3f569c};};exports['logger']=function(_0x444807,_0x44f6db){logger['info'](_0x444807,util[_0x264f('0x4')](_0x44f6db,{'showHidden':![],'depth':null}));};exports[_0x264f('0x5')]=function(_0x385962,_0x154930){var _0x411d0={'XMF-ECM':_0x154930[_0x264f('0x6')],'XMF-HEADERINFO':_0x154930['headerinfo'],'XMF-MINRATE':_0x154930[_0x264f('0x7')],'XMF-MAXRATE':_0x154930[_0x264f('0x8')],'XMF-MODEM':util['format']('\x22%s\x22',_0x154930['modem']),'XMF-GATEWAY':_0x154930[_0x264f('0x9')],'XMF-FAXDETECT':_0x154930[_0x264f('0xa')],'XMF-T38TIMEOUT':_0x154930[_0x264f('0xb')],'XMF-LOCALSTATIONID':_0x154930['localstationid'],'XMF-PATH':_0x385962['path']};return _0x411d0;};exports[_0x264f('0xc')]=function(_0x255150,_0x1a6bc9){return{'actionid':_0x255150[_0x264f('0xd')],'action':'originate','channel':_0x255150[_0x264f('0xe')],'Exten':_0x264f('0xf'),'Context':_0x264f('0x10'),'Priority':'1','callerid':util['format']('\x22%s\x22\x20<%s>',_0x255150[_0x264f('0x11')]?_0x255150[_0x264f('0x11')]:'',_0x255150[_0x264f('0x12')]),'variable':_0x1a6bc9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x255150[_0x264f('0xd')]};};
\ No newline at end of file
+var _0x9035=['\x22%s\x22','gateway','faxdetect','t38timeout','localstationid','path','variablesAction','originate','channel','from-sip','\x22%s\x22\x20<%s>','headerinfo','uniqueid','util','lodash','moment','../../../../config/logger','message','logger','info','inspect','addVariables','ecm','minrate','maxrate','format'];(function(_0x1b12a1,_0x2644c1){var _0x29767a=function(_0x50a598){while(--_0x50a598){_0x1b12a1['push'](_0x1b12a1['shift']());}};_0x29767a(++_0x2644c1);}(_0x9035,0x75));var _0x5903=function(_0x1e5b5f,_0x4f0568){_0x1e5b5f=_0x1e5b5f-0x0;var _0x4d8adc=_0x9035[_0x1e5b5f];return _0x4d8adc;};'use strict';var util=require(_0x5903('0x0'));var _=require(_0x5903('0x1'));var moment=require(_0x5903('0x2'));var logger=require(_0x5903('0x3'))('fax');exports[_0x5903('0x4')]=function(_0x340b2c){return{'message':_0x340b2c};};exports[_0x5903('0x5')]=function(_0x514ccc,_0x388148){logger[_0x5903('0x6')](_0x514ccc,util[_0x5903('0x7')](_0x388148,{'showHidden':![],'depth':null}));};exports[_0x5903('0x8')]=function(_0x14c960,_0x366f99){var _0x28334b={'XMF-ECM':_0x366f99[_0x5903('0x9')],'XMF-HEADERINFO':_0x366f99['headerinfo'],'XMF-MINRATE':_0x366f99[_0x5903('0xa')],'XMF-MAXRATE':_0x366f99[_0x5903('0xb')],'XMF-MODEM':util[_0x5903('0xc')](_0x5903('0xd'),_0x366f99['modem']),'XMF-GATEWAY':_0x366f99[_0x5903('0xe')],'XMF-FAXDETECT':_0x366f99[_0x5903('0xf')],'XMF-T38TIMEOUT':_0x366f99[_0x5903('0x10')],'XMF-LOCALSTATIONID':_0x366f99[_0x5903('0x11')],'XMF-PATH':_0x14c960[_0x5903('0x12')]};return _0x28334b;};exports[_0x5903('0x13')]=function(_0x902312,_0x4bc31b){return{'actionid':_0x902312['uniqueid'],'action':_0x5903('0x14'),'channel':_0x902312[_0x5903('0x15')],'Exten':'xcally-motion-fax','Context':_0x5903('0x16'),'Priority':'1','callerid':util[_0x5903('0xc')](_0x5903('0x17'),_0x902312[_0x5903('0x18')]?_0x902312['headerinfo']:'',_0x902312[_0x5903('0x11')]),'variable':_0x4bc31b,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x902312[_0x5903('0x19')]};};
\ No newline at end of file