bd95173ab2de13d65b78e5d241fddcbe66a1300d
[motion2.git] / server / api / faxMessage / index.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 _0xf364=['show','/:id/download','download','post','tracked','fax','faxmessage:create','create','update','put','accept','/:id/reject','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxMessage.controller','get','isAuthenticated','index','describe'];(function(_0x41497f,_0x581628){var _0x5c4f88=function(_0x1e97ab){while(--_0x1e97ab){_0x41497f['push'](_0x41497f['shift']());}};_0x5c4f88(++_0x581628);}(_0xf364,0x194));var _0x4f36=function(_0x4fc9e6,_0xc51915){_0x4fc9e6=_0x4fc9e6-0x0;var _0x551d28=_0xf364[_0x4fc9e6];return _0x551d28;};'use strict';var multer=require(_0x4f36('0x0'));var util=require('util');var path=require(_0x4f36('0x1'));var timeout=require('connect-timeout');var express=require(_0x4f36('0x2'));var router=express[_0x4f36('0x3')]();var auth=require(_0x4f36('0x4'));var interaction=require(_0x4f36('0x5'));var config=require(_0x4f36('0x6'));var controller=require(_0x4f36('0x7'));router[_0x4f36('0x8')]('/',auth[_0x4f36('0x9')](),controller[_0x4f36('0xa')]);router[_0x4f36('0x8')]('/describe',auth[_0x4f36('0x9')](),controller[_0x4f36('0xb')]);router[_0x4f36('0x8')]('/:id',auth[_0x4f36('0x9')](),controller[_0x4f36('0xc')]);router[_0x4f36('0x8')](_0x4f36('0xd'),auth[_0x4f36('0x9')](),controller[_0x4f36('0xe')]);router[_0x4f36('0xf')]('/',auth[_0x4f36('0x9')](),interaction[_0x4f36('0x10')](_0x4f36('0x11'),_0x4f36('0x12')),controller[_0x4f36('0x13')]);router['put']('/:id',auth[_0x4f36('0x9')](),controller[_0x4f36('0x14')]);router[_0x4f36('0x15')]('/:id/accept',auth[_0x4f36('0x9')](),controller[_0x4f36('0x16')]);router[_0x4f36('0x15')](_0x4f36('0x17'),auth['isAuthenticated'](),controller['reject']);router['delete']('/:id',auth[_0x4f36('0x9')](),controller[_0x4f36('0x18')]);module[_0x4f36('0x19')]=router;