Built motion from commit a61a4a20.|2.5.46
[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 _0xe85f=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailSubstatus.controller','get','isAuthenticated','index','/describe','describe','/:id','create','put','destroy','exports','multer','util'];(function(_0x45279c,_0x2f5598){var _0x1daf33=function(_0x4c00d3){while(--_0x4c00d3){_0x45279c['push'](_0x45279c['shift']());}};_0x1daf33(++_0x2f5598);}(_0xe85f,0xb2));var _0xfe85=function(_0x82129b,_0x484ae9){_0x82129b=_0x82129b-0x0;var _0x2ae5dc=_0xe85f[_0x82129b];return _0x2ae5dc;};'use strict';var multer=require(_0xfe85('0x0'));var util=require(_0xfe85('0x1'));var path=require('path');var timeout=require(_0xfe85('0x2'));var express=require('express');var router=express[_0xfe85('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xfe85('0x4'));var interaction=require(_0xfe85('0x5'));var config=require(_0xfe85('0x6'));var controller=require(_0xfe85('0x7'));router[_0xfe85('0x8')]('/',auth[_0xfe85('0x9')](),controller[_0xfe85('0xa')]);router[_0xfe85('0x8')](_0xfe85('0xb'),auth[_0xfe85('0x9')](),controller[_0xfe85('0xc')]);router[_0xfe85('0x8')](_0xfe85('0xd'),auth[_0xfe85('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xfe85('0xe')]);router[_0xfe85('0xf')](_0xfe85('0xd'),auth[_0xfe85('0x9')](),controller['update']);router['delete'](_0xfe85('0xd'),auth[_0xfe85('0x9')](),controller[_0xfe85('0x10')]);module[_0xfe85('0x11')]=router;