3d511dabbc6db3fcc2085a0e0e37dfd0a5ef8281
[motion2.git] / server / services / ami / rpc / faxAccount.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 _0xe1d7=['Trunk','callerid','active','getFaxAccount','notify','Request','NotifyFaxAccount','getFaxAccounts','description','ecm','headerinfo','minrate','maxrate','modem','gateway','faxdetect','tech','TrunkId','key'];(function(_0x4dfed7,_0x5c56fd){var _0x210d45=function(_0xcb247b){while(--_0xcb247b){_0x4dfed7['push'](_0x4dfed7['shift']());}};_0x210d45(++_0x5c56fd);}(_0xe1d7,0x1a9));var _0x7e1d=function(_0x45564a,_0x160043){_0x45564a=_0x45564a-0x0;var _0x1184c7=_0xe1d7[_0x45564a];return _0x1184c7;};'use strict';var client=require('../client');exports[_0x7e1d('0x0')]=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id','name',_0x7e1d('0x1'),_0x7e1d('0x2'),_0x7e1d('0x3'),'localstationid',_0x7e1d('0x4'),_0x7e1d('0x5'),_0x7e1d('0x6'),_0x7e1d('0x7'),_0x7e1d('0x8'),'t38timeout',_0x7e1d('0x9'),_0x7e1d('0xa'),'ListId',_0x7e1d('0xb')],'include':[{'model':_0x7e1d('0xc'),'as':'Trunk','attributes':['id','name',_0x7e1d('0xd'),_0x7e1d('0xe')]}]},'log':_0x7e1d('0xf')});};};exports[_0x7e1d('0x10')]=function(_0x1e771a,_0x80009){return client[_0x7e1d('0x11')]('NotifyFaxAccount',{'account':{'id':_0x1e771a},'body':_0x80009,'log':_0x7e1d('0x12')});};