Built motion from commit a679711e.|2.6.15
[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 _0xa0e2=['exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','isAuthenticated','show','put','/:id','update','destroy'];(function(_0x238bc8,_0x1d140c){var _0x48a048=function(_0x518864){while(--_0x518864){_0x238bc8['push'](_0x238bc8['shift']());}};_0x48a048(++_0x1d140c);}(_0xa0e2,0x1f1));var _0x2a0e=function(_0x37437c,_0x55dacf){_0x37437c=_0x37437c-0x0;var _0x35e1a1=_0xa0e2[_0x37437c];return _0x35e1a1;};'use strict';var multer=require(_0x2a0e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x2a0e('0x1'));var express=require(_0x2a0e('0x2'));var router=express[_0x2a0e('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2a0e('0x4'));var interaction=require(_0x2a0e('0x5'));var config=require(_0x2a0e('0x6'));var controller=require(_0x2a0e('0x7'));router[_0x2a0e('0x8')]('/:id',auth[_0x2a0e('0x9')](),controller[_0x2a0e('0xa')]);router[_0x2a0e('0xb')](_0x2a0e('0xc'),auth['isAuthenticated'](),controller[_0x2a0e('0xd')]);router['delete'](_0x2a0e('0xc'),auth[_0x2a0e('0x9')](),controller[_0x2a0e('0xe')]);module[_0x2a0e('0xf')]=router;