edac3f49ac9a4b38a09a72476a63b885f3323f9e
[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 _0x5f51=['modem','gateway','faxdetect','t38timeout','tech','ListId','Trunk','callerid','getFaxAccount','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','headerinfo','localstationid','minrate','maxrate'];(function(_0x321cce,_0x22fc9d){var _0x44e679=function(_0x371e05){while(--_0x371e05){_0x321cce['push'](_0x321cce['shift']());}};_0x44e679(++_0x22fc9d);}(_0x5f51,0x9d));var _0x15f5=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x5f51[_0x501510];return _0x1e6ee5;};'use strict';var client=require(_0x15f5('0x0'));exports[_0x15f5('0x1')]=function(){return function(){return client[_0x15f5('0x2')](_0x15f5('0x3'),{'options':{'raw':![],'attributes':['id',_0x15f5('0x4'),_0x15f5('0x5'),_0x15f5('0x6'),_0x15f5('0x7'),_0x15f5('0x8'),_0x15f5('0x9'),_0x15f5('0xa'),_0x15f5('0xb'),_0x15f5('0xc'),_0x15f5('0xd'),_0x15f5('0xe'),_0x15f5('0xf'),'TrunkId',_0x15f5('0x10'),'key'],'include':[{'model':_0x15f5('0x11'),'as':_0x15f5('0x11'),'attributes':['id',_0x15f5('0x4'),_0x15f5('0x12'),'active']}]},'log':_0x15f5('0x13')});};};exports['notify']=function(_0x135faa,_0x387f29){return client[_0x15f5('0x2')](_0x15f5('0x14'),{'account':{'id':_0x135faa},'body':_0x387f29,'log':'NotifyFaxAccount'});};