Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / fax / util / util.js
index 2feb4ae..4c06ebc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x60f1=['addVariables','ecm','headerinfo','minrate','maxrate','format','gateway','faxdetect','t38timeout','localstationid','path','variablesAction','channel','xcally-motion-fax','from-sip','util','lodash','moment','fax','logger','inspect'];(function(_0x4553ea,_0x3e207b){var _0xb8fc44=function(_0x26c5a5){while(--_0x26c5a5){_0x4553ea['push'](_0x4553ea['shift']());}};_0xb8fc44(++_0x3e207b);}(_0x60f1,0x174));var _0x160f=function(_0x3494e8,_0x4111ea){_0x3494e8=_0x3494e8-0x0;var _0x20bd8c=_0x60f1[_0x3494e8];return _0x20bd8c;};'use strict';var util=require(_0x160f('0x0'));var _=require(_0x160f('0x1'));var moment=require(_0x160f('0x2'));var logger=require('../../../../config/logger')(_0x160f('0x3'));exports['message']=function(_0x39348f){return{'message':_0x39348f};};exports[_0x160f('0x4')]=function(_0x1e1998,_0x433e9e){logger['info'](_0x1e1998,util[_0x160f('0x5')](_0x433e9e,{'showHidden':![],'depth':null}));};exports[_0x160f('0x6')]=function(_0x3d1717,_0x5f2221){var _0xb5a6a0={'XMF-ECM':_0x5f2221[_0x160f('0x7')],'XMF-HEADERINFO':_0x5f2221[_0x160f('0x8')],'XMF-MINRATE':_0x5f2221[_0x160f('0x9')],'XMF-MAXRATE':_0x5f2221[_0x160f('0xa')],'XMF-MODEM':util[_0x160f('0xb')]('\x22%s\x22',_0x5f2221['modem']),'XMF-GATEWAY':_0x5f2221[_0x160f('0xc')],'XMF-FAXDETECT':_0x5f2221[_0x160f('0xd')],'XMF-T38TIMEOUT':_0x5f2221[_0x160f('0xe')],'XMF-LOCALSTATIONID':_0x5f2221[_0x160f('0xf')],'XMF-PATH':_0x3d1717[_0x160f('0x10')]};return _0xb5a6a0;};exports[_0x160f('0x11')]=function(_0x3a985b,_0x46a55a){return{'actionid':_0x3a985b['uniqueid'],'action':'originate','channel':_0x3a985b[_0x160f('0x12')],'Exten':_0x160f('0x13'),'Context':_0x160f('0x14'),'Priority':'1','callerid':util[_0x160f('0xb')]('\x22%s\x22\x20<%s>',_0x3a985b[_0x160f('0x8')]?_0x3a985b[_0x160f('0x8')]:'',_0x3a985b[_0x160f('0xf')]),'variable':_0x46a55a,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x3a985b['uniqueid']};};
\ No newline at end of file
+var _0x0595=['moment','fax','info','addVariables','ecm','maxrate','format','\x22%s\x22','modem','gateway','t38timeout','path','uniqueid','originate','channel','from-sip','\x22%s\x22\x20<%s>','headerinfo','localstationid','util','lodash'];(function(_0x3db9b7,_0x17195b){var _0x304a1f=function(_0x4853f7){while(--_0x4853f7){_0x3db9b7['push'](_0x3db9b7['shift']());}};_0x304a1f(++_0x17195b);}(_0x0595,0x18d));var _0x5059=function(_0x1cd719,_0x4ae6c3){_0x1cd719=_0x1cd719-0x0;var _0x199f7a=_0x0595[_0x1cd719];return _0x199f7a;};'use strict';var util=require(_0x5059('0x0'));var _=require(_0x5059('0x1'));var moment=require(_0x5059('0x2'));var logger=require('../../../../config/logger')(_0x5059('0x3'));exports['message']=function(_0x4cb8f4){return{'message':_0x4cb8f4};};exports['logger']=function(_0x1707eb,_0x1d346b){logger[_0x5059('0x4')](_0x1707eb,util['inspect'](_0x1d346b,{'showHidden':![],'depth':null}));};exports[_0x5059('0x5')]=function(_0x3fca70,_0x26217d){var _0x549ffb={'XMF-ECM':_0x26217d[_0x5059('0x6')],'XMF-HEADERINFO':_0x26217d['headerinfo'],'XMF-MINRATE':_0x26217d['minrate'],'XMF-MAXRATE':_0x26217d[_0x5059('0x7')],'XMF-MODEM':util[_0x5059('0x8')](_0x5059('0x9'),_0x26217d[_0x5059('0xa')]),'XMF-GATEWAY':_0x26217d[_0x5059('0xb')],'XMF-FAXDETECT':_0x26217d['faxdetect'],'XMF-T38TIMEOUT':_0x26217d[_0x5059('0xc')],'XMF-LOCALSTATIONID':_0x26217d['localstationid'],'XMF-PATH':_0x3fca70[_0x5059('0xd')]};return _0x549ffb;};exports['variablesAction']=function(_0x43deb9,_0x44536b){return{'actionid':_0x43deb9[_0x5059('0xe')],'action':_0x5059('0xf'),'channel':_0x43deb9[_0x5059('0x10')],'Exten':'xcally-motion-fax','Context':_0x5059('0x11'),'Priority':'1','callerid':util[_0x5059('0x8')](_0x5059('0x12'),_0x43deb9['headerinfo']?_0x43deb9[_0x5059('0x13')]:'',_0x43deb9[_0x5059('0x14')]),'variable':_0x44536b,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x43deb9['uniqueid']};};
\ No newline at end of file