7e15624490391e8c9338cbf135b183dc376f77fb
[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 _0x6b68=['multer','connect-timeout','express','../../components/interaction/service','get','isAuthenticated','index','/describe','/:id','show','post','create','put','update','delete','exports'];(function(_0x1854b0,_0x346a44){var _0xe61ab6=function(_0x2f0271){while(--_0x2f0271){_0x1854b0['push'](_0x1854b0['shift']());}};_0xe61ab6(++_0x346a44);}(_0x6b68,0xe0));var _0x86b6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x6b68[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x86b6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x86b6('0x1'));var express=require(_0x86b6('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x86b6('0x3'));var config=require('../../config/environment');var controller=require('./mailSubstatus.controller');router[_0x86b6('0x4')]('/',auth[_0x86b6('0x5')](),controller[_0x86b6('0x6')]);router[_0x86b6('0x4')](_0x86b6('0x7'),auth[_0x86b6('0x5')](),controller['describe']);router[_0x86b6('0x4')](_0x86b6('0x8'),auth[_0x86b6('0x5')](),controller[_0x86b6('0x9')]);router[_0x86b6('0xa')]('/',auth[_0x86b6('0x5')](),controller[_0x86b6('0xb')]);router[_0x86b6('0xc')](_0x86b6('0x8'),auth[_0x86b6('0x5')](),controller[_0x86b6('0xd')]);router[_0x86b6('0xe')](_0x86b6('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0x86b6('0xf')]=router;