36a2b58e5d3dc7766de7a965522c5716721324f3
[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 _0x014c=['NotifyFaxAccount','getFaxAccounts','GetFaxAccount','name','description','localstationid','minrate','maxrate','modem','gateway','t38timeout','tech','ListId','Trunk','active','getFaxAccount','notify','Request'];(function(_0x235d99,_0x2ed287){var _0x177bca=function(_0x498201){while(--_0x498201){_0x235d99['push'](_0x235d99['shift']());}};_0x177bca(++_0x2ed287);}(_0x014c,0x17b));var _0xc014=function(_0x1460f6,_0x59051a){_0x1460f6=_0x1460f6-0x0;var _0x46ce94=_0x014c[_0x1460f6];return _0x46ce94;};'use strict';var client=require('../client');exports[_0xc014('0x0')]=function(){return function(){return client['Request'](_0xc014('0x1'),{'options':{'raw':![],'attributes':['id',_0xc014('0x2'),_0xc014('0x3'),'ecm','headerinfo',_0xc014('0x4'),_0xc014('0x5'),_0xc014('0x6'),_0xc014('0x7'),_0xc014('0x8'),'faxdetect',_0xc014('0x9'),_0xc014('0xa'),'TrunkId',_0xc014('0xb'),'key'],'include':[{'model':_0xc014('0xc'),'as':_0xc014('0xc'),'attributes':['id',_0xc014('0x2'),'callerid',_0xc014('0xd')]}]},'log':_0xc014('0xe')});};};exports[_0xc014('0xf')]=function(_0x41bda0,_0x554c1d){return client[_0xc014('0x10')]('NotifyFaxAccount',{'account':{'id':_0x41bda0},'body':_0x554c1d,'log':_0xc014('0x11')});};