bbb7137aab6da3bd8cbeaaea81068a5aa748e749
[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 _0x6db4=['TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','localstationid','minrate','maxrate','modem','gateway','faxdetect','t38timeout'];(function(_0x3da832,_0x2133f1){var _0xe602f2=function(_0xb7b2f){while(--_0xb7b2f){_0x3da832['push'](_0x3da832['shift']());}};_0xe602f2(++_0x2133f1);}(_0x6db4,0x111));var _0x46db=function(_0x496da0,_0x219451){_0x496da0=_0x496da0-0x0;var _0x12f7f2=_0x6db4[_0x496da0];return _0x12f7f2;};'use strict';var client=require('../client');exports[_0x46db('0x0')]=function(){return function(){return client[_0x46db('0x1')](_0x46db('0x2'),{'options':{'raw':![],'attributes':['id',_0x46db('0x3'),_0x46db('0x4'),_0x46db('0x5'),'headerinfo',_0x46db('0x6'),_0x46db('0x7'),_0x46db('0x8'),_0x46db('0x9'),_0x46db('0xa'),_0x46db('0xb'),_0x46db('0xc'),'tech',_0x46db('0xd'),_0x46db('0xe'),_0x46db('0xf')],'include':[{'model':_0x46db('0x10'),'as':_0x46db('0x10'),'attributes':['id',_0x46db('0x3'),_0x46db('0x11'),_0x46db('0x12')]}]},'log':_0x46db('0x13')});};};exports[_0x46db('0x14')]=function(_0x10c294,_0xa5cc57){return client['Request'](_0x46db('0x15'),{'account':{'id':_0x10c294},'body':_0xa5cc57,'log':_0x46db('0x15')});};