Built motion from commit b5996064.|2.6.21
[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 _0xeaf3=['describe','show','create','put','/:id','delete','destroy','exports','multer','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated'];(function(_0x18f1cc,_0x2c8cac){var _0x3f54f3=function(_0x434ac1){while(--_0x434ac1){_0x18f1cc['push'](_0x18f1cc['shift']());}};_0x3f54f3(++_0x2c8cac);}(_0xeaf3,0xd9));var _0x3eaf=function(_0x14d2b7,_0x33e508){_0x14d2b7=_0x14d2b7-0x0;var _0x5643aa=_0xeaf3[_0x14d2b7];return _0x5643aa;};'use strict';var multer=require(_0x3eaf('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x3eaf('0x1'));var router=express[_0x3eaf('0x2')]();var fs_extra=require(_0x3eaf('0x3'));var auth=require(_0x3eaf('0x4'));var interaction=require(_0x3eaf('0x5'));var config=require(_0x3eaf('0x6'));var controller=require('./mailSubstatus.controller');router[_0x3eaf('0x7')]('/',auth['isAuthenticated'](),controller[_0x3eaf('0x8')]);router[_0x3eaf('0x7')](_0x3eaf('0x9'),auth[_0x3eaf('0xa')](),controller[_0x3eaf('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x3eaf('0xc')]);router['post']('/',auth[_0x3eaf('0xa')](),controller[_0x3eaf('0xd')]);router[_0x3eaf('0xe')](_0x3eaf('0xf'),auth[_0x3eaf('0xa')](),controller['update']);router[_0x3eaf('0x10')](_0x3eaf('0xf'),auth[_0x3eaf('0xa')](),controller[_0x3eaf('0x11')]);module[_0x3eaf('0x12')]=router;