6037185c40de8c83df9c7902f26f8107282e0138
[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 _0xda20=['description','headerinfo','localstationid','maxrate','modem','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','name','active','getFaxAccount','notify','NotifyFaxAccount','../client','Request'];(function(_0x337fcd,_0x46b16a){var _0x49e1ff=function(_0x3770e2){while(--_0x3770e2){_0x337fcd['push'](_0x337fcd['shift']());}};_0x49e1ff(++_0x46b16a);}(_0xda20,0x1d9));var _0x0da2=function(_0x308d5b,_0x2b7e79){_0x308d5b=_0x308d5b-0x0;var _0x583a54=_0xda20[_0x308d5b];return _0x583a54;};'use strict';var client=require(_0x0da2('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x0da2('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id','name',_0x0da2('0x2'),'ecm',_0x0da2('0x3'),_0x0da2('0x4'),'minrate',_0x0da2('0x5'),_0x0da2('0x6'),'gateway',_0x0da2('0x7'),_0x0da2('0x8'),_0x0da2('0x9'),_0x0da2('0xa'),_0x0da2('0xb'),_0x0da2('0xc')],'include':[{'model':_0x0da2('0xd'),'as':_0x0da2('0xd'),'attributes':['id',_0x0da2('0xe'),'callerid',_0x0da2('0xf')]}]},'log':_0x0da2('0x10')});};};exports[_0x0da2('0x11')]=function(_0x13fe84,_0x586247){return client['Request'](_0x0da2('0x12'),{'account':{'id':_0x13fe84},'body':_0x586247,'log':_0x0da2('0x12')});};