0bffc88831a76efed695b501bab97cc5c588dde9
[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 _0x3445=['../../components/interaction/service','../../config/environment','./mailSubstatus.controller','get','/describe','isAuthenticated','describe','show','post','put','update','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x3837af,_0xf56913){var _0x9c867=function(_0x440a68){while(--_0x440a68){_0x3837af['push'](_0x3837af['shift']());}};_0x9c867(++_0xf56913);}(_0x3445,0x1f3));var _0x5344=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3445[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x5344('0x0'));var util=require(_0x5344('0x1'));var path=require(_0x5344('0x2'));var timeout=require(_0x5344('0x3'));var express=require(_0x5344('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x5344('0x5'));var config=require(_0x5344('0x6'));var controller=require(_0x5344('0x7'));router[_0x5344('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x5344('0x8')](_0x5344('0x9'),auth[_0x5344('0xa')](),controller[_0x5344('0xb')]);router['get']('/:id',auth[_0x5344('0xa')](),controller[_0x5344('0xc')]);router[_0x5344('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5344('0xe')]('/:id',auth[_0x5344('0xa')](),controller[_0x5344('0xf')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x5344('0x10')]);module[_0x5344('0x11')]=router;