03c01e683ef0084bd8ec136d5451cd0a993731a2
[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 _0x87b1=['isAuthenticated','index','/describe','/:id','get','/:id/download','post','tracked','faxmessage:create','create','put','update','accept','reject','delete','exports','multer','path','connect-timeout','../../components/interaction/service','../../config/environment'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x87b1,0x160));var _0x187b=function(_0xa7783d,_0x425286){_0xa7783d=_0xa7783d-0x0;var _0x5df8fd=_0x87b1[_0xa7783d];return _0x5df8fd;};'use strict';var multer=require(_0x187b('0x0'));var util=require('util');var path=require(_0x187b('0x1'));var timeout=require(_0x187b('0x2'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x187b('0x3'));var config=require(_0x187b('0x4'));var controller=require('./faxMessage.controller');router['get']('/',auth[_0x187b('0x5')](),controller[_0x187b('0x6')]);router['get'](_0x187b('0x7'),auth[_0x187b('0x5')](),controller['describe']);router['get'](_0x187b('0x8'),auth[_0x187b('0x5')](),controller['show']);router[_0x187b('0x9')](_0x187b('0xa'),auth[_0x187b('0x5')](),controller['download']);router[_0x187b('0xb')]('/',auth[_0x187b('0x5')](),interaction[_0x187b('0xc')]('fax',_0x187b('0xd')),controller[_0x187b('0xe')]);router[_0x187b('0xf')](_0x187b('0x8'),auth[_0x187b('0x5')](),controller[_0x187b('0x10')]);router[_0x187b('0xf')]('/:id/accept',auth[_0x187b('0x5')](),controller[_0x187b('0x11')]);router['put']('/:id/reject',auth[_0x187b('0x5')](),controller[_0x187b('0x12')]);router[_0x187b('0x13')]('/:id',auth[_0x187b('0x5')](),controller['destroy']);module[_0x187b('0x14')]=router;