ccf7fde2daf411c3300709b0d4b03c3c4d2128b8
[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 _0x110e=['TrunkId','ListId','key','Trunk','callerid','getFaxAccount','notify','Request','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','ecm','headerinfo','gateway','t38timeout','tech'];(function(_0xc6be3a,_0x540e05){var _0x56a310=function(_0x50a144){while(--_0x50a144){_0xc6be3a['push'](_0xc6be3a['shift']());}};_0x56a310(++_0x540e05);}(_0x110e,0x68));var _0xe110=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x110e[_0x59ee6f];return _0x4c0979;};'use strict';var client=require(_0xe110('0x0'));exports[_0xe110('0x1')]=function(){return function(){return client['Request'](_0xe110('0x2'),{'options':{'raw':![],'attributes':['id',_0xe110('0x3'),_0xe110('0x4'),_0xe110('0x5'),_0xe110('0x6'),'localstationid','minrate','maxrate','modem',_0xe110('0x7'),'faxdetect',_0xe110('0x8'),_0xe110('0x9'),_0xe110('0xa'),_0xe110('0xb'),_0xe110('0xc')],'include':[{'model':_0xe110('0xd'),'as':_0xe110('0xd'),'attributes':['id',_0xe110('0x3'),_0xe110('0xe'),'active']}]},'log':_0xe110('0xf')});};};exports[_0xe110('0x10')]=function(_0x5ebe72,_0x7241b2){return client[_0xe110('0x11')](_0xe110('0x12'),{'account':{'id':_0x5ebe72},'body':_0x7241b2,'log':_0xe110('0x12')});};