Built motion from commit e0fa946e.|2.6.5
[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 _0xd945=['key','Trunk','callerid','active','notify','NotifyFaxAccount','../client','getFaxAccounts','Request','name','description','ecm','headerinfo','localstationid','maxrate','modem','gateway','faxdetect','t38timeout','TrunkId','ListId'];(function(_0x2080a3,_0x48acfa){var _0x8d7d17=function(_0x2dbc06){while(--_0x2dbc06){_0x2080a3['push'](_0x2080a3['shift']());}};_0x8d7d17(++_0x48acfa);}(_0xd945,0x84));var _0x5d94=function(_0x5ae036,_0x57f18e){_0x5ae036=_0x5ae036-0x0;var _0x3b5130=_0xd945[_0x5ae036];return _0x3b5130;};'use strict';var client=require(_0x5d94('0x0'));exports[_0x5d94('0x1')]=function(){return function(){return client[_0x5d94('0x2')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x5d94('0x3'),_0x5d94('0x4'),_0x5d94('0x5'),_0x5d94('0x6'),_0x5d94('0x7'),'minrate',_0x5d94('0x8'),_0x5d94('0x9'),_0x5d94('0xa'),_0x5d94('0xb'),_0x5d94('0xc'),'tech',_0x5d94('0xd'),_0x5d94('0xe'),_0x5d94('0xf')],'include':[{'model':'Trunk','as':_0x5d94('0x10'),'attributes':['id',_0x5d94('0x3'),_0x5d94('0x11'),_0x5d94('0x12')]}]},'log':'getFaxAccount'});};};exports[_0x5d94('0x13')]=function(_0x5ad646,_0x2257e1){return client[_0x5d94('0x2')](_0x5d94('0x14'),{'account':{'id':_0x5ad646},'body':_0x2257e1,'log':_0x5d94('0x14')});};