Built motion from commit 15aa0e42.|2.6.19
[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 _0xa880=['Request','GetFaxAccount','name','description','ecm','headerinfo','localstationid','minrate','maxrate','gateway','faxdetect','t38timeout','tech','ListId','key','Trunk','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts'];(function(_0x45161c,_0x5494fc){var _0x186581=function(_0x78fada){while(--_0x78fada){_0x45161c['push'](_0x45161c['shift']());}};_0x186581(++_0x5494fc);}(_0xa880,0x106));var _0x0a88=function(_0x4b366e,_0x479e1f){_0x4b366e=_0x4b366e-0x0;var _0x464dff=_0xa880[_0x4b366e];return _0x464dff;};'use strict';var client=require(_0x0a88('0x0'));exports[_0x0a88('0x1')]=function(){return function(){return client[_0x0a88('0x2')](_0x0a88('0x3'),{'options':{'raw':![],'attributes':['id',_0x0a88('0x4'),_0x0a88('0x5'),_0x0a88('0x6'),_0x0a88('0x7'),_0x0a88('0x8'),_0x0a88('0x9'),_0x0a88('0xa'),'modem',_0x0a88('0xb'),_0x0a88('0xc'),_0x0a88('0xd'),_0x0a88('0xe'),'TrunkId',_0x0a88('0xf'),_0x0a88('0x10')],'include':[{'model':_0x0a88('0x11'),'as':'Trunk','attributes':['id','name','callerid',_0x0a88('0x12')]}]},'log':_0x0a88('0x13')});};};exports[_0x0a88('0x14')]=function(_0x3f8349,_0x3201f6){return client[_0x0a88('0x2')](_0x0a88('0x15'),{'account':{'id':_0x3f8349},'body':_0x3201f6,'log':_0x0a88('0x15')});};