d9dd88e43855c7d8ed9fd3b0ccfa969af1354bc3
[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 _0xdacc=['Trunk','callerid','active','getFaxAccount','NotifyFaxAccount','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','headerinfo','minrate','maxrate','modem','gateway','faxdetect','t38timeout','tech','TrunkId','ListId','key'];(function(_0x361857,_0x1cdb1e){var _0x239b82=function(_0x3ff7fd){while(--_0x3ff7fd){_0x361857['push'](_0x361857['shift']());}};_0x239b82(++_0x1cdb1e);}(_0xdacc,0x14f));var _0xcdac=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xdacc[_0x2dafbe];return _0x58a45a;};'use strict';var client=require('../client');exports[_0xcdac('0x0')]=function(){return function(){return client[_0xcdac('0x1')](_0xcdac('0x2'),{'options':{'raw':![],'attributes':['id',_0xcdac('0x3'),_0xcdac('0x4'),_0xcdac('0x5'),_0xcdac('0x6'),'localstationid',_0xcdac('0x7'),_0xcdac('0x8'),_0xcdac('0x9'),_0xcdac('0xa'),_0xcdac('0xb'),_0xcdac('0xc'),_0xcdac('0xd'),_0xcdac('0xe'),_0xcdac('0xf'),_0xcdac('0x10')],'include':[{'model':_0xcdac('0x11'),'as':_0xcdac('0x11'),'attributes':['id',_0xcdac('0x3'),_0xcdac('0x12'),_0xcdac('0x13')]}]},'log':_0xcdac('0x14')});};};exports['notify']=function(_0x3c105b,_0x611799){return client['Request'](_0xcdac('0x15'),{'account':{'id':_0x3c105b},'body':_0x611799,'log':_0xcdac('0x15')});};