1f586c232d87ffd6a3dba9f16a9248169f2b1739
[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 _0x0abf=['isAuthenticated','show','put','update','delete','destroy','exports','multer','path','connect-timeout','../../components/auth/service','../../config/environment','./mailApplication.controller','get','/:id'];(function(_0x146606,_0x9e215a){var _0x52c77d=function(_0x3040ca){while(--_0x3040ca){_0x146606['push'](_0x146606['shift']());}};_0x52c77d(++_0x9e215a);}(_0x0abf,0xe8));var _0xf0ab=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x0abf[_0x1facfa];return _0x9ec701;};'use strict';var multer=require(_0xf0ab('0x0'));var util=require('util');var path=require(_0xf0ab('0x1'));var timeout=require(_0xf0ab('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xf0ab('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xf0ab('0x4'));var controller=require(_0xf0ab('0x5'));router[_0xf0ab('0x6')](_0xf0ab('0x7'),auth[_0xf0ab('0x8')](),controller[_0xf0ab('0x9')]);router[_0xf0ab('0xa')]('/:id',auth[_0xf0ab('0x8')](),controller[_0xf0ab('0xb')]);router[_0xf0ab('0xc')](_0xf0ab('0x7'),auth['isAuthenticated'](),controller[_0xf0ab('0xd')]);module[_0xf0ab('0xe')]=router;