9db7ffb0a9b40b2ad06f0a3e7129402b4e59156e
[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 _0x9434=['ecm','headerinfo','localstationid','minrate','maxrate','modem','gateway','faxdetect','TrunkId','ListId','key','Trunk','callerid','getFaxAccount','notify','NotifyFaxAccount','../client','Request','name','description'];(function(_0x3b8139,_0x459b80){var _0x5143a4=function(_0x452ffe){while(--_0x452ffe){_0x3b8139['push'](_0x3b8139['shift']());}};_0x5143a4(++_0x459b80);}(_0x9434,0x74));var _0x4943=function(_0x59535d,_0xc7844e){_0x59535d=_0x59535d-0x0;var _0x4c2038=_0x9434[_0x59535d];return _0x4c2038;};'use strict';var client=require(_0x4943('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x4943('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x4943('0x2'),_0x4943('0x3'),_0x4943('0x4'),_0x4943('0x5'),_0x4943('0x6'),_0x4943('0x7'),_0x4943('0x8'),_0x4943('0x9'),_0x4943('0xa'),_0x4943('0xb'),'t38timeout','tech',_0x4943('0xc'),_0x4943('0xd'),_0x4943('0xe')],'include':[{'model':_0x4943('0xf'),'as':_0x4943('0xf'),'attributes':['id',_0x4943('0x2'),_0x4943('0x10'),'active']}]},'log':_0x4943('0x11')});};};exports[_0x4943('0x12')]=function(_0x1f3d6f,_0x4618d4){return client['Request'](_0x4943('0x13'),{'account':{'id':_0x1f3d6f},'body':_0x4618d4,'log':_0x4943('0x13')});};