Built motion from commit 85328c08.|2.5.50
[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 _0x9148=['name','description','ecm','headerinfo','localstationid','minrate','maxrate','gateway','t38timeout','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','notify','../client','getFaxAccounts','Request','GetFaxAccount'];(function(_0x16f8f1,_0x179343){var _0x5d2f45=function(_0x66c090){while(--_0x66c090){_0x16f8f1['push'](_0x16f8f1['shift']());}};_0x5d2f45(++_0x179343);}(_0x9148,0x10d));var _0x8914=function(_0x177787,_0x4cbabd){_0x177787=_0x177787-0x0;var _0x3bb926=_0x9148[_0x177787];return _0x3bb926;};'use strict';var client=require(_0x8914('0x0'));exports[_0x8914('0x1')]=function(){return function(){return client[_0x8914('0x2')](_0x8914('0x3'),{'options':{'raw':![],'attributes':['id',_0x8914('0x4'),_0x8914('0x5'),_0x8914('0x6'),_0x8914('0x7'),_0x8914('0x8'),_0x8914('0x9'),_0x8914('0xa'),'modem',_0x8914('0xb'),'faxdetect',_0x8914('0xc'),'tech',_0x8914('0xd'),_0x8914('0xe'),_0x8914('0xf')],'include':[{'model':_0x8914('0x10'),'as':'Trunk','attributes':['id',_0x8914('0x4'),_0x8914('0x11'),_0x8914('0x12')]}]},'log':_0x8914('0x13')});};};exports[_0x8914('0x14')]=function(_0x569386,_0xfb149e){return client[_0x8914('0x2')]('NotifyFaxAccount',{'account':{'id':_0x569386},'body':_0xfb149e,'log':'NotifyFaxAccount'});};