deae2bc3483e3248bec280ac9a57b1fe7fa60fc3
[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 _0xe785=['tech','TrunkId','ListId','Trunk','active','getFaxAccount','Request','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','ecm','minrate','maxrate','modem','gateway'];(function(_0x4c049b,_0x7a4631){var _0x465ceb=function(_0x814ceb){while(--_0x814ceb){_0x4c049b['push'](_0x4c049b['shift']());}};_0x465ceb(++_0x7a4631);}(_0xe785,0x128));var _0x5e78=function(_0xd6c8f2,_0x26c786){_0xd6c8f2=_0xd6c8f2-0x0;var _0x36348a=_0xe785[_0xd6c8f2];return _0x36348a;};'use strict';var client=require(_0x5e78('0x0'));exports[_0x5e78('0x1')]=function(){return function(){return client['Request'](_0x5e78('0x2'),{'options':{'raw':![],'attributes':['id',_0x5e78('0x3'),_0x5e78('0x4'),_0x5e78('0x5'),'headerinfo','localstationid',_0x5e78('0x6'),_0x5e78('0x7'),_0x5e78('0x8'),_0x5e78('0x9'),'faxdetect','t38timeout',_0x5e78('0xa'),_0x5e78('0xb'),_0x5e78('0xc'),'key'],'include':[{'model':_0x5e78('0xd'),'as':'Trunk','attributes':['id',_0x5e78('0x3'),'callerid',_0x5e78('0xe')]}]},'log':_0x5e78('0xf')});};};exports['notify']=function(_0x171425,_0x21daa1){return client[_0x5e78('0x10')](_0x5e78('0x11'),{'account':{'id':_0x171425},'body':_0x21daa1,'log':_0x5e78('0x11')});};