8fdf8e7079dfcd6e0fe9c2a554937edfacd42ca0
[motion2.git] / server / api / mailSubstatus / 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 _0x53ec=['describe','/:id','post','create','put','delete','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated'];(function(_0x1e18f9,_0x1794c0){var _0x4b5796=function(_0x1dd656){while(--_0x1dd656){_0x1e18f9['push'](_0x1e18f9['shift']());}};_0x4b5796(++_0x1794c0);}(_0x53ec,0xa9));var _0xc53e=function(_0x2b698c,_0x5bbdd5){_0x2b698c=_0x2b698c-0x0;var _0x535317=_0x53ec[_0x2b698c];return _0x535317;};'use strict';var multer=require(_0xc53e('0x0'));var util=require(_0xc53e('0x1'));var path=require(_0xc53e('0x2'));var timeout=require(_0xc53e('0x3'));var express=require('express');var router=express[_0xc53e('0x4')]();var auth=require(_0xc53e('0x5'));var interaction=require(_0xc53e('0x6'));var config=require(_0xc53e('0x7'));var controller=require('./mailSubstatus.controller');router[_0xc53e('0x8')]('/',auth['isAuthenticated'](),controller[_0xc53e('0x9')]);router[_0xc53e('0x8')]('/describe',auth[_0xc53e('0xa')](),controller[_0xc53e('0xb')]);router['get'](_0xc53e('0xc'),auth[_0xc53e('0xa')](),controller['show']);router[_0xc53e('0xd')]('/',auth[_0xc53e('0xa')](),controller[_0xc53e('0xe')]);router[_0xc53e('0xf')]('/:id',auth[_0xc53e('0xa')](),controller['update']);router[_0xc53e('0x10')](_0xc53e('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xc53e('0x11')]=router;