Built motion from commit 511216ff.|2.6.34
[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 _0x02a7=['name','description','ecm','headerinfo','localstationid','minrate','maxrate','faxdetect','tech','TrunkId','callerid','getFaxAccount','notify','NotifyFaxAccount','getFaxAccounts','Request','GetFaxAccount'];(function(_0x4abcd2,_0x3a7538){var _0x3e072f=function(_0x345749){while(--_0x345749){_0x4abcd2['push'](_0x4abcd2['shift']());}};_0x3e072f(++_0x3a7538);}(_0x02a7,0x1a6));var _0x702a=function(_0x1f2e84,_0x43bfb1){_0x1f2e84=_0x1f2e84-0x0;var _0x52700c=_0x02a7[_0x1f2e84];return _0x52700c;};'use strict';var client=require('../client');exports[_0x702a('0x0')]=function(){return function(){return client[_0x702a('0x1')](_0x702a('0x2'),{'options':{'raw':![],'attributes':['id',_0x702a('0x3'),_0x702a('0x4'),_0x702a('0x5'),_0x702a('0x6'),_0x702a('0x7'),_0x702a('0x8'),_0x702a('0x9'),'modem','gateway',_0x702a('0xa'),'t38timeout',_0x702a('0xb'),_0x702a('0xc'),'ListId','key'],'include':[{'model':'Trunk','as':'Trunk','attributes':['id',_0x702a('0x3'),_0x702a('0xd'),'active']}]},'log':_0x702a('0xe')});};};exports[_0x702a('0xf')]=function(_0xebee92,_0x25920c){return client[_0x702a('0x1')](_0x702a('0x10'),{'account':{'id':_0xebee92},'body':_0x25920c,'log':_0x702a('0x10')});};