1c7297fc74353c30ef96a988e3997b1c62668bd8
[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 _0x9dc2=['isAuthenticated','get','/describe','/:id','show','post','put','update','destroy','multer','util','path','express','../../components/auth/service','../../config/environment','./mailSubstatus.controller'];(function(_0x8560d3,_0x26a504){var _0x33b1b5=function(_0x3a2cad){while(--_0x3a2cad){_0x8560d3['push'](_0x8560d3['shift']());}};_0x33b1b5(++_0x26a504);}(_0x9dc2,0xd9));var _0x29dc=function(_0x2c2056,_0x3cbd49){_0x2c2056=_0x2c2056-0x0;var _0x2ffd91=_0x9dc2[_0x2c2056];return _0x2ffd91;};'use strict';var multer=require(_0x29dc('0x0'));var util=require(_0x29dc('0x1'));var path=require(_0x29dc('0x2'));var timeout=require('connect-timeout');var express=require(_0x29dc('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x29dc('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x29dc('0x5'));var controller=require(_0x29dc('0x6'));router['get']('/',auth[_0x29dc('0x7')](),controller['index']);router[_0x29dc('0x8')](_0x29dc('0x9'),auth['isAuthenticated'](),controller['describe']);router[_0x29dc('0x8')](_0x29dc('0xa'),auth[_0x29dc('0x7')](),controller[_0x29dc('0xb')]);router[_0x29dc('0xc')]('/',auth[_0x29dc('0x7')](),controller['create']);router[_0x29dc('0xd')](_0x29dc('0xa'),auth[_0x29dc('0x7')](),controller[_0x29dc('0xe')]);router['delete'](_0x29dc('0xa'),auth[_0x29dc('0x7')](),controller[_0x29dc('0xf')]);module['exports']=router;