Built motion from commit d1eab355.|2.6.28
[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 _0xd8f1=['../../components/auth/service','../../config/environment','./mailApplication.controller','/:id','isAuthenticated','put','update','delete','destroy','path','connect-timeout','express','Router'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd8f1,0x71));var _0x1d8f=function(_0x214ec3,_0x298eb9){_0x214ec3=_0x214ec3-0x0;var _0x1032ab=_0xd8f1[_0x214ec3];return _0x1032ab;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1d8f('0x0'));var timeout=require(_0x1d8f('0x1'));var express=require(_0x1d8f('0x2'));var router=express[_0x1d8f('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x1d8f('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x1d8f('0x5'));var controller=require(_0x1d8f('0x6'));router['get'](_0x1d8f('0x7'),auth[_0x1d8f('0x8')](),controller['show']);router[_0x1d8f('0x9')](_0x1d8f('0x7'),auth[_0x1d8f('0x8')](),controller[_0x1d8f('0xa')]);router[_0x1d8f('0xb')](_0x1d8f('0x7'),auth[_0x1d8f('0x8')](),controller[_0x1d8f('0xc')]);module['exports']=router;