Built motion from commit 6f14c8ba.|2.6.29
[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 _0x4aaf=['delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated','put','update'];(function(_0x351c07,_0x1380f0){var _0x53d2f3=function(_0x41d6f8){while(--_0x41d6f8){_0x351c07['push'](_0x351c07['shift']());}};_0x53d2f3(++_0x1380f0);}(_0x4aaf,0x183));var _0xf4aa=function(_0x40af09,_0x4987c8){_0x40af09=_0x40af09-0x0;var _0x116580=_0x4aaf[_0x40af09];return _0x116580;};'use strict';var multer=require(_0xf4aa('0x0'));var util=require('util');var path=require(_0xf4aa('0x1'));var timeout=require(_0xf4aa('0x2'));var express=require(_0xf4aa('0x3'));var router=express[_0xf4aa('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xf4aa('0x5'));var config=require(_0xf4aa('0x6'));var controller=require(_0xf4aa('0x7'));router[_0xf4aa('0x8')](_0xf4aa('0x9'),auth[_0xf4aa('0xa')](),controller['show']);router[_0xf4aa('0xb')]('/:id',auth[_0xf4aa('0xa')](),controller[_0xf4aa('0xc')]);router[_0xf4aa('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xf4aa('0xe')]);module[_0xf4aa('0xf')]=router;