a58943c8390952cbf60d8d8686f848fb63aa464a
[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 _0x7a31=['path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./mailSubstatus.controller','get','index','/describe','isAuthenticated','describe','put','/:id','update','delete','destroy','exports','util'];(function(_0x24e2a3,_0x534875){var _0x3e82f4=function(_0x48a8ee){while(--_0x48a8ee){_0x24e2a3['push'](_0x24e2a3['shift']());}};_0x3e82f4(++_0x534875);}(_0x7a31,0x168));var _0x17a3=function(_0xb3fe05,_0x3073a1){_0xb3fe05=_0xb3fe05-0x0;var _0x576b66=_0x7a31[_0xb3fe05];return _0x576b66;};'use strict';var multer=require('multer');var util=require(_0x17a3('0x0'));var path=require(_0x17a3('0x1'));var timeout=require(_0x17a3('0x2'));var express=require(_0x17a3('0x3'));var router=express['Router']();var fs_extra=require(_0x17a3('0x4'));var auth=require(_0x17a3('0x5'));var interaction=require(_0x17a3('0x6'));var config=require('../../config/environment');var controller=require(_0x17a3('0x7'));router[_0x17a3('0x8')]('/',auth['isAuthenticated'](),controller[_0x17a3('0x9')]);router[_0x17a3('0x8')](_0x17a3('0xa'),auth[_0x17a3('0xb')](),controller[_0x17a3('0xc')]);router['get']('/:id',auth[_0x17a3('0xb')](),controller['show']);router['post']('/',auth[_0x17a3('0xb')](),controller['create']);router[_0x17a3('0xd')](_0x17a3('0xe'),auth[_0x17a3('0xb')](),controller[_0x17a3('0xf')]);router[_0x17a3('0x10')](_0x17a3('0xe'),auth[_0x17a3('0xb')](),controller[_0x17a3('0x11')]);module[_0x17a3('0x12')]=router;