e32bc1611a11519ec1504c5fdef14caef9925450
[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 _0x6372=['ListId','Trunk','callerid','notify','NotifyFaxAccount','../client','Request','name','description','headerinfo','localstationid','minrate','maxrate','modem','faxdetect'];(function(_0x3b263f,_0x693711){var _0x219d9a=function(_0x1e0891){while(--_0x1e0891){_0x3b263f['push'](_0x3b263f['shift']());}};_0x219d9a(++_0x693711);}(_0x6372,0x1b8));var _0x2637=function(_0x2abbfb,_0x4222ff){_0x2abbfb=_0x2abbfb-0x0;var _0x1d6c4f=_0x6372[_0x2abbfb];return _0x1d6c4f;};'use strict';var client=require(_0x2637('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x2637('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x2637('0x2'),_0x2637('0x3'),'ecm',_0x2637('0x4'),_0x2637('0x5'),_0x2637('0x6'),_0x2637('0x7'),_0x2637('0x8'),'gateway',_0x2637('0x9'),'t38timeout','tech','TrunkId',_0x2637('0xa'),'key'],'include':[{'model':'Trunk','as':_0x2637('0xb'),'attributes':['id',_0x2637('0x2'),_0x2637('0xc'),'active']}]},'log':'getFaxAccount'});};};exports[_0x2637('0xd')]=function(_0x3e2b57,_0x3e5643){return client[_0x2637('0x1')](_0x2637('0xe'),{'account':{'id':_0x3e2b57},'body':_0x3e5643,'log':_0x2637('0xe')});};