Built motion from commit 85328c08.|2.5.50
[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 _0xa623=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','isAuthenticated','show','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x26e7dd,_0x3f49d9){var _0x49db22=function(_0x381365){while(--_0x381365){_0x26e7dd['push'](_0x26e7dd['shift']());}};_0x49db22(++_0x3f49d9);}(_0xa623,0xba));var _0x3a62=function(_0x5943ae,_0xd76cf2){_0x5943ae=_0x5943ae-0x0;var _0x329c20=_0xa623[_0x5943ae];return _0x329c20;};'use strict';var multer=require(_0x3a62('0x0'));var util=require(_0x3a62('0x1'));var path=require(_0x3a62('0x2'));var timeout=require(_0x3a62('0x3'));var express=require(_0x3a62('0x4'));var router=express[_0x3a62('0x5')]();var fs_extra=require(_0x3a62('0x6'));var auth=require(_0x3a62('0x7'));var interaction=require(_0x3a62('0x8'));var config=require(_0x3a62('0x9'));var controller=require(_0x3a62('0xa'));router['get']('/:id',auth[_0x3a62('0xb')](),controller[_0x3a62('0xc')]);router[_0x3a62('0xd')](_0x3a62('0xe'),auth[_0x3a62('0xb')](),controller[_0x3a62('0xf')]);router[_0x3a62('0x10')](_0x3a62('0xe'),auth[_0x3a62('0xb')](),controller[_0x3a62('0x11')]);module[_0x3a62('0x12')]=router;