906c9d49490a306f03f301440163d759893dd848
[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 _0x2ffe=['Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','getFaxAccounts','Request','GetFaxAccount','name','description','headerinfo','localstationid','modem','gateway','faxdetect','tech','TrunkId','ListId','key'];(function(_0x344a3f,_0x579a22){var _0x264712=function(_0x34c9f0){while(--_0x34c9f0){_0x344a3f['push'](_0x344a3f['shift']());}};_0x264712(++_0x579a22);}(_0x2ffe,0x6a));var _0xe2ff=function(_0x24529d,_0xca4cdd){_0x24529d=_0x24529d-0x0;var _0x1d02fe=_0x2ffe[_0x24529d];return _0x1d02fe;};'use strict';var client=require('../client');exports[_0xe2ff('0x0')]=function(){return function(){return client[_0xe2ff('0x1')](_0xe2ff('0x2'),{'options':{'raw':![],'attributes':['id',_0xe2ff('0x3'),_0xe2ff('0x4'),'ecm',_0xe2ff('0x5'),_0xe2ff('0x6'),'minrate','maxrate',_0xe2ff('0x7'),_0xe2ff('0x8'),_0xe2ff('0x9'),'t38timeout',_0xe2ff('0xa'),_0xe2ff('0xb'),_0xe2ff('0xc'),_0xe2ff('0xd')],'include':[{'model':_0xe2ff('0xe'),'as':_0xe2ff('0xe'),'attributes':['id',_0xe2ff('0x3'),_0xe2ff('0xf'),_0xe2ff('0x10')]}]},'log':_0xe2ff('0x11')});};};exports[_0xe2ff('0x12')]=function(_0x2ac0fb,_0x242ed1){return client[_0xe2ff('0x1')](_0xe2ff('0x13'),{'account':{'id':_0x2ac0fb},'body':_0x242ed1,'log':_0xe2ff('0x13')});};