c60b39d95b3f51f1cbded368ab33e1d1b2b3d6f0
[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 _0x6f93=['getFaxAccounts','Request','GetFaxAccount','ecm','minrate','maxrate','modem','gateway','tech','ListId','key','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client'];(function(_0x265bc8,_0x1a7772){var _0x3d191a=function(_0x49639a){while(--_0x49639a){_0x265bc8['push'](_0x265bc8['shift']());}};_0x3d191a(++_0x1a7772);}(_0x6f93,0xb3));var _0x36f9=function(_0x5f31a0,_0x266339){_0x5f31a0=_0x5f31a0-0x0;var _0x30b939=_0x6f93[_0x5f31a0];return _0x30b939;};'use strict';var client=require(_0x36f9('0x0'));exports[_0x36f9('0x1')]=function(){return function(){return client[_0x36f9('0x2')](_0x36f9('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0x36f9('0x4'),'headerinfo','localstationid',_0x36f9('0x5'),_0x36f9('0x6'),_0x36f9('0x7'),_0x36f9('0x8'),'faxdetect','t38timeout',_0x36f9('0x9'),'TrunkId',_0x36f9('0xa'),_0x36f9('0xb')],'include':[{'model':_0x36f9('0xc'),'as':'Trunk','attributes':['id','name',_0x36f9('0xd'),_0x36f9('0xe')]}]},'log':_0x36f9('0xf')});};};exports[_0x36f9('0x10')]=function(_0x3580ed,_0x48a02c){return client['Request']('NotifyFaxAccount',{'account':{'id':_0x3580ed},'body':_0x48a02c,'log':_0x36f9('0x11')});};