Built motion from commit (unavailable).|2.5.25
[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 _0xe45d=['gateway','faxdetect','tech','TrunkId','Trunk','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','ecm','headerinfo','localstationid','minrate','maxrate'];(function(_0x117f4c,_0x36a9b1){var _0x2b24e9=function(_0x31761b){while(--_0x31761b){_0x117f4c['push'](_0x117f4c['shift']());}};_0x2b24e9(++_0x36a9b1);}(_0xe45d,0xed));var _0xde45=function(_0x3932a8,_0x3cf323){_0x3932a8=_0x3932a8-0x0;var _0x49f670=_0xe45d[_0x3932a8];return _0x49f670;};'use strict';var client=require(_0xde45('0x0'));exports[_0xde45('0x1')]=function(){return function(){return client['Request'](_0xde45('0x2'),{'options':{'raw':![],'attributes':['id',_0xde45('0x3'),_0xde45('0x4'),_0xde45('0x5'),_0xde45('0x6'),_0xde45('0x7'),_0xde45('0x8'),_0xde45('0x9'),'modem',_0xde45('0xa'),_0xde45('0xb'),'t38timeout',_0xde45('0xc'),_0xde45('0xd'),'ListId','key'],'include':[{'model':_0xde45('0xe'),'as':'Trunk','attributes':['id',_0xde45('0x3'),'callerid',_0xde45('0xf')]}]},'log':_0xde45('0x10')});};};exports[_0xde45('0x11')]=function(_0x4fbd7d,_0x1ab2e7){return client['Request'](_0xde45('0x12'),{'account':{'id':_0x4fbd7d},'body':_0x1ab2e7,'log':_0xde45('0x12')});};