cf602c6687a5c0573a461a3c897aa4afb4f6d6cc
[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 _0x066d=['show','create','update','delete','destroy','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id'];(function(_0x57f590,_0x31e929){var _0x3181dd=function(_0x9bb1c5){while(--_0x9bb1c5){_0x57f590['push'](_0x57f590['shift']());}};_0x3181dd(++_0x31e929);}(_0x066d,0x75));var _0xd066=function(_0x1baf4b,_0x395db9){_0x1baf4b=_0x1baf4b-0x0;var _0x47b31f=_0x066d[_0x1baf4b];return _0x47b31f;};'use strict';var multer=require(_0xd066('0x0'));var util=require(_0xd066('0x1'));var path=require(_0xd066('0x2'));var timeout=require('connect-timeout');var express=require(_0xd066('0x3'));var router=express[_0xd066('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xd066('0x5'));var config=require(_0xd066('0x6'));var controller=require('./mailSubstatus.controller');router['get']('/',auth[_0xd066('0x7')](),controller[_0xd066('0x8')]);router[_0xd066('0x9')]('/describe',auth[_0xd066('0x7')](),controller['describe']);router['get'](_0xd066('0xa'),auth['isAuthenticated'](),controller[_0xd066('0xb')]);router['post']('/',auth[_0xd066('0x7')](),controller[_0xd066('0xc')]);router['put'](_0xd066('0xa'),auth['isAuthenticated'](),controller[_0xd066('0xd')]);router[_0xd066('0xe')]('/:id',auth[_0xd066('0x7')](),controller[_0xd066('0xf')]);module['exports']=router;