b556b6952cd19fab2eb5eae17ba05c91cd6567e7
[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 _0x3133=['GetFaxAccount','name','description','ecm','headerinfo','localstationid','maxrate','gateway','faxdetect','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','Request'];(function(_0x1058ec,_0x486f99){var _0x3b5711=function(_0x4c2295){while(--_0x4c2295){_0x1058ec['push'](_0x1058ec['shift']());}};_0x3b5711(++_0x486f99);}(_0x3133,0x1cb));var _0x3313=function(_0x1a346b,_0x47bfc6){_0x1a346b=_0x1a346b-0x0;var _0x47771c=_0x3133[_0x1a346b];return _0x47771c;};'use strict';var client=require(_0x3313('0x0'));exports[_0x3313('0x1')]=function(){return function(){return client[_0x3313('0x2')](_0x3313('0x3'),{'options':{'raw':![],'attributes':['id',_0x3313('0x4'),_0x3313('0x5'),_0x3313('0x6'),_0x3313('0x7'),_0x3313('0x8'),'minrate',_0x3313('0x9'),'modem',_0x3313('0xa'),_0x3313('0xb'),'t38timeout','tech',_0x3313('0xc'),_0x3313('0xd'),_0x3313('0xe')],'include':[{'model':_0x3313('0xf'),'as':_0x3313('0xf'),'attributes':['id',_0x3313('0x4'),_0x3313('0x10'),_0x3313('0x11')]}]},'log':_0x3313('0x12')});};};exports[_0x3313('0x13')]=function(_0x2e28bb,_0xae9279){return client[_0x3313('0x2')]('NotifyFaxAccount',{'account':{'id':_0x2e28bb},'body':_0xae9279,'log':_0x3313('0x14')});};