Built motion from commit b58257bb.|2.5.37
[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 _0xa064=['minrate','maxrate','gateway','faxdetect','tech','TrunkId','Trunk','callerid','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','name','headerinfo'];(function(_0x5aae52,_0x5f1549){var _0x48ce4b=function(_0x37621f){while(--_0x37621f){_0x5aae52['push'](_0x5aae52['shift']());}};_0x48ce4b(++_0x5f1549);}(_0xa064,0x192));var _0x4a06=function(_0x36bbbb,_0x3f6709){_0x36bbbb=_0x36bbbb-0x0;var _0x3ca0eb=_0xa064[_0x36bbbb];return _0x3ca0eb;};'use strict';var client=require(_0x4a06('0x0'));exports[_0x4a06('0x1')]=function(){return function(){return client[_0x4a06('0x2')](_0x4a06('0x3'),{'options':{'raw':![],'attributes':['id',_0x4a06('0x4'),'description','ecm',_0x4a06('0x5'),'localstationid',_0x4a06('0x6'),_0x4a06('0x7'),'modem',_0x4a06('0x8'),_0x4a06('0x9'),'t38timeout',_0x4a06('0xa'),_0x4a06('0xb'),'ListId','key'],'include':[{'model':_0x4a06('0xc'),'as':_0x4a06('0xc'),'attributes':['id',_0x4a06('0x4'),_0x4a06('0xd'),'active']}]},'log':_0x4a06('0xe')});};};exports[_0x4a06('0xf')]=function(_0x40bf75,_0x1bcc38){return client[_0x4a06('0x2')](_0x4a06('0x10'),{'account':{'id':_0x40bf75},'body':_0x1bcc38,'log':_0x4a06('0x10')});};