cdaa8f0c43604ebdd3fcf83dd7dc3ea4084d54f1
[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 _0xfd7b=['tech','TrunkId','ListId','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','Request','name','description','ecm','localstationid','minrate','maxrate','gateway','faxdetect'];(function(_0x112093,_0x4ccd22){var _0x19d562=function(_0x4928c1){while(--_0x4928c1){_0x112093['push'](_0x112093['shift']());}};_0x19d562(++_0x4ccd22);}(_0xfd7b,0xd1));var _0xbfd7=function(_0x484c03,_0x13c1d2){_0x484c03=_0x484c03-0x0;var _0x294127=_0xfd7b[_0x484c03];return _0x294127;};'use strict';var client=require(_0xbfd7('0x0'));exports[_0xbfd7('0x1')]=function(){return function(){return client[_0xbfd7('0x2')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xbfd7('0x3'),_0xbfd7('0x4'),_0xbfd7('0x5'),'headerinfo',_0xbfd7('0x6'),_0xbfd7('0x7'),_0xbfd7('0x8'),'modem',_0xbfd7('0x9'),_0xbfd7('0xa'),'t38timeout',_0xbfd7('0xb'),_0xbfd7('0xc'),_0xbfd7('0xd'),'key'],'include':[{'model':_0xbfd7('0xe'),'as':'Trunk','attributes':['id','name',_0xbfd7('0xf'),_0xbfd7('0x10')]}]},'log':_0xbfd7('0x11')});};};exports[_0xbfd7('0x12')]=function(_0x57a56c,_0x2cba60){return client[_0xbfd7('0x2')](_0xbfd7('0x13'),{'account':{'id':_0x57a56c},'body':_0x2cba60,'log':'NotifyFaxAccount'});};