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 _0xe785=['tech','TrunkId','ListId','Trunk','active','getFaxAccount','Request','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','ecm','minrate','maxrate','modem','gateway'];(function(_0x5612e2,_0x5e1d19){var _0xd73c13=function(_0x2ee814){while(--_0x2ee814){_0x5612e2['push'](_0x5612e2['shift']());}};_0xd73c13(++_0x5e1d19);}(_0xe785,0x128));var _0x5e78=function(_0x24add7,_0x2f8e80){_0x24add7=_0x24add7-0x0;var _0x5a28bb=_0xe785[_0x24add7];return _0x5a28bb;};'use strict';var client=require(_0x5e78('0x0'));exports[_0x5e78('0x1')]=function(){return function(){return client['Request'](_0x5e78('0x2'),{'options':{'raw':![],'attributes':['id',_0x5e78('0x3'),_0x5e78('0x4'),_0x5e78('0x5'),'headerinfo','localstationid',_0x5e78('0x6'),_0x5e78('0x7'),_0x5e78('0x8'),_0x5e78('0x9'),'faxdetect','t38timeout',_0x5e78('0xa'),_0x5e78('0xb'),_0x5e78('0xc'),'key'],'include':[{'model':_0x5e78('0xd'),'as':'Trunk','attributes':['id',_0x5e78('0x3'),'callerid',_0x5e78('0xe')]}]},'log':_0x5e78('0xf')});};};exports['notify']=function(_0x171425,_0x21daa1){return client[_0x5e78('0x10')](_0x5e78('0x11'),{'account':{'id':_0x171425},'body':_0x21daa1,'log':_0x5e78('0x11')});};