Built motion from commit 953226e6.|2.6.32
[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 _0x639a=['ListId','key','Trunk','callerid','getFaxAccount','notify','Request','NotifyFaxAccount','../client','getFaxAccounts','name','description','headerinfo','localstationid','minrate','maxrate','gateway','t38timeout','tech','TrunkId'];(function(_0x2d91e0,_0x24831a){var _0x5651f1=function(_0x4248d8){while(--_0x4248d8){_0x2d91e0['push'](_0x2d91e0['shift']());}};_0x5651f1(++_0x24831a);}(_0x639a,0x1e8));var _0xa639=function(_0x2bb366,_0x367d73){_0x2bb366=_0x2bb366-0x0;var _0x43d384=_0x639a[_0x2bb366];return _0x43d384;};'use strict';var client=require(_0xa639('0x0'));exports[_0xa639('0x1')]=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xa639('0x2'),_0xa639('0x3'),'ecm',_0xa639('0x4'),_0xa639('0x5'),_0xa639('0x6'),_0xa639('0x7'),'modem',_0xa639('0x8'),'faxdetect',_0xa639('0x9'),_0xa639('0xa'),_0xa639('0xb'),_0xa639('0xc'),_0xa639('0xd')],'include':[{'model':'Trunk','as':_0xa639('0xe'),'attributes':['id',_0xa639('0x2'),_0xa639('0xf'),'active']}]},'log':_0xa639('0x10')});};};exports[_0xa639('0x11')]=function(_0x5a96fb,_0x34a5b1){return client[_0xa639('0x12')]('NotifyFaxAccount',{'account':{'id':_0x5a96fb},'body':_0x34a5b1,'log':_0xa639('0x13')});};