Built motion from commit (unavailable).|2.5.9
[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 _0x720c=['callerid','getFaxAccount','notify','NotifyFaxAccount','../client','Request','GetFaxAccount','name','description','headerinfo','localstationid','minrate','maxrate','modem','gateway','faxdetect','tech','TrunkId','ListId','key','Trunk'];(function(_0x507056,_0xe16b72){var _0x4eaecc=function(_0x440b91){while(--_0x440b91){_0x507056['push'](_0x507056['shift']());}};_0x4eaecc(++_0xe16b72);}(_0x720c,0x154));var _0xc720=function(_0x2609c1,_0x595070){_0x2609c1=_0x2609c1-0x0;var _0x21c34a=_0x720c[_0x2609c1];return _0x21c34a;};'use strict';var client=require(_0xc720('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xc720('0x1')](_0xc720('0x2'),{'options':{'raw':![],'attributes':['id',_0xc720('0x3'),_0xc720('0x4'),'ecm',_0xc720('0x5'),_0xc720('0x6'),_0xc720('0x7'),_0xc720('0x8'),_0xc720('0x9'),_0xc720('0xa'),_0xc720('0xb'),'t38timeout',_0xc720('0xc'),_0xc720('0xd'),_0xc720('0xe'),_0xc720('0xf')],'include':[{'model':_0xc720('0x10'),'as':'Trunk','attributes':['id','name',_0xc720('0x11'),'active']}]},'log':_0xc720('0x12')});};};exports[_0xc720('0x13')]=function(_0x567713,_0x3c06aa){return client[_0xc720('0x1')](_0xc720('0x14'),{'account':{'id':_0x567713},'body':_0x3c06aa,'log':_0xc720('0x14')});};