af104d2581dc082f8a3acfa08cacadd481d9c493
[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 _0x8fe0=['gateway','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','callerid','active','notify','NotifyFaxAccount','Request','description','ecm','headerinfo','minrate','maxrate','modem'];(function(_0x36de53,_0x4a0679){var _0x2b04cb=function(_0x76051d){while(--_0x76051d){_0x36de53['push'](_0x36de53['shift']());}};_0x2b04cb(++_0x4a0679);}(_0x8fe0,0xdd));var _0x08fe=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x8fe0[_0x14add3];return _0x4a174f;};'use strict';var client=require('../client');exports['getFaxAccounts']=function(){return function(){return client[_0x08fe('0x0')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id','name',_0x08fe('0x1'),_0x08fe('0x2'),_0x08fe('0x3'),'localstationid',_0x08fe('0x4'),_0x08fe('0x5'),_0x08fe('0x6'),_0x08fe('0x7'),_0x08fe('0x8'),_0x08fe('0x9'),_0x08fe('0xa'),_0x08fe('0xb'),_0x08fe('0xc'),_0x08fe('0xd')],'include':[{'model':_0x08fe('0xe'),'as':_0x08fe('0xe'),'attributes':['id','name',_0x08fe('0xf'),_0x08fe('0x10')]}]},'log':'getFaxAccount'});};};exports[_0x08fe('0x11')]=function(_0x468499,_0x4d053f){return client[_0x08fe('0x0')](_0x08fe('0x12'),{'account':{'id':_0x468499},'body':_0x4d053f,'log':_0x08fe('0x12')});};