1d6a747d9ee0e51d26dee7b9aa2fcba8d64e939b
[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 _0x6a0b=['minrate','maxrate','gateway','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','Request','NotifyFaxAccount','../client','GetFaxAccount','name','ecm','headerinfo','localstationid'];(function(_0x3a4131,_0x453c2d){var _0x2f4e8f=function(_0x32d812){while(--_0x32d812){_0x3a4131['push'](_0x3a4131['shift']());}};_0x2f4e8f(++_0x453c2d);}(_0x6a0b,0xf6));var _0xb6a0=function(_0x2e4e55,_0x1e33ed){_0x2e4e55=_0x2e4e55-0x0;var _0x189a16=_0x6a0b[_0x2e4e55];return _0x189a16;};'use strict';var client=require(_0xb6a0('0x0'));exports['getFaxAccounts']=function(){return function(){return client['Request'](_0xb6a0('0x1'),{'options':{'raw':![],'attributes':['id',_0xb6a0('0x2'),'description',_0xb6a0('0x3'),_0xb6a0('0x4'),_0xb6a0('0x5'),_0xb6a0('0x6'),_0xb6a0('0x7'),'modem',_0xb6a0('0x8'),_0xb6a0('0x9'),_0xb6a0('0xa'),_0xb6a0('0xb'),_0xb6a0('0xc'),_0xb6a0('0xd'),_0xb6a0('0xe')],'include':[{'model':_0xb6a0('0xf'),'as':_0xb6a0('0xf'),'attributes':['id','name','callerid','active']}]},'log':'getFaxAccount'});};};exports['notify']=function(_0x3d6d0e,_0x5e7ad8){return client[_0xb6a0('0x10')](_0xb6a0('0x11'),{'account':{'id':_0x3d6d0e},'body':_0x5e7ad8,'log':'NotifyFaxAccount'});};