Built motion from commit 9d0783e6.|2.6.13
[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 _0xcabe=['NotifyFaxAccount','../client','Request','GetFaxAccount','description','ecm','localstationid','minrate','maxrate','gateway','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','active','getFaxAccount'];(function(_0x49a1b2,_0x2bc6b6){var _0x160321=function(_0x1c5096){while(--_0x1c5096){_0x49a1b2['push'](_0x49a1b2['shift']());}};_0x160321(++_0x2bc6b6);}(_0xcabe,0x1ef));var _0xecab=function(_0x1d97e0,_0x415fe6){_0x1d97e0=_0x1d97e0-0x0;var _0x1286d0=_0xcabe[_0x1d97e0];return _0x1286d0;};'use strict';var client=require(_0xecab('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xecab('0x1')](_0xecab('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xecab('0x3'),_0xecab('0x4'),'headerinfo',_0xecab('0x5'),_0xecab('0x6'),_0xecab('0x7'),'modem',_0xecab('0x8'),_0xecab('0x9'),_0xecab('0xa'),_0xecab('0xb'),_0xecab('0xc'),_0xecab('0xd'),_0xecab('0xe')],'include':[{'model':_0xecab('0xf'),'as':_0xecab('0xf'),'attributes':['id','name','callerid',_0xecab('0x10')]}]},'log':_0xecab('0x11')});};};exports['notify']=function(_0x445617,_0x3e9db8){return client[_0xecab('0x1')](_0xecab('0x12'),{'account':{'id':_0x445617},'body':_0x3e9db8,'log':_0xecab('0x12')});};