95ebbaf617abb637d7aeb5dcebf4aae304bdf52b
[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 _0xde2c=['./mailApplication.controller','get','/:id','isAuthenticated','show','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x3214a4,_0x51d71c){var _0xd6af=function(_0xcb60ea){while(--_0xcb60ea){_0x3214a4['push'](_0x3214a4['shift']());}};_0xd6af(++_0x51d71c);}(_0xde2c,0x7f));var _0xcde2=function(_0x5e2152,_0x172f3d){_0x5e2152=_0x5e2152-0x0;var _0x5ddcf6=_0xde2c[_0x5e2152];return _0x5ddcf6;};'use strict';var multer=require(_0xcde2('0x0'));var util=require(_0xcde2('0x1'));var path=require(_0xcde2('0x2'));var timeout=require(_0xcde2('0x3'));var express=require(_0xcde2('0x4'));var router=express[_0xcde2('0x5')]();var auth=require(_0xcde2('0x6'));var interaction=require(_0xcde2('0x7'));var config=require('../../config/environment');var controller=require(_0xcde2('0x8'));router[_0xcde2('0x9')](_0xcde2('0xa'),auth[_0xcde2('0xb')](),controller[_0xcde2('0xc')]);router['put'](_0xcde2('0xa'),auth[_0xcde2('0xb')](),controller[_0xcde2('0xd')]);router['delete']('/:id',auth[_0xcde2('0xb')](),controller[_0xcde2('0xe')]);module['exports']=router;