Built motion from commit a679711e.|2.6.15
[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 _0x9b0d=['minrate','modem','gateway','faxdetect','t38timeout','tech','TrunkId','ListId','Trunk','callerid','getFaxAccount','NotifyFaxAccount','getFaxAccounts','Request','GetFaxAccount','name','ecm','headerinfo','localstationid'];(function(_0x198c6a,_0x21fae2){var _0x4db2fa=function(_0x4c5bb0){while(--_0x4c5bb0){_0x198c6a['push'](_0x198c6a['shift']());}};_0x4db2fa(++_0x21fae2);}(_0x9b0d,0xb7));var _0xd9b0=function(_0x10f703,_0x4f7a3a){_0x10f703=_0x10f703-0x0;var _0x486585=_0x9b0d[_0x10f703];return _0x486585;};'use strict';var client=require('../client');exports[_0xd9b0('0x0')]=function(){return function(){return client[_0xd9b0('0x1')](_0xd9b0('0x2'),{'options':{'raw':![],'attributes':['id',_0xd9b0('0x3'),'description',_0xd9b0('0x4'),_0xd9b0('0x5'),_0xd9b0('0x6'),_0xd9b0('0x7'),'maxrate',_0xd9b0('0x8'),_0xd9b0('0x9'),_0xd9b0('0xa'),_0xd9b0('0xb'),_0xd9b0('0xc'),_0xd9b0('0xd'),_0xd9b0('0xe'),'key'],'include':[{'model':_0xd9b0('0xf'),'as':_0xd9b0('0xf'),'attributes':['id','name',_0xd9b0('0x10'),'active']}]},'log':_0xd9b0('0x11')});};};exports['notify']=function(_0x23c72a,_0x137af1){return client[_0xd9b0('0x1')](_0xd9b0('0x12'),{'account':{'id':_0x23c72a},'body':_0x137af1,'log':_0xd9b0('0x12')});};