eb62a8685a2699221ebd22e027258ad576f707c8
[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 _0x3425=['GetFaxAccount','headerinfo','maxrate','modem','gateway','t38timeout','tech','Trunk','name','callerid','active','getFaxAccount','notify','Request'];(function(_0x1786e0,_0x19dc8c){var _0x4a6229=function(_0x151bdd){while(--_0x151bdd){_0x1786e0['push'](_0x1786e0['shift']());}};_0x4a6229(++_0x19dc8c);}(_0x3425,0x1c0));var _0x5342=function(_0x2a37a2,_0x4faca){_0x2a37a2=_0x2a37a2-0x0;var _0x3de7c6=_0x3425[_0x2a37a2];return _0x3de7c6;};'use strict';var client=require('../client');exports['getFaxAccounts']=function(){return function(){return client['Request'](_0x5342('0x0'),{'options':{'raw':![],'attributes':['id','name','description','ecm',_0x5342('0x1'),'localstationid','minrate',_0x5342('0x2'),_0x5342('0x3'),_0x5342('0x4'),'faxdetect',_0x5342('0x5'),_0x5342('0x6'),'TrunkId','ListId','key'],'include':[{'model':_0x5342('0x7'),'as':'Trunk','attributes':['id',_0x5342('0x8'),_0x5342('0x9'),_0x5342('0xa')]}]},'log':_0x5342('0xb')});};};exports[_0x5342('0xc')]=function(_0x460e09,_0x5a37d){return client[_0x5342('0xd')]('NotifyFaxAccount',{'account':{'id':_0x460e09},'body':_0x5a37d,'log':'NotifyFaxAccount'});};