d5afe47343643b928c6b4ac9ab40f0e0fe63525e
[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 _0xb511=['description','headerinfo','localstationid','minrate','modem','gateway','t38timeout','tech','ListId','key','Trunk','callerid','active','getFaxAccount','NotifyFaxAccount','../client','getFaxAccounts','Request','name'];(function(_0xc49a43,_0x41ffc6){var _0xdd739f=function(_0x430d56){while(--_0x430d56){_0xc49a43['push'](_0xc49a43['shift']());}};_0xdd739f(++_0x41ffc6);}(_0xb511,0x165));var _0x1b51=function(_0x14408a,_0xc8aab8){_0x14408a=_0x14408a-0x0;var _0x244f51=_0xb511[_0x14408a];return _0x244f51;};'use strict';var client=require(_0x1b51('0x0'));exports[_0x1b51('0x1')]=function(){return function(){return client[_0x1b51('0x2')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x1b51('0x3'),_0x1b51('0x4'),'ecm',_0x1b51('0x5'),_0x1b51('0x6'),_0x1b51('0x7'),'maxrate',_0x1b51('0x8'),_0x1b51('0x9'),'faxdetect',_0x1b51('0xa'),_0x1b51('0xb'),'TrunkId',_0x1b51('0xc'),_0x1b51('0xd')],'include':[{'model':_0x1b51('0xe'),'as':_0x1b51('0xe'),'attributes':['id',_0x1b51('0x3'),_0x1b51('0xf'),_0x1b51('0x10')]}]},'log':_0x1b51('0x11')});};};exports['notify']=function(_0x337839,_0x3113c9){return client[_0x1b51('0x2')](_0x1b51('0x12'),{'account':{'id':_0x337839},'body':_0x3113c9,'log':_0x1b51('0x12')});};