Built motion from commit bab6f49e.|2.6.17
[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 _0xf65d=['ListId','key','Trunk','active','notify','NotifyFaxAccount','../client','Request','GetFaxAccount','name','description','ecm','headerinfo','modem','faxdetect','t38timeout','TrunkId'];(function(_0x618414,_0x1a7a60){var _0x21c19a=function(_0x507b17){while(--_0x507b17){_0x618414['push'](_0x618414['shift']());}};_0x21c19a(++_0x1a7a60);}(_0xf65d,0x9f));var _0xdf65=function(_0x47e70a,_0x1c3714){_0x47e70a=_0x47e70a-0x0;var _0x3a9900=_0xf65d[_0x47e70a];return _0x3a9900;};'use strict';var client=require(_0xdf65('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xdf65('0x1')](_0xdf65('0x2'),{'options':{'raw':![],'attributes':['id',_0xdf65('0x3'),_0xdf65('0x4'),_0xdf65('0x5'),_0xdf65('0x6'),'localstationid','minrate','maxrate',_0xdf65('0x7'),'gateway',_0xdf65('0x8'),_0xdf65('0x9'),'tech',_0xdf65('0xa'),_0xdf65('0xb'),_0xdf65('0xc')],'include':[{'model':_0xdf65('0xd'),'as':_0xdf65('0xd'),'attributes':['id',_0xdf65('0x3'),'callerid',_0xdf65('0xe')]}]},'log':'getFaxAccount'});};};exports[_0xdf65('0xf')]=function(_0xd1813e,_0x23f3ba){return client['Request']('NotifyFaxAccount',{'account':{'id':_0xd1813e},'body':_0x23f3ba,'log':_0xdf65('0x10')});};