b1b8185d4b8688ee75232f05210715cab47c3c22
[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 _0xc04a=['ecm','localstationid','minrate','maxrate','modem','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','NotifyFaxAccount','../client','Request','name','description'];(function(_0x19730f,_0x4f2e5d){var _0x636320=function(_0x16ba08){while(--_0x16ba08){_0x19730f['push'](_0x19730f['shift']());}};_0x636320(++_0x4f2e5d);}(_0xc04a,0x12e));var _0xac04=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc04a[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xac04('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xac04('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xac04('0x2'),_0xac04('0x3'),_0xac04('0x4'),'headerinfo',_0xac04('0x5'),_0xac04('0x6'),_0xac04('0x7'),_0xac04('0x8'),'gateway','faxdetect','t38timeout','tech',_0xac04('0x9'),_0xac04('0xa'),_0xac04('0xb')],'include':[{'model':_0xac04('0xc'),'as':_0xac04('0xc'),'attributes':['id',_0xac04('0x2'),_0xac04('0xd'),_0xac04('0xe')]}]},'log':_0xac04('0xf')});};};exports['notify']=function(_0x2fc7f5,_0x4f4b4b){return client[_0xac04('0x1')](_0xac04('0x10'),{'account':{'id':_0x2fc7f5},'body':_0x4f4b4b,'log':_0xac04('0x10')});};