Built motion from commit 10af8726.|2.6.34
[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 _0x6f5b=['express','Router','fs-extra','../../config/environment','get','isAuthenticated','index','/describe','describe','show','post','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout'];(function(_0x153383,_0x90f378){var _0x403b69=function(_0x18d12a){while(--_0x18d12a){_0x153383['push'](_0x153383['shift']());}};_0x403b69(++_0x90f378);}(_0x6f5b,0x7a));var _0xb6f5=function(_0x443356,_0x290852){_0x443356=_0x443356-0x0;var _0x567343=_0x6f5b[_0x443356];return _0x567343;};'use strict';var multer=require(_0xb6f5('0x0'));var util=require(_0xb6f5('0x1'));var path=require(_0xb6f5('0x2'));var timeout=require(_0xb6f5('0x3'));var express=require(_0xb6f5('0x4'));var router=express[_0xb6f5('0x5')]();var fs_extra=require(_0xb6f5('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb6f5('0x7'));var controller=require('./mailSubstatus.controller');router[_0xb6f5('0x8')]('/',auth[_0xb6f5('0x9')](),controller[_0xb6f5('0xa')]);router['get'](_0xb6f5('0xb'),auth[_0xb6f5('0x9')](),controller[_0xb6f5('0xc')]);router[_0xb6f5('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xb6f5('0xd')]);router[_0xb6f5('0xe')]('/',auth[_0xb6f5('0x9')](),controller[_0xb6f5('0xf')]);router[_0xb6f5('0x10')](_0xb6f5('0x11'),auth['isAuthenticated'](),controller[_0xb6f5('0x12')]);router[_0xb6f5('0x13')]('/:id',auth[_0xb6f5('0x9')](),controller['destroy']);module[_0xb6f5('0x14')]=router;