Built motion from commit 9d1906d1.|2.5.40
[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 _0xdec3=['Trunk','callerid','notify','NotifyFaxAccount','../client','Request','GetFaxAccount','name','ecm','headerinfo','localstationid','minrate','modem','gateway','faxdetect','t38timeout','tech','TrunkId','ListId'];(function(_0x2dd23f,_0x336ae1){var _0x41e309=function(_0x495831){while(--_0x495831){_0x2dd23f['push'](_0x2dd23f['shift']());}};_0x41e309(++_0x336ae1);}(_0xdec3,0x89));var _0x3dec=function(_0x4a86d8,_0x454ffc){_0x4a86d8=_0x4a86d8-0x0;var _0x27cc70=_0xdec3[_0x4a86d8];return _0x27cc70;};'use strict';var client=require(_0x3dec('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0x3dec('0x1')](_0x3dec('0x2'),{'options':{'raw':![],'attributes':['id',_0x3dec('0x3'),'description',_0x3dec('0x4'),_0x3dec('0x5'),_0x3dec('0x6'),_0x3dec('0x7'),'maxrate',_0x3dec('0x8'),_0x3dec('0x9'),_0x3dec('0xa'),_0x3dec('0xb'),_0x3dec('0xc'),_0x3dec('0xd'),_0x3dec('0xe'),'key'],'include':[{'model':_0x3dec('0xf'),'as':_0x3dec('0xf'),'attributes':['id','name',_0x3dec('0x10'),'active']}]},'log':'getFaxAccount'});};};exports[_0x3dec('0x11')]=function(_0x24f12c,_0x4d273f){return client[_0x3dec('0x1')](_0x3dec('0x12'),{'account':{'id':_0x24f12c},'body':_0x4d273f,'log':'NotifyFaxAccount'});};