Built motion from commit 4ffc18b1.|2.6.31
[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 _0x7382=['NotifyFaxAccount','getFaxAccounts','headerinfo','localstationid','minrate','maxrate','modem','faxdetect','t38timeout','tech','ListId','key','Trunk','name','callerid','active','notify'];(function(_0x4e63f1,_0x34a2db){var _0xdbd910=function(_0x40261f){while(--_0x40261f){_0x4e63f1['push'](_0x4e63f1['shift']());}};_0xdbd910(++_0x34a2db);}(_0x7382,0x111));var _0x2738=function(_0x5c8f09,_0x17f4ee){_0x5c8f09=_0x5c8f09-0x0;var _0x486289=_0x7382[_0x5c8f09];return _0x486289;};'use strict';var client=require('../client');exports[_0x2738('0x0')]=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id','name','description','ecm',_0x2738('0x1'),_0x2738('0x2'),_0x2738('0x3'),_0x2738('0x4'),_0x2738('0x5'),'gateway',_0x2738('0x6'),_0x2738('0x7'),_0x2738('0x8'),'TrunkId',_0x2738('0x9'),_0x2738('0xa')],'include':[{'model':_0x2738('0xb'),'as':'Trunk','attributes':['id',_0x2738('0xc'),_0x2738('0xd'),_0x2738('0xe')]}]},'log':'getFaxAccount'});};};exports[_0x2738('0xf')]=function(_0x33d02a,_0x2eb3ab){return client['Request']('NotifyFaxAccount',{'account':{'id':_0x33d02a},'body':_0x2eb3ab,'log':_0x2738('0x10')});};