92ed9859c295bb5525bb128cf9cb9ca7cd0ce2e7
[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 _0x02ef=['description','headerinfo','localstationid','minrate','maxrate','modem','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','../client','Request','name'];(function(_0x29d915,_0x54a040){var _0x160f86=function(_0x237dfa){while(--_0x237dfa){_0x29d915['push'](_0x29d915['shift']());}};_0x160f86(++_0x54a040);}(_0x02ef,0x11a));var _0xf02e=function(_0x2fcc44,_0x5ce1bb){_0x2fcc44=_0x2fcc44-0x0;var _0x5c00de=_0x02ef[_0x2fcc44];return _0x5c00de;};'use strict';var client=require(_0xf02e('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xf02e('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xf02e('0x2'),_0xf02e('0x3'),'ecm',_0xf02e('0x4'),_0xf02e('0x5'),_0xf02e('0x6'),_0xf02e('0x7'),_0xf02e('0x8'),'gateway',_0xf02e('0x9'),_0xf02e('0xa'),_0xf02e('0xb'),_0xf02e('0xc'),_0xf02e('0xd'),_0xf02e('0xe')],'include':[{'model':_0xf02e('0xf'),'as':_0xf02e('0xf'),'attributes':['id',_0xf02e('0x2'),_0xf02e('0x10'),_0xf02e('0x11')]}]},'log':_0xf02e('0x12')});};};exports['notify']=function(_0x5bbce7,_0x1a8f56){return client[_0xf02e('0x1')]('NotifyFaxAccount',{'account':{'id':_0x5bbce7},'body':_0x1a8f56,'log':'NotifyFaxAccount'});};