9b7b689a81fe0492d563b3b9c461146c1cd5c54d
[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 _0x1189=['minrate','maxrate','modem','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','name','callerid','active','getFaxAccount','notify','../client','getFaxAccounts','Request','GetFaxAccount','description','ecm','headerinfo','localstationid'];(function(_0x437620,_0x2b99c2){var _0x23ded0=function(_0x17f47c){while(--_0x17f47c){_0x437620['push'](_0x437620['shift']());}};_0x23ded0(++_0x2b99c2);}(_0x1189,0x17f));var _0x9118=function(_0x5504b6,_0x9df2b9){_0x5504b6=_0x5504b6-0x0;var _0x41a07e=_0x1189[_0x5504b6];return _0x41a07e;};'use strict';var client=require(_0x9118('0x0'));exports[_0x9118('0x1')]=function(){return function(){return client[_0x9118('0x2')](_0x9118('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x9118('0x4'),_0x9118('0x5'),_0x9118('0x6'),_0x9118('0x7'),_0x9118('0x8'),_0x9118('0x9'),_0x9118('0xa'),'gateway',_0x9118('0xb'),_0x9118('0xc'),_0x9118('0xd'),_0x9118('0xe'),_0x9118('0xf'),_0x9118('0x10')],'include':[{'model':'Trunk','as':_0x9118('0x11'),'attributes':['id',_0x9118('0x12'),_0x9118('0x13'),_0x9118('0x14')]}]},'log':_0x9118('0x15')});};};exports[_0x9118('0x16')]=function(_0x3a1c30,_0x4d69a3){return client[_0x9118('0x2')]('NotifyFaxAccount',{'account':{'id':_0x3a1c30},'body':_0x4d69a3,'log':'NotifyFaxAccount'});};