Built motion from commit 9d0783e6.|2.6.13
[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 _0x00c3=['get','/:id','show','post','create','update','delete','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','/describe','describe'];(function(_0x2b81be,_0x544bdf){var _0x8ed4a7=function(_0x4a7bf4){while(--_0x4a7bf4){_0x2b81be['push'](_0x2b81be['shift']());}};_0x8ed4a7(++_0x544bdf);}(_0x00c3,0x198));var _0x300c=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0x00c3[_0x21a9d9];return _0x46adce;};'use strict';var multer=require(_0x300c('0x0'));var util=require(_0x300c('0x1'));var path=require(_0x300c('0x2'));var timeout=require(_0x300c('0x3'));var express=require('express');var router=express[_0x300c('0x4')]();var fs_extra=require(_0x300c('0x5'));var auth=require(_0x300c('0x6'));var interaction=require(_0x300c('0x7'));var config=require(_0x300c('0x8'));var controller=require('./mailSubstatus.controller');router['get']('/',auth[_0x300c('0x9')](),controller['index']);router['get'](_0x300c('0xa'),auth[_0x300c('0x9')](),controller[_0x300c('0xb')]);router[_0x300c('0xc')](_0x300c('0xd'),auth[_0x300c('0x9')](),controller[_0x300c('0xe')]);router[_0x300c('0xf')]('/',auth['isAuthenticated'](),controller[_0x300c('0x10')]);router['put'](_0x300c('0xd'),auth[_0x300c('0x9')](),controller[_0x300c('0x11')]);router[_0x300c('0x12')](_0x300c('0xd'),auth[_0x300c('0x9')](),controller[_0x300c('0x13')]);module['exports']=router;