72fe77d854b8b8d838232b53c8a3fe4ea5cf81c2
[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 _0xb4f4=['ListId','key','Trunk','active','getFaxAccount','notify','Request','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','ecm','localstationid','minrate','maxrate','modem','gateway','faxdetect','t38timeout'];(function(_0x593b5d,_0x2e9d34){var _0x37a171=function(_0x2455bc){while(--_0x2455bc){_0x593b5d['push'](_0x593b5d['shift']());}};_0x37a171(++_0x2e9d34);}(_0xb4f4,0xda));var _0x4b4f=function(_0x576170,_0x1712ae){_0x576170=_0x576170-0x0;var _0x397c70=_0xb4f4[_0x576170];return _0x397c70;};'use strict';var client=require(_0x4b4f('0x0'));exports[_0x4b4f('0x1')]=function(){return function(){return client['Request'](_0x4b4f('0x2'),{'options':{'raw':![],'attributes':['id',_0x4b4f('0x3'),_0x4b4f('0x4'),_0x4b4f('0x5'),'headerinfo',_0x4b4f('0x6'),_0x4b4f('0x7'),_0x4b4f('0x8'),_0x4b4f('0x9'),_0x4b4f('0xa'),_0x4b4f('0xb'),_0x4b4f('0xc'),'tech','TrunkId',_0x4b4f('0xd'),_0x4b4f('0xe')],'include':[{'model':_0x4b4f('0xf'),'as':_0x4b4f('0xf'),'attributes':['id',_0x4b4f('0x3'),'callerid',_0x4b4f('0x10')]}]},'log':_0x4b4f('0x11')});};};exports[_0x4b4f('0x12')]=function(_0x5f0f0b,_0x4a65db){return client[_0x4b4f('0x13')]('NotifyFaxAccount',{'account':{'id':_0x5f0f0b},'body':_0x4a65db,'log':_0x4b4f('0x14')});};