Built motion from commit f0b1811d.|2.6.6
[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 _0x748f=['put','update','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./mailSubstatus.controller','get','isAuthenticated','/describe','describe','/:id','show','post','create'];(function(_0x4d7769,_0x12ec53){var _0x30b5ac=function(_0x4bb27d){while(--_0x4bb27d){_0x4d7769['push'](_0x4d7769['shift']());}};_0x30b5ac(++_0x12ec53);}(_0x748f,0x194));var _0xf748=function(_0x3018cb,_0x5cece4){_0x3018cb=_0x3018cb-0x0;var _0x91249=_0x748f[_0x3018cb];return _0x91249;};'use strict';var multer=require(_0xf748('0x0'));var util=require('util');var path=require(_0xf748('0x1'));var timeout=require(_0xf748('0x2'));var express=require('express');var router=express[_0xf748('0x3')]();var fs_extra=require(_0xf748('0x4'));var auth=require(_0xf748('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf748('0x6'));var controller=require(_0xf748('0x7'));router[_0xf748('0x8')]('/',auth[_0xf748('0x9')](),controller['index']);router['get'](_0xf748('0xa'),auth[_0xf748('0x9')](),controller[_0xf748('0xb')]);router['get'](_0xf748('0xc'),auth['isAuthenticated'](),controller[_0xf748('0xd')]);router[_0xf748('0xe')]('/',auth['isAuthenticated'](),controller[_0xf748('0xf')]);router[_0xf748('0x10')](_0xf748('0xc'),auth[_0xf748('0x9')](),controller[_0xf748('0x11')]);router['delete']('/:id',auth[_0xf748('0x9')](),controller[_0xf748('0x12')]);module[_0xf748('0x13')]=router;