Built motion from commit (unavailable).|2.5.14
[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 _0x8145=['maxrate','modem','gateway','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','name','description','ecm','localstationid'];(function(_0x4d7a96,_0x5a651e){var _0x5e50b3=function(_0x13cfb4){while(--_0x13cfb4){_0x4d7a96['push'](_0x4d7a96['shift']());}};_0x5e50b3(++_0x5a651e);}(_0x8145,0xb8));var _0x5814=function(_0x2f8ab1,_0x423b23){_0x2f8ab1=_0x2f8ab1-0x0;var _0x4445c4=_0x8145[_0x2f8ab1];return _0x4445c4;};'use strict';var client=require(_0x5814('0x0'));exports[_0x5814('0x1')]=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x5814('0x2'),_0x5814('0x3'),_0x5814('0x4'),'headerinfo',_0x5814('0x5'),'minrate',_0x5814('0x6'),_0x5814('0x7'),_0x5814('0x8'),_0x5814('0x9'),_0x5814('0xa'),_0x5814('0xb'),_0x5814('0xc'),_0x5814('0xd'),_0x5814('0xe')],'include':[{'model':_0x5814('0xf'),'as':_0x5814('0xf'),'attributes':['id',_0x5814('0x2'),'callerid','active']}]},'log':_0x5814('0x10')});};};exports[_0x5814('0x11')]=function(_0x481227,_0x127f51){return client['Request'](_0x5814('0x12'),{'account':{'id':_0x481227},'body':_0x127f51,'log':'NotifyFaxAccount'});};