933db19e6313ae4bd908cbbb3967ad678422269f
[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 _0xb256=['post','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./mailSubstatus.controller','isAuthenticated','index','get','/describe','describe'];(function(_0x105831,_0x15cb95){var _0x356d28=function(_0x41b405){while(--_0x41b405){_0x105831['push'](_0x105831['shift']());}};_0x356d28(++_0x15cb95);}(_0xb256,0x196));var _0x6b25=function(_0x13843f,_0x50422d){_0x13843f=_0x13843f-0x0;var _0x1063ae=_0xb256[_0x13843f];return _0x1063ae;};'use strict';var multer=require(_0x6b25('0x0'));var util=require(_0x6b25('0x1'));var path=require(_0x6b25('0x2'));var timeout=require(_0x6b25('0x3'));var express=require(_0x6b25('0x4'));var router=express[_0x6b25('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x6b25('0x6'));var interaction=require(_0x6b25('0x7'));var config=require('../../config/environment');var controller=require(_0x6b25('0x8'));router['get']('/',auth[_0x6b25('0x9')](),controller[_0x6b25('0xa')]);router[_0x6b25('0xb')](_0x6b25('0xc'),auth[_0x6b25('0x9')](),controller[_0x6b25('0xd')]);router['get']('/:id',auth[_0x6b25('0x9')](),controller['show']);router[_0x6b25('0xe')]('/',auth[_0x6b25('0x9')](),controller[_0x6b25('0xf')]);router[_0x6b25('0x10')](_0x6b25('0x11'),auth['isAuthenticated'](),controller[_0x6b25('0x12')]);router[_0x6b25('0x13')](_0x6b25('0x11'),auth[_0x6b25('0x9')](),controller['destroy']);module[_0x6b25('0x14')]=router;