Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / services / ami / fax / util / util.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe205=['inspect','addVariables','ecm','maxrate','format','modem','gateway','faxdetect','t38timeout','path','variablesAction','uniqueid','originate','xcally-motion-fax','from-sip','headerinfo','localstationid','util','lodash','moment','../../../../config/logger','fax','message','logger','info'];(function(_0x5c3ae9,_0x450f9a){var _0x3f5950=function(_0x594c1f){while(--_0x594c1f){_0x5c3ae9['push'](_0x5c3ae9['shift']());}};_0x3f5950(++_0x450f9a);}(_0xe205,0xa7));var _0x5e20=function(_0x431e61,_0x53c722){_0x431e61=_0x431e61-0x0;var _0x5328e4=_0xe205[_0x431e61];return _0x5328e4;};'use strict';var util=require(_0x5e20('0x0'));var _=require(_0x5e20('0x1'));var moment=require(_0x5e20('0x2'));var logger=require(_0x5e20('0x3'))(_0x5e20('0x4'));exports[_0x5e20('0x5')]=function(_0x13bace){return{'message':_0x13bace};};exports[_0x5e20('0x6')]=function(_0x37c5e9,_0x4ac934){logger[_0x5e20('0x7')](_0x37c5e9,util[_0x5e20('0x8')](_0x4ac934,{'showHidden':![],'depth':null}));};exports[_0x5e20('0x9')]=function(_0x3c4203,_0x5eca5c){var _0x4cc88d={'XMF-ECM':_0x5eca5c[_0x5e20('0xa')],'XMF-HEADERINFO':_0x5eca5c['headerinfo'],'XMF-MINRATE':_0x5eca5c['minrate'],'XMF-MAXRATE':_0x5eca5c[_0x5e20('0xb')],'XMF-MODEM':util[_0x5e20('0xc')]('\x22%s\x22',_0x5eca5c[_0x5e20('0xd')]),'XMF-GATEWAY':_0x5eca5c[_0x5e20('0xe')],'XMF-FAXDETECT':_0x5eca5c[_0x5e20('0xf')],'XMF-T38TIMEOUT':_0x5eca5c[_0x5e20('0x10')],'XMF-LOCALSTATIONID':_0x5eca5c['localstationid'],'XMF-PATH':_0x3c4203[_0x5e20('0x11')]};return _0x4cc88d;};exports[_0x5e20('0x12')]=function(_0x270689,_0x27f1f9){return{'actionid':_0x270689[_0x5e20('0x13')],'action':_0x5e20('0x14'),'channel':_0x270689['channel'],'Exten':_0x5e20('0x15'),'Context':_0x5e20('0x16'),'Priority':'1','callerid':util[_0x5e20('0xc')]('\x22%s\x22\x20<%s>',_0x270689[_0x5e20('0x17')]?_0x270689['headerinfo']:'',_0x270689[_0x5e20('0x18')]),'variable':_0x27f1f9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x270689['uniqueid']};};