Built motion from commit (unavailable).|2.5.3
[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 _0x3c81=['connect-timeout','express','./mailApplication.controller','get','/:id','isAuthenticated','show','put','update','destroy','exports','multer','util'];(function(_0x1751b3,_0x20798b){var _0x1090e5=function(_0x30b7fb){while(--_0x30b7fb){_0x1751b3['push'](_0x1751b3['shift']());}};_0x1090e5(++_0x20798b);}(_0x3c81,0x102));var _0x13c8=function(_0x5116c4,_0x5e513c){_0x5116c4=_0x5116c4-0x0;var _0x1ecc60=_0x3c81[_0x5116c4];return _0x1ecc60;};'use strict';var multer=require(_0x13c8('0x0'));var util=require(_0x13c8('0x1'));var path=require('path');var timeout=require(_0x13c8('0x2'));var express=require(_0x13c8('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x13c8('0x4'));router[_0x13c8('0x5')](_0x13c8('0x6'),auth[_0x13c8('0x7')](),controller[_0x13c8('0x8')]);router[_0x13c8('0x9')](_0x13c8('0x6'),auth['isAuthenticated'](),controller[_0x13c8('0xa')]);router['delete'](_0x13c8('0x6'),auth[_0x13c8('0x7')](),controller[_0x13c8('0xb')]);module[_0x13c8('0xc')]=router;