eb7f076e3780e3219fe0bbc09823e5448b6fd377
[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 _0x88a2=['/:id','show','post','put','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./mailSubstatus.controller','isAuthenticated','index','/describe','describe'];(function(_0x28a126,_0x7f889){var _0xefd163=function(_0x43c59f){while(--_0x43c59f){_0x28a126['push'](_0x28a126['shift']());}};_0xefd163(++_0x7f889);}(_0x88a2,0xea));var _0x288a=function(_0x5cbcee,_0x2113d2){_0x5cbcee=_0x5cbcee-0x0;var _0x495034=_0x88a2[_0x5cbcee];return _0x495034;};'use strict';var multer=require('multer');var util=require(_0x288a('0x0'));var path=require(_0x288a('0x1'));var timeout=require(_0x288a('0x2'));var express=require(_0x288a('0x3'));var router=express[_0x288a('0x4')]();var fs_extra=require(_0x288a('0x5'));var auth=require(_0x288a('0x6'));var interaction=require(_0x288a('0x7'));var config=require('../../config/environment');var controller=require(_0x288a('0x8'));router['get']('/',auth[_0x288a('0x9')](),controller[_0x288a('0xa')]);router['get'](_0x288a('0xb'),auth['isAuthenticated'](),controller[_0x288a('0xc')]);router['get'](_0x288a('0xd'),auth[_0x288a('0x9')](),controller[_0x288a('0xe')]);router[_0x288a('0xf')]('/',auth[_0x288a('0x9')](),controller['create']);router[_0x288a('0x10')](_0x288a('0xd'),auth[_0x288a('0x9')](),controller['update']);router['delete'](_0x288a('0xd'),auth['isAuthenticated'](),controller[_0x288a('0x11')]);module[_0x288a('0x12')]=router;