Built motion from commit 775e2a94.|2.6.3
[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 _0xc04a=['ecm','localstationid','minrate','maxrate','modem','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','NotifyFaxAccount','../client','Request','name','description'];(function(_0x1f6448,_0x32e816){var _0x2abfe2=function(_0x59adfc){while(--_0x59adfc){_0x1f6448['push'](_0x1f6448['shift']());}};_0x2abfe2(++_0x32e816);}(_0xc04a,0x12e));var _0xac04=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc04a[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xac04('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xac04('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xac04('0x2'),_0xac04('0x3'),_0xac04('0x4'),'headerinfo',_0xac04('0x5'),_0xac04('0x6'),_0xac04('0x7'),_0xac04('0x8'),'gateway','faxdetect','t38timeout','tech',_0xac04('0x9'),_0xac04('0xa'),_0xac04('0xb')],'include':[{'model':_0xac04('0xc'),'as':_0xac04('0xc'),'attributes':['id',_0xac04('0x2'),_0xac04('0xd'),_0xac04('0xe')]}]},'log':_0xac04('0xf')});};};exports['notify']=function(_0x2fc7f5,_0x4f4b4b){return client[_0xac04('0x1')](_0xac04('0x10'),{'account':{'id':_0x2fc7f5},'body':_0x4f4b4b,'log':_0xac04('0x10')});};