Built motion from commit da24aabd.|2.6.20
[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 _0xdb28=['tech','TrunkId','ListId','key','Trunk','name','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','description','ecm','headerinfo','localstationid','minrate','modem','gateway'];(function(_0x218b81,_0x2207bd){var _0xe8cb2=function(_0x58f736){while(--_0x58f736){_0x218b81['push'](_0x218b81['shift']());}};_0xe8cb2(++_0x2207bd);}(_0xdb28,0x106));var _0x8db2=function(_0x53ef1b,_0xf1128b){_0x53ef1b=_0x53ef1b-0x0;var _0x36e7f5=_0xdb28[_0x53ef1b];return _0x36e7f5;};'use strict';var client=require(_0x8db2('0x0'));exports[_0x8db2('0x1')]=function(){return function(){return client[_0x8db2('0x2')](_0x8db2('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x8db2('0x4'),_0x8db2('0x5'),_0x8db2('0x6'),_0x8db2('0x7'),_0x8db2('0x8'),'maxrate',_0x8db2('0x9'),_0x8db2('0xa'),'faxdetect','t38timeout',_0x8db2('0xb'),_0x8db2('0xc'),_0x8db2('0xd'),_0x8db2('0xe')],'include':[{'model':_0x8db2('0xf'),'as':_0x8db2('0xf'),'attributes':['id',_0x8db2('0x10'),'callerid',_0x8db2('0x11')]}]},'log':_0x8db2('0x12')});};};exports[_0x8db2('0x13')]=function(_0x57015f,_0x1d9371){return client[_0x8db2('0x2')]('NotifyFaxAccount',{'account':{'id':_0x57015f},'body':_0x1d9371,'log':_0x8db2('0x14')});};