d845696e04579f7402292bc342e5aa90d34cf954
[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 _0xf767=['getFaxAccount','notify','NotifyFaxAccount','Request','GetFaxAccount','name','description','maxrate','modem','t38timeout','tech','ListId','key','Trunk','callerid','active'];(function(_0x248b72,_0xee1b96){var _0x4f6596=function(_0x5a6fbb){while(--_0x5a6fbb){_0x248b72['push'](_0x248b72['shift']());}};_0x4f6596(++_0xee1b96);}(_0xf767,0x183));var _0x7f76=function(_0x39bc44,_0x1d4373){_0x39bc44=_0x39bc44-0x0;var _0x2916d8=_0xf767[_0x39bc44];return _0x2916d8;};'use strict';var client=require('../client');exports['getFaxAccounts']=function(){return function(){return client[_0x7f76('0x0')](_0x7f76('0x1'),{'options':{'raw':![],'attributes':['id',_0x7f76('0x2'),_0x7f76('0x3'),'ecm','headerinfo','localstationid','minrate',_0x7f76('0x4'),_0x7f76('0x5'),'gateway','faxdetect',_0x7f76('0x6'),_0x7f76('0x7'),'TrunkId',_0x7f76('0x8'),_0x7f76('0x9')],'include':[{'model':'Trunk','as':_0x7f76('0xa'),'attributes':['id',_0x7f76('0x2'),_0x7f76('0xb'),_0x7f76('0xc')]}]},'log':_0x7f76('0xd')});};};exports[_0x7f76('0xe')]=function(_0x1b9b2e,_0x2dfb71){return client[_0x7f76('0x0')]('NotifyFaxAccount',{'account':{'id':_0x1b9b2e},'body':_0x2dfb71,'log':_0x7f76('0xf')});};