Built motion from commit da24aabd.|2.6.20
[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 _0x3b05=['destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','/:id','show','put','update','delete'];(function(_0x2543d6,_0x3a5e78){var _0x55213c=function(_0x292768){while(--_0x292768){_0x2543d6['push'](_0x2543d6['shift']());}};_0x55213c(++_0x3a5e78);}(_0x3b05,0x1d2));var _0x53b0=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x3b05[_0x2b4411];return _0x8e41ef;};'use strict';var multer=require(_0x53b0('0x0'));var util=require(_0x53b0('0x1'));var path=require(_0x53b0('0x2'));var timeout=require(_0x53b0('0x3'));var express=require(_0x53b0('0x4'));var router=express[_0x53b0('0x5')]();var fs_extra=require(_0x53b0('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x53b0('0x7'));var config=require('../../config/environment');var controller=require('./mailApplication.controller');router[_0x53b0('0x8')](_0x53b0('0x9'),auth['isAuthenticated'](),controller[_0x53b0('0xa')]);router[_0x53b0('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x53b0('0xc')]);router[_0x53b0('0xd')](_0x53b0('0x9'),auth['isAuthenticated'](),controller[_0x53b0('0xe')]);module[_0x53b0('0xf')]=router;