6d4bff16f973f0d2344ddd7224851f5cf8f6211e
[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 _0x5469=['util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailSubstatus.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put','update','delete','destroy','exports','multer'];(function(_0x149319,_0x4182b5){var _0x4637c9=function(_0x2ff6ce){while(--_0x2ff6ce){_0x149319['push'](_0x149319['shift']());}};_0x4637c9(++_0x4182b5);}(_0x5469,0x89));var _0x9546=function(_0x400322,_0x4353a8){_0x400322=_0x400322-0x0;var _0xfdd597=_0x5469[_0x400322];return _0xfdd597;};'use strict';var multer=require(_0x9546('0x0'));var util=require(_0x9546('0x1'));var path=require(_0x9546('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9546('0x3')]();var fs_extra=require(_0x9546('0x4'));var auth=require(_0x9546('0x5'));var interaction=require(_0x9546('0x6'));var config=require(_0x9546('0x7'));var controller=require(_0x9546('0x8'));router[_0x9546('0x9')]('/',auth[_0x9546('0xa')](),controller[_0x9546('0xb')]);router[_0x9546('0x9')](_0x9546('0xc'),auth[_0x9546('0xa')](),controller[_0x9546('0xd')]);router[_0x9546('0x9')](_0x9546('0xe'),auth[_0x9546('0xa')](),controller[_0x9546('0xf')]);router[_0x9546('0x10')]('/',auth[_0x9546('0xa')](),controller[_0x9546('0x11')]);router[_0x9546('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x9546('0x13')]);router[_0x9546('0x14')](_0x9546('0xe'),auth['isAuthenticated'](),controller[_0x9546('0x15')]);module[_0x9546('0x16')]=router;