8ec1957998a0b76edd71bb0ff543605d8b01c5e3
[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 _0x964b=['tech','TrunkId','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','localstationid','maxrate','modem','gateway','faxdetect','t38timeout'];(function(_0x55d2ae,_0x231cf1){var _0x40dae1=function(_0x3dd769){while(--_0x3dd769){_0x55d2ae['push'](_0x55d2ae['shift']());}};_0x40dae1(++_0x231cf1);}(_0x964b,0x112));var _0xb964=function(_0x4da002,_0x280a5c){_0x4da002=_0x4da002-0x0;var _0x189b25=_0x964b[_0x4da002];return _0x189b25;};'use strict';var client=require(_0xb964('0x0'));exports[_0xb964('0x1')]=function(){return function(){return client['Request'](_0xb964('0x2'),{'options':{'raw':![],'attributes':['id',_0xb964('0x3'),_0xb964('0x4'),'ecm','headerinfo',_0xb964('0x5'),'minrate',_0xb964('0x6'),_0xb964('0x7'),_0xb964('0x8'),_0xb964('0x9'),_0xb964('0xa'),_0xb964('0xb'),_0xb964('0xc'),'ListId','key'],'include':[{'model':_0xb964('0xd'),'as':'Trunk','attributes':['id','name',_0xb964('0xe'),_0xb964('0xf')]}]},'log':_0xb964('0x10')});};};exports[_0xb964('0x11')]=function(_0x38bae5,_0x1c3339){return client['Request'](_0xb964('0x12'),{'account':{'id':_0x38bae5},'body':_0x1c3339,'log':_0xb964('0x12')});};