Built motion from commit ffdca78c.|2.6.24
[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 _0xbbdd=['getFaxAccounts','GetFaxAccount','name','localstationid','modem','gateway','faxdetect','t38timeout','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','notify','Request'];(function(_0x228ae6,_0x1f4183){var _0x26d906=function(_0xae8b5d){while(--_0xae8b5d){_0x228ae6['push'](_0x228ae6['shift']());}};_0x26d906(++_0x1f4183);}(_0xbbdd,0x1ba));var _0xdbbd=function(_0x4e7d25,_0x58285f){_0x4e7d25=_0x4e7d25-0x0;var _0x526fe6=_0xbbdd[_0x4e7d25];return _0x526fe6;};'use strict';var client=require('../client');exports[_0xdbbd('0x0')]=function(){return function(){return client['Request'](_0xdbbd('0x1'),{'options':{'raw':![],'attributes':['id',_0xdbbd('0x2'),'description','ecm','headerinfo',_0xdbbd('0x3'),'minrate','maxrate',_0xdbbd('0x4'),_0xdbbd('0x5'),_0xdbbd('0x6'),_0xdbbd('0x7'),'tech',_0xdbbd('0x8'),_0xdbbd('0x9'),_0xdbbd('0xa')],'include':[{'model':_0xdbbd('0xb'),'as':_0xdbbd('0xb'),'attributes':['id',_0xdbbd('0x2'),_0xdbbd('0xc'),_0xdbbd('0xd')]}]},'log':_0xdbbd('0xe')});};};exports[_0xdbbd('0xf')]=function(_0x59c6af,_0x285fc2){return client[_0xdbbd('0x10')]('NotifyFaxAccount',{'account':{'id':_0x59c6af},'body':_0x285fc2,'log':'NotifyFaxAccount'});};