1b247e8d47f6d30d938f99358142fefdced77680
[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 _0xf1f9=['getFaxAccounts','Request','GetFaxAccount','name','ecm','headerinfo','localstationid','minrate','maxrate','modem','t38timeout','tech','TrunkId','ListId','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client'];(function(_0x5a2184,_0x448910){var _0x57524d=function(_0x4aa13a){while(--_0x4aa13a){_0x5a2184['push'](_0x5a2184['shift']());}};_0x57524d(++_0x448910);}(_0xf1f9,0x1cd));var _0x9f1f=function(_0x352251,_0x3c6faa){_0x352251=_0x352251-0x0;var _0x750087=_0xf1f9[_0x352251];return _0x750087;};'use strict';var client=require(_0x9f1f('0x0'));exports[_0x9f1f('0x1')]=function(){return function(){return client[_0x9f1f('0x2')](_0x9f1f('0x3'),{'options':{'raw':![],'attributes':['id',_0x9f1f('0x4'),'description',_0x9f1f('0x5'),_0x9f1f('0x6'),_0x9f1f('0x7'),_0x9f1f('0x8'),_0x9f1f('0x9'),_0x9f1f('0xa'),'gateway','faxdetect',_0x9f1f('0xb'),_0x9f1f('0xc'),_0x9f1f('0xd'),_0x9f1f('0xe'),'key'],'include':[{'model':_0x9f1f('0xf'),'as':_0x9f1f('0xf'),'attributes':['id',_0x9f1f('0x4'),_0x9f1f('0x10'),_0x9f1f('0x11')]}]},'log':_0x9f1f('0x12')});};};exports[_0x9f1f('0x13')]=function(_0x50db7b,_0x5888c6){return client[_0x9f1f('0x2')](_0x9f1f('0x14'),{'account':{'id':_0x50db7b},'body':_0x5888c6,'log':_0x9f1f('0x14')});};