Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / fax / util / util.js
index 271b101..2feb4ae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x58b5=['addVariables','ecm','headerinfo','maxrate','format','gateway','faxdetect','t38timeout','localstationid','variablesAction','uniqueid','originate','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','util','lodash','moment','../../../../config/logger','message','logger','info','inspect'];(function(_0x1e55a1,_0x3a4778){var _0x53e886=function(_0x238165){while(--_0x238165){_0x1e55a1['push'](_0x1e55a1['shift']());}};_0x53e886(++_0x3a4778);}(_0x58b5,0x123));var _0x558b=function(_0x989619,_0x41b8c3){_0x989619=_0x989619-0x0;var _0x288239=_0x58b5[_0x989619];return _0x288239;};'use strict';var util=require(_0x558b('0x0'));var _=require(_0x558b('0x1'));var moment=require(_0x558b('0x2'));var logger=require(_0x558b('0x3'))('fax');exports[_0x558b('0x4')]=function(_0x47869e){return{'message':_0x47869e};};exports[_0x558b('0x5')]=function(_0x18e3ea,_0x7dbded){logger[_0x558b('0x6')](_0x18e3ea,util[_0x558b('0x7')](_0x7dbded,{'showHidden':![],'depth':null}));};exports[_0x558b('0x8')]=function(_0xcc084a,_0x187b81){var _0x1b62a6={'XMF-ECM':_0x187b81[_0x558b('0x9')],'XMF-HEADERINFO':_0x187b81[_0x558b('0xa')],'XMF-MINRATE':_0x187b81['minrate'],'XMF-MAXRATE':_0x187b81[_0x558b('0xb')],'XMF-MODEM':util[_0x558b('0xc')]('\x22%s\x22',_0x187b81['modem']),'XMF-GATEWAY':_0x187b81[_0x558b('0xd')],'XMF-FAXDETECT':_0x187b81[_0x558b('0xe')],'XMF-T38TIMEOUT':_0x187b81[_0x558b('0xf')],'XMF-LOCALSTATIONID':_0x187b81[_0x558b('0x10')],'XMF-PATH':_0xcc084a['path']};return _0x1b62a6;};exports[_0x558b('0x11')]=function(_0x38233c,_0x3586fc){return{'actionid':_0x38233c[_0x558b('0x12')],'action':_0x558b('0x13'),'channel':_0x38233c['channel'],'Exten':_0x558b('0x14'),'Context':_0x558b('0x15'),'Priority':'1','callerid':util[_0x558b('0xc')](_0x558b('0x16'),_0x38233c[_0x558b('0xa')]?_0x38233c['headerinfo']:'',_0x38233c[_0x558b('0x10')]),'variable':_0x3586fc,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x38233c[_0x558b('0x12')]};};
\ No newline at end of file
+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