31e27f36a16690b7624dfb1d4c170df8eca602ab
[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 _0x89e5=['../client','getFaxAccounts','Request','GetFaxAccount','description','ecm','localstationid','modem','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','name','getFaxAccount','NotifyFaxAccount'];(function(_0x330081,_0x3556a7){var _0x20c2f1=function(_0xda4cde){while(--_0xda4cde){_0x330081['push'](_0x330081['shift']());}};_0x20c2f1(++_0x3556a7);}(_0x89e5,0xb4));var _0x589e=function(_0x395cf1,_0x2bac89){_0x395cf1=_0x395cf1-0x0;var _0x129d1d=_0x89e5[_0x395cf1];return _0x129d1d;};'use strict';var client=require(_0x589e('0x0'));exports[_0x589e('0x1')]=function(){return function(){return client[_0x589e('0x2')](_0x589e('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x589e('0x4'),_0x589e('0x5'),'headerinfo',_0x589e('0x6'),'minrate','maxrate',_0x589e('0x7'),'gateway',_0x589e('0x8'),_0x589e('0x9'),_0x589e('0xa'),_0x589e('0xb'),_0x589e('0xc'),_0x589e('0xd')],'include':[{'model':'Trunk','as':_0x589e('0xe'),'attributes':['id',_0x589e('0xf'),'callerid','active']}]},'log':_0x589e('0x10')});};};exports['notify']=function(_0x38b90c,_0x4cd863){return client[_0x589e('0x2')](_0x589e('0x11'),{'account':{'id':_0x38b90c},'body':_0x4cd863,'log':_0x589e('0x11')});};