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 _0x0a6b=['../client','Request','GetFaxAccount','name','description','ecm','headerinfo','localstationid','minrate','maxrate','modem','faxdetect','tech','key','Trunk','active','getFaxAccount','NotifyFaxAccount'];(function(_0x15ea90,_0x21f1c5){var _0x10dfe3=function(_0xf9d42e){while(--_0xf9d42e){_0x15ea90['push'](_0x15ea90['shift']());}};_0x10dfe3(++_0x21f1c5);}(_0x0a6b,0x120));var _0xb0a6=function(_0x102705,_0xd2d3b0){_0x102705=_0x102705-0x0;var _0x125547=_0x0a6b[_0x102705];return _0x125547;};'use strict';var client=require(_0xb0a6('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xb0a6('0x1')](_0xb0a6('0x2'),{'options':{'raw':![],'attributes':['id',_0xb0a6('0x3'),_0xb0a6('0x4'),_0xb0a6('0x5'),_0xb0a6('0x6'),_0xb0a6('0x7'),_0xb0a6('0x8'),_0xb0a6('0x9'),_0xb0a6('0xa'),'gateway',_0xb0a6('0xb'),'t38timeout',_0xb0a6('0xc'),'TrunkId','ListId',_0xb0a6('0xd')],'include':[{'model':'Trunk','as':_0xb0a6('0xe'),'attributes':['id',_0xb0a6('0x3'),'callerid',_0xb0a6('0xf')]}]},'log':_0xb0a6('0x10')});};};exports['notify']=function(_0x1245ab,_0x433968){return client[_0xb0a6('0x1')](_0xb0a6('0x11'),{'account':{'id':_0x1245ab},'body':_0x433968,'log':_0xb0a6('0x11')});};