Built motion from commit 85328c08.|2.5.50
[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 _0x4325=['GetFaxAccount','name','description','localstationid','minrate','maxrate','gateway','faxdetect','tech','ListId','key','Trunk','active','notify','Request','../client','getFaxAccounts'];(function(_0x1532ae,_0xa14bcc){var _0x5c09d1=function(_0x35167a){while(--_0x35167a){_0x1532ae['push'](_0x1532ae['shift']());}};_0x5c09d1(++_0xa14bcc);}(_0x4325,0x1da));var _0x5432=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0x4325[_0x4b369d];return _0x571a98;};'use strict';var client=require(_0x5432('0x0'));exports[_0x5432('0x1')]=function(){return function(){return client['Request'](_0x5432('0x2'),{'options':{'raw':![],'attributes':['id',_0x5432('0x3'),_0x5432('0x4'),'ecm','headerinfo',_0x5432('0x5'),_0x5432('0x6'),_0x5432('0x7'),'modem',_0x5432('0x8'),_0x5432('0x9'),'t38timeout',_0x5432('0xa'),'TrunkId',_0x5432('0xb'),_0x5432('0xc')],'include':[{'model':_0x5432('0xd'),'as':_0x5432('0xd'),'attributes':['id',_0x5432('0x3'),'callerid',_0x5432('0xe')]}]},'log':'getFaxAccount'});};};exports[_0x5432('0xf')]=function(_0x35faac,_0x3dfa4){return client[_0x5432('0x10')]('NotifyFaxAccount',{'account':{'id':_0x35faac},'body':_0x3dfa4,'log':'NotifyFaxAccount'});};