d6136bd4e3fc01435f8ffcbb69a63b2c86f9dd3c
[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 _0x7d4e=['/describe','get','/:id','show','create','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailSubstatus.controller','isAuthenticated','index'];(function(_0x28458f,_0x398ed9){var _0x31114f=function(_0x4d2f52){while(--_0x4d2f52){_0x28458f['push'](_0x28458f['shift']());}};_0x31114f(++_0x398ed9);}(_0x7d4e,0x72));var _0xe7d4=function(_0x4d3afc,_0x1661e6){_0x4d3afc=_0x4d3afc-0x0;var _0x1fa6db=_0x7d4e[_0x4d3afc];return _0x1fa6db;};'use strict';var multer=require('multer');var util=require(_0xe7d4('0x0'));var path=require(_0xe7d4('0x1'));var timeout=require(_0xe7d4('0x2'));var express=require(_0xe7d4('0x3'));var router=express[_0xe7d4('0x4')]();var fs_extra=require(_0xe7d4('0x5'));var auth=require(_0xe7d4('0x6'));var interaction=require(_0xe7d4('0x7'));var config=require(_0xe7d4('0x8'));var controller=require(_0xe7d4('0x9'));router['get']('/',auth[_0xe7d4('0xa')](),controller[_0xe7d4('0xb')]);router['get'](_0xe7d4('0xc'),auth[_0xe7d4('0xa')](),controller['describe']);router[_0xe7d4('0xd')](_0xe7d4('0xe'),auth['isAuthenticated'](),controller[_0xe7d4('0xf')]);router['post']('/',auth[_0xe7d4('0xa')](),controller[_0xe7d4('0x10')]);router['put'](_0xe7d4('0xe'),auth[_0xe7d4('0xa')](),controller[_0xe7d4('0x11')]);router[_0xe7d4('0x12')](_0xe7d4('0xe'),auth['isAuthenticated'](),controller[_0xe7d4('0x13')]);module[_0xe7d4('0x14')]=router;