f5f0a7d6e35ff300f869dd4cd579ccbed38775e7
[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 _0x8a21=['tech','ListId','key','Trunk','callerid','active','getFaxAccount','notify','Request','NotifyFaxAccount','../client','GetFaxAccount','name','description','localstationid','minrate','maxrate','modem','gateway','faxdetect','t38timeout'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x8a21,0x1d8));var _0x18a2=function(_0x5b406e,_0xcd06bc){_0x5b406e=_0x5b406e-0x0;var _0xe7d242=_0x8a21[_0x5b406e];return _0xe7d242;};'use strict';var client=require(_0x18a2('0x0'));exports['getFaxAccounts']=function(){return function(){return client['Request'](_0x18a2('0x1'),{'options':{'raw':![],'attributes':['id',_0x18a2('0x2'),_0x18a2('0x3'),'ecm','headerinfo',_0x18a2('0x4'),_0x18a2('0x5'),_0x18a2('0x6'),_0x18a2('0x7'),_0x18a2('0x8'),_0x18a2('0x9'),_0x18a2('0xa'),_0x18a2('0xb'),'TrunkId',_0x18a2('0xc'),_0x18a2('0xd')],'include':[{'model':_0x18a2('0xe'),'as':'Trunk','attributes':['id',_0x18a2('0x2'),_0x18a2('0xf'),_0x18a2('0x10')]}]},'log':_0x18a2('0x11')});};};exports[_0x18a2('0x12')]=function(_0x54ce08,_0x44c60c){return client[_0x18a2('0x13')]('NotifyFaxAccount',{'account':{'id':_0x54ce08},'body':_0x44c60c,'log':_0x18a2('0x14')});};