fe1a2cbf49577014eba17be232345706dd6052a8
[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 _0x3e94=['TrunkId','ListId','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','headerinfo','localstationid','minrate','modem','faxdetect','tech'];(function(_0x368fc3,_0x2b7c2c){var _0x1fa4b2=function(_0x50ff8c){while(--_0x50ff8c){_0x368fc3['push'](_0x368fc3['shift']());}};_0x1fa4b2(++_0x2b7c2c);}(_0x3e94,0x67));var _0x43e9=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0x3e94[_0x465028];return _0xb783d4;};'use strict';var client=require(_0x43e9('0x0'));exports[_0x43e9('0x1')]=function(){return function(){return client['Request'](_0x43e9('0x2'),{'options':{'raw':![],'attributes':['id',_0x43e9('0x3'),_0x43e9('0x4'),'ecm',_0x43e9('0x5'),_0x43e9('0x6'),_0x43e9('0x7'),'maxrate',_0x43e9('0x8'),'gateway',_0x43e9('0x9'),'t38timeout',_0x43e9('0xa'),_0x43e9('0xb'),_0x43e9('0xc'),'key'],'include':[{'model':_0x43e9('0xd'),'as':_0x43e9('0xd'),'attributes':['id',_0x43e9('0x3'),_0x43e9('0xe'),_0x43e9('0xf')]}]},'log':_0x43e9('0x10')});};};exports[_0x43e9('0x11')]=function(_0x3c3ee3,_0x377899){return client['Request'](_0x43e9('0x12'),{'account':{'id':_0x3c3ee3},'body':_0x377899,'log':_0x43e9('0x12')});};