25f38ab4d2384a534ffa78c820e70ff6515aca9b
[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 _0xc648=['TrunkId','ListId','key','Trunk','callerid','active','notify','NotifyFaxAccount','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','headerinfo','modem','gateway','faxdetect','t38timeout'];(function(_0x5a9c0c,_0x4ec485){var _0x53c77d=function(_0x1cf384){while(--_0x1cf384){_0x5a9c0c['push'](_0x5a9c0c['shift']());}};_0x53c77d(++_0x4ec485);}(_0xc648,0x171));var _0x8c64=function(_0x3f3c28,_0x4a586d){_0x3f3c28=_0x3f3c28-0x0;var _0x3a3977=_0xc648[_0x3f3c28];return _0x3a3977;};'use strict';var client=require('../client');exports[_0x8c64('0x0')]=function(){return function(){return client[_0x8c64('0x1')](_0x8c64('0x2'),{'options':{'raw':![],'attributes':['id',_0x8c64('0x3'),_0x8c64('0x4'),_0x8c64('0x5'),_0x8c64('0x6'),'localstationid','minrate','maxrate',_0x8c64('0x7'),_0x8c64('0x8'),_0x8c64('0x9'),_0x8c64('0xa'),'tech',_0x8c64('0xb'),_0x8c64('0xc'),_0x8c64('0xd')],'include':[{'model':_0x8c64('0xe'),'as':_0x8c64('0xe'),'attributes':['id','name',_0x8c64('0xf'),_0x8c64('0x10')]}]},'log':'getFaxAccount'});};};exports[_0x8c64('0x11')]=function(_0x21905a,_0x1935d8){return client[_0x8c64('0x1')](_0x8c64('0x12'),{'account':{'id':_0x21905a},'body':_0x1935d8,'log':_0x8c64('0x12')});};