Built motion from commit (unavailable).|2.4.18
[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 _0x15ea=['TrunkId','ListId','key','Trunk','callerid','Request','NotifyFaxAccount','../client','getFaxAccounts','name','description','ecm','localstationid','maxrate','modem','faxdetect','t38timeout'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x15ea,0x6d));var _0xa15e=function(_0x3edcc8,_0x538524){_0x3edcc8=_0x3edcc8-0x0;var _0x45fe0e=_0x15ea[_0x3edcc8];return _0x45fe0e;};'use strict';var client=require(_0xa15e('0x0'));exports[_0xa15e('0x1')]=function(){return function(){return client['Request']('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xa15e('0x2'),_0xa15e('0x3'),_0xa15e('0x4'),'headerinfo',_0xa15e('0x5'),'minrate',_0xa15e('0x6'),_0xa15e('0x7'),'gateway',_0xa15e('0x8'),_0xa15e('0x9'),'tech',_0xa15e('0xa'),_0xa15e('0xb'),_0xa15e('0xc')],'include':[{'model':_0xa15e('0xd'),'as':_0xa15e('0xd'),'attributes':['id',_0xa15e('0x2'),_0xa15e('0xe'),'active']}]},'log':'getFaxAccount'});};};exports['notify']=function(_0x18fb84,_0x2255bd){return client[_0xa15e('0xf')](_0xa15e('0x10'),{'account':{'id':_0x18fb84},'body':_0x2255bd,'log':'NotifyFaxAccount'});};