Built motion from commit (unavailable).|2.5.28
[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 _0x8906=['Request','name','headerinfo','minrate','maxrate','modem','faxdetect','tech','TrunkId','key','Trunk','active','getFaxAccount','NotifyFaxAccount','getFaxAccounts'];(function(_0x1acc2d,_0x597696){var _0xabfa6d=function(_0x41e83c){while(--_0x41e83c){_0x1acc2d['push'](_0x1acc2d['shift']());}};_0xabfa6d(++_0x597696);}(_0x8906,0x149));var _0x6890=function(_0x4f6423,_0x2e311f){_0x4f6423=_0x4f6423-0x0;var _0xfe437=_0x8906[_0x4f6423];return _0xfe437;};'use strict';var client=require('../client');exports[_0x6890('0x0')]=function(){return function(){return client[_0x6890('0x1')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0x6890('0x2'),'description','ecm',_0x6890('0x3'),'localstationid',_0x6890('0x4'),_0x6890('0x5'),_0x6890('0x6'),'gateway',_0x6890('0x7'),'t38timeout',_0x6890('0x8'),_0x6890('0x9'),'ListId',_0x6890('0xa')],'include':[{'model':'Trunk','as':_0x6890('0xb'),'attributes':['id','name','callerid',_0x6890('0xc')]}]},'log':_0x6890('0xd')});};};exports['notify']=function(_0x23a8c7,_0x5ab683){return client[_0x6890('0x1')](_0x6890('0xe'),{'account':{'id':_0x23a8c7},'body':_0x5ab683,'log':_0x6890('0xe')});};