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 _0xba00=['ListId','key','Trunk','active','getFaxAccount','notify','NotifyFaxAccount','../client','Request','name','description','ecm','headerinfo','localstationid','minrate','maxrate','gateway','t38timeout','tech','TrunkId'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xba00,0x6b));var _0x0ba0=function(_0x4601d0,_0x10a112){_0x4601d0=_0x4601d0-0x0;var _0x5dedef=_0xba00[_0x4601d0];return _0x5dedef;};'use strict';var client=require(_0x0ba0('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x0ba0('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x0ba0('0x2'),_0x0ba0('0x3'),_0x0ba0('0x4'),_0x0ba0('0x5'),_0x0ba0('0x6'),_0x0ba0('0x7'),_0x0ba0('0x8'),'modem',_0x0ba0('0x9'),'faxdetect',_0x0ba0('0xa'),_0x0ba0('0xb'),_0x0ba0('0xc'),_0x0ba0('0xd'),_0x0ba0('0xe')],'include':[{'model':_0x0ba0('0xf'),'as':'Trunk','attributes':['id',_0x0ba0('0x2'),'callerid',_0x0ba0('0x10')]}]},'log':_0x0ba0('0x11')});};};exports[_0x0ba0('0x12')]=function(_0x3cc37e,_0x50ec4c){return client[_0x0ba0('0x1')]('NotifyFaxAccount',{'account':{'id':_0x3cc37e},'body':_0x50ec4c,'log':_0x0ba0('0x13')});};