7be70715d26d90bf3d96a55c2a5ffc2502b18153
[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 _0x22b4=['getFaxAccounts','Request','GetFaxAccount','name','description','headerinfo','localstationid','maxrate','modem','gateway','faxdetect','t38timeout','tech','ListId','Trunk','callerid','active','getFaxAccount','NotifyFaxAccount','../client'];(function(_0x499938,_0x43a55f){var _0x57336d=function(_0x783fc5){while(--_0x783fc5){_0x499938['push'](_0x499938['shift']());}};_0x57336d(++_0x43a55f);}(_0x22b4,0x8b));var _0x422b=function(_0x46d0c9,_0x526bfa){_0x46d0c9=_0x46d0c9-0x0;var _0x174506=_0x22b4[_0x46d0c9];return _0x174506;};'use strict';var client=require(_0x422b('0x0'));exports[_0x422b('0x1')]=function(){return function(){return client[_0x422b('0x2')](_0x422b('0x3'),{'options':{'raw':![],'attributes':['id',_0x422b('0x4'),_0x422b('0x5'),'ecm',_0x422b('0x6'),_0x422b('0x7'),'minrate',_0x422b('0x8'),_0x422b('0x9'),_0x422b('0xa'),_0x422b('0xb'),_0x422b('0xc'),_0x422b('0xd'),'TrunkId',_0x422b('0xe'),'key'],'include':[{'model':_0x422b('0xf'),'as':_0x422b('0xf'),'attributes':['id',_0x422b('0x4'),_0x422b('0x10'),_0x422b('0x11')]}]},'log':_0x422b('0x12')});};};exports['notify']=function(_0x3bfc9a,_0x2a99b6){return client[_0x422b('0x2')](_0x422b('0x13'),{'account':{'id':_0x3bfc9a},'body':_0x2a99b6,'log':_0x422b('0x13')});};