7e1992e2b1af72a04fe136a822e4f1731e4eb940
[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 _0x6ac2=['tech','TrunkId','ListId','key','callerid','active','getFaxAccount','NotifyFaxAccount','../client','Request','GetFaxAccount','name','description','ecm','headerinfo','minrate','modem','gateway','faxdetect','t38timeout'];(function(_0x5a6707,_0xdefaf3){var _0x5b58c5=function(_0xf7f131){while(--_0xf7f131){_0x5a6707['push'](_0x5a6707['shift']());}};_0x5b58c5(++_0xdefaf3);}(_0x6ac2,0x184));var _0x26ac=function(_0x29dce3,_0x126f7f){_0x29dce3=_0x29dce3-0x0;var _0xe0701=_0x6ac2[_0x29dce3];return _0xe0701;};'use strict';var client=require(_0x26ac('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x26ac('0x1')](_0x26ac('0x2'),{'options':{'raw':![],'attributes':['id',_0x26ac('0x3'),_0x26ac('0x4'),_0x26ac('0x5'),_0x26ac('0x6'),'localstationid',_0x26ac('0x7'),'maxrate',_0x26ac('0x8'),_0x26ac('0x9'),_0x26ac('0xa'),_0x26ac('0xb'),_0x26ac('0xc'),_0x26ac('0xd'),_0x26ac('0xe'),_0x26ac('0xf')],'include':[{'model':'Trunk','as':'Trunk','attributes':['id',_0x26ac('0x3'),_0x26ac('0x10'),_0x26ac('0x11')]}]},'log':_0x26ac('0x12')});};};exports['notify']=function(_0x11e8a1,_0x2507f9){return client[_0x26ac('0x1')](_0x26ac('0x13'),{'account':{'id':_0x11e8a1},'body':_0x2507f9,'log':'NotifyFaxAccount'});};