Built motion from commit 2e4747fd.|2.6.7
[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 _0x94ff=['notify','Request','NotifyFaxAccount','../client','name','description','ecm','localstationid','minrate','modem','gateway','t38timeout','TrunkId','ListId','Trunk','getFaxAccount'];(function(_0x360083,_0x272ea6){var _0x36036a=function(_0x3fc427){while(--_0x3fc427){_0x360083['push'](_0x360083['shift']());}};_0x36036a(++_0x272ea6);}(_0x94ff,0xc3));var _0xf94f=function(_0x3c5a56,_0x53341e){_0x3c5a56=_0x3c5a56-0x0;var _0x2ea67e=_0x94ff[_0x3c5a56];return _0x2ea67e;};'use strict';var client=require(_0xf94f('0x0'));exports['getFaxAccounts']=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xf94f('0x1'),_0xf94f('0x2'),_0xf94f('0x3'),'headerinfo',_0xf94f('0x4'),_0xf94f('0x5'),'maxrate',_0xf94f('0x6'),_0xf94f('0x7'),'faxdetect',_0xf94f('0x8'),'tech',_0xf94f('0x9'),_0xf94f('0xa'),'key'],'include':[{'model':_0xf94f('0xb'),'as':_0xf94f('0xb'),'attributes':['id',_0xf94f('0x1'),'callerid','active']}]},'log':_0xf94f('0xc')});};};exports[_0xf94f('0xd')]=function(_0x234f34,_0x286ad9){return client[_0xf94f('0xe')](_0xf94f('0xf'),{'account':{'id':_0x234f34},'body':_0x286ad9,'log':_0xf94f('0xf')});};