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 _0xd6f9=['minrate','maxrate','modem','faxdetect','TrunkId','key','Trunk','callerid','Request','NotifyFaxAccount','../client','getFaxAccounts','name','description','ecm','headerinfo'];(function(_0x31ce09,_0x4d5390){var _0x386653=function(_0x9c6fdb){while(--_0x9c6fdb){_0x31ce09['push'](_0x31ce09['shift']());}};_0x386653(++_0x4d5390);}(_0xd6f9,0x1ca));var _0x9d6f=function(_0xfc406a,_0x4479e1){_0xfc406a=_0xfc406a-0x0;var _0x395473=_0xd6f9[_0xfc406a];return _0x395473;};'use strict';var client=require(_0x9d6f('0x0'));exports[_0x9d6f('0x1')]=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x9d6f('0x2'),_0x9d6f('0x3'),_0x9d6f('0x4'),_0x9d6f('0x5'),'localstationid',_0x9d6f('0x6'),_0x9d6f('0x7'),_0x9d6f('0x8'),'gateway',_0x9d6f('0x9'),'t38timeout','tech',_0x9d6f('0xa'),'ListId',_0x9d6f('0xb')],'include':[{'model':_0x9d6f('0xc'),'as':_0x9d6f('0xc'),'attributes':['id',_0x9d6f('0x2'),_0x9d6f('0xd'),'active']}]},'log':'getFaxAccount'});};};exports['notify']=function(_0x2aeef6,_0x331b12){return client[_0x9d6f('0xe')](_0x9d6f('0xf'),{'account':{'id':_0x2aeef6},'body':_0x331b12,'log':_0x9d6f('0xf')});};