2d7833fd19d86ad86802085127d9cb846de2395a
[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 _0xba37=['notify','NotifyFaxAccount','../client','Request','name','ecm','headerinfo','localstationid','minrate','maxrate','gateway','tech','TrunkId','key','Trunk','callerid','active','getFaxAccount'];(function(_0x6953bc,_0x1c64c0){var _0x59bfbe=function(_0x2a7f64){while(--_0x2a7f64){_0x6953bc['push'](_0x6953bc['shift']());}};_0x59bfbe(++_0x1c64c0);}(_0xba37,0xb6));var _0x7ba3=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xba37[_0x2c91e9];return _0x13f0ff;};'use strict';var client=require(_0x7ba3('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x7ba3('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x7ba3('0x2'),'description',_0x7ba3('0x3'),_0x7ba3('0x4'),_0x7ba3('0x5'),_0x7ba3('0x6'),_0x7ba3('0x7'),'modem',_0x7ba3('0x8'),'faxdetect','t38timeout',_0x7ba3('0x9'),_0x7ba3('0xa'),'ListId',_0x7ba3('0xb')],'include':[{'model':_0x7ba3('0xc'),'as':_0x7ba3('0xc'),'attributes':['id',_0x7ba3('0x2'),_0x7ba3('0xd'),_0x7ba3('0xe')]}]},'log':_0x7ba3('0xf')});};};exports[_0x7ba3('0x10')]=function(_0x281b9a,_0x5cc931){return client[_0x7ba3('0x1')](_0x7ba3('0x11'),{'account':{'id':_0x281b9a},'body':_0x5cc931,'log':_0x7ba3('0x11')});};