Built motion from commit 753c950e.|2.5.42
[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 _0x3149=['ListId','Trunk','active','getFaxAccount','NotifyFaxAccount','../client','Request','GetFaxAccount','name','description','headerinfo','localstationid','minrate','maxrate','modem','faxdetect','t38timeout','tech','TrunkId'];(function(_0xe7d655,_0x184955){var _0x3e4804=function(_0x5cebfb){while(--_0x5cebfb){_0xe7d655['push'](_0xe7d655['shift']());}};_0x3e4804(++_0x184955);}(_0x3149,0x181));var _0x9314=function(_0x29cafb,_0x167e4a){_0x29cafb=_0x29cafb-0x0;var _0x1748e5=_0x3149[_0x29cafb];return _0x1748e5;};'use strict';var client=require(_0x9314('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x9314('0x1')](_0x9314('0x2'),{'options':{'raw':![],'attributes':['id',_0x9314('0x3'),_0x9314('0x4'),'ecm',_0x9314('0x5'),_0x9314('0x6'),_0x9314('0x7'),_0x9314('0x8'),_0x9314('0x9'),'gateway',_0x9314('0xa'),_0x9314('0xb'),_0x9314('0xc'),_0x9314('0xd'),_0x9314('0xe'),'key'],'include':[{'model':_0x9314('0xf'),'as':'Trunk','attributes':['id',_0x9314('0x3'),'callerid',_0x9314('0x10')]}]},'log':_0x9314('0x11')});};};exports['notify']=function(_0x3ef023,_0x5b3fdd){return client[_0x9314('0x1')](_0x9314('0x12'),{'account':{'id':_0x3ef023},'body':_0x5b3fdd,'log':_0x9314('0x12')});};