1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xb582=['uniqueid','util','lodash','moment','../../../../config/logger','fax','message','logger','inspect','addVariables','headerinfo','minrate','maxrate','format','t38timeout','variablesAction','xcally-motion-fax','from-sip'];(function(_0x4b2436,_0x452299){var _0x4f5ab2=function(_0x5c6679){while(--_0x5c6679){_0x4b2436['push'](_0x4b2436['shift']());}};_0x4f5ab2(++_0x452299);}(_0xb582,0x1e7));var _0x2b58=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0xb582[_0x397e5f];return _0x5302b8;};'use strict';var util=require(_0x2b58('0x0'));var _=require(_0x2b58('0x1'));var moment=require(_0x2b58('0x2'));var logger=require(_0x2b58('0x3'))(_0x2b58('0x4'));exports[_0x2b58('0x5')]=function(_0x439c83){return{'message':_0x439c83};};exports[_0x2b58('0x6')]=function(_0x12a37d,_0x16d228){logger['info'](_0x12a37d,util[_0x2b58('0x7')](_0x16d228,{'showHidden':![],'depth':null}));};exports[_0x2b58('0x8')]=function(_0x36bd74,_0x1dc05e){var _0x4893e1={'XMF-ECM':_0x1dc05e['ecm'],'XMF-HEADERINFO':_0x1dc05e[_0x2b58('0x9')],'XMF-MINRATE':_0x1dc05e[_0x2b58('0xa')],'XMF-MAXRATE':_0x1dc05e[_0x2b58('0xb')],'XMF-MODEM':util[_0x2b58('0xc')]('\x22%s\x22',_0x1dc05e['modem']),'XMF-GATEWAY':_0x1dc05e['gateway'],'XMF-FAXDETECT':_0x1dc05e['faxdetect'],'XMF-T38TIMEOUT':_0x1dc05e[_0x2b58('0xd')],'XMF-LOCALSTATIONID':_0x1dc05e['localstationid'],'XMF-PATH':_0x36bd74['path']};return _0x4893e1;};exports[_0x2b58('0xe')]=function(_0x47b73b,_0x2942a3){return{'actionid':_0x47b73b['uniqueid'],'action':'originate','channel':_0x47b73b['channel'],'Exten':_0x2b58('0xf'),'Context':_0x2b58('0x10'),'Priority':'1','callerid':util['format']('\x22%s\x22\x20<%s>',_0x47b73b[_0x2b58('0x9')]?_0x47b73b[_0x2b58('0x9')]:'',_0x47b73b['localstationid']),'variable':_0x2942a3,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x47b73b[_0x2b58('0x11')]};};