3f26b86bb5def1cabf2282800766e11e177a38b8
[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 _0x69d4=['GetFaxAccount','name','description','headerinfo','minrate','maxrate','modem','gateway','faxdetect','t38timeout','TrunkId','key','Trunk','getFaxAccount','notify','Request','NotifyFaxAccount','../client','getFaxAccounts'];(function(_0x2e5a9a,_0x2b809c){var _0x198d5b=function(_0x5b1795){while(--_0x5b1795){_0x2e5a9a['push'](_0x2e5a9a['shift']());}};_0x198d5b(++_0x2b809c);}(_0x69d4,0x83));var _0x469d=function(_0x817d9b,_0x3c37e3){_0x817d9b=_0x817d9b-0x0;var _0x2752e1=_0x69d4[_0x817d9b];return _0x2752e1;};'use strict';var client=require(_0x469d('0x0'));exports[_0x469d('0x1')]=function(){return function(){return client['Request'](_0x469d('0x2'),{'options':{'raw':![],'attributes':['id',_0x469d('0x3'),_0x469d('0x4'),'ecm',_0x469d('0x5'),'localstationid',_0x469d('0x6'),_0x469d('0x7'),_0x469d('0x8'),_0x469d('0x9'),_0x469d('0xa'),_0x469d('0xb'),'tech',_0x469d('0xc'),'ListId',_0x469d('0xd')],'include':[{'model':_0x469d('0xe'),'as':_0x469d('0xe'),'attributes':['id','name','callerid','active']}]},'log':_0x469d('0xf')});};};exports[_0x469d('0x10')]=function(_0x5ca9c6,_0xb3a199){return client[_0x469d('0x11')](_0x469d('0x12'),{'account':{'id':_0x5ca9c6},'body':_0xb3a199,'log':'NotifyFaxAccount'});};