5cf27c0c0b3dfc22abad604466ab8d03edf7d989
[motion2.git] / server / api / mailApplication / 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 _0xf290=['../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','/:id','show','put','isAuthenticated','update','delete','destroy','exports','util','connect-timeout','Router'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xf290,0xde));var _0x0f29=function(_0x303c30,_0x16edcb){_0x303c30=_0x303c30-0x0;var _0x43161b=_0xf290[_0x303c30];return _0x43161b;};'use strict';var multer=require('multer');var util=require(_0x0f29('0x0'));var path=require('path');var timeout=require(_0x0f29('0x1'));var express=require('express');var router=express[_0x0f29('0x2')]();var auth=require(_0x0f29('0x3'));var interaction=require(_0x0f29('0x4'));var config=require(_0x0f29('0x5'));var controller=require(_0x0f29('0x6'));router['get'](_0x0f29('0x7'),auth['isAuthenticated'](),controller[_0x0f29('0x8')]);router[_0x0f29('0x9')](_0x0f29('0x7'),auth[_0x0f29('0xa')](),controller[_0x0f29('0xb')]);router[_0x0f29('0xc')](_0x0f29('0x7'),auth[_0x0f29('0xa')](),controller[_0x0f29('0xd')]);module[_0x0f29('0xe')]=router;