41ee1965f51c4e53672024278f7ca39f43098d80
[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 _0x7bef=['notify','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','localstationid','minrate','maxrate','gateway','tech','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount'];(function(_0x20589d,_0x55d5bf){var _0x422de9=function(_0x44cbbb){while(--_0x44cbbb){_0x20589d['push'](_0x20589d['shift']());}};_0x422de9(++_0x55d5bf);}(_0x7bef,0xfe));var _0xf7be=function(_0x15f724,_0x2794ef){_0x15f724=_0x15f724-0x0;var _0x49b152=_0x7bef[_0x15f724];return _0x49b152;};'use strict';var client=require(_0xf7be('0x0'));exports[_0xf7be('0x1')]=function(){return function(){return client[_0xf7be('0x2')](_0xf7be('0x3'),{'options':{'raw':![],'attributes':['id',_0xf7be('0x4'),_0xf7be('0x5'),_0xf7be('0x6'),'headerinfo',_0xf7be('0x7'),_0xf7be('0x8'),_0xf7be('0x9'),'modem',_0xf7be('0xa'),'faxdetect','t38timeout',_0xf7be('0xb'),_0xf7be('0xc'),_0xf7be('0xd'),_0xf7be('0xe')],'include':[{'model':_0xf7be('0xf'),'as':_0xf7be('0xf'),'attributes':['id',_0xf7be('0x4'),_0xf7be('0x10'),_0xf7be('0x11')]}]},'log':_0xf7be('0x12')});};};exports[_0xf7be('0x13')]=function(_0xa32482,_0x92cbd8){return client[_0xf7be('0x2')](_0xf7be('0x14'),{'account':{'id':_0xa32482},'body':_0x92cbd8,'log':_0xf7be('0x14')});};