Built motion from commit 97f2f211.|2.6.31
[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 _0x7a99=['/describe','describe','/:id','show','put','update','destroy','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./mailSubstatus.controller','isAuthenticated','get'];(function(_0x1bb224,_0x5572eb){var _0x108ec8=function(_0x130ab8){while(--_0x130ab8){_0x1bb224['push'](_0x1bb224['shift']());}};_0x108ec8(++_0x5572eb);}(_0x7a99,0xc2));var _0x97a9=function(_0x243ef5,_0x59765c){_0x243ef5=_0x243ef5-0x0;var _0x316e00=_0x7a99[_0x243ef5];return _0x316e00;};'use strict';var multer=require(_0x97a9('0x0'));var util=require(_0x97a9('0x1'));var path=require(_0x97a9('0x2'));var timeout=require('connect-timeout');var express=require(_0x97a9('0x3'));var router=express[_0x97a9('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x97a9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x97a9('0x6'));var controller=require(_0x97a9('0x7'));router['get']('/',auth[_0x97a9('0x8')](),controller['index']);router[_0x97a9('0x9')](_0x97a9('0xa'),auth['isAuthenticated'](),controller[_0x97a9('0xb')]);router[_0x97a9('0x9')](_0x97a9('0xc'),auth[_0x97a9('0x8')](),controller[_0x97a9('0xd')]);router['post']('/',auth[_0x97a9('0x8')](),controller['create']);router[_0x97a9('0xe')](_0x97a9('0xc'),auth[_0x97a9('0x8')](),controller[_0x97a9('0xf')]);router['delete'](_0x97a9('0xc'),auth[_0x97a9('0x8')](),controller[_0x97a9('0x10')]);module['exports']=router;