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 _0xb2ea=['path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','show','update','delete','exports'];(function(_0xbe61db,_0x512e66){var _0x2550bf=function(_0x4127ec){while(--_0x4127ec){_0xbe61db['push'](_0xbe61db['shift']());}};_0x2550bf(++_0x512e66);}(_0xb2ea,0x188));var _0xab2e=function(_0x16ec9d,_0x36ac5d){_0x16ec9d=_0x16ec9d-0x0;var _0x1e98b=_0xb2ea[_0x16ec9d];return _0x1e98b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xab2e('0x0'));var timeout=require(_0xab2e('0x1'));var express=require('express');var router=express[_0xab2e('0x2')]();var fs_extra=require(_0xab2e('0x3'));var auth=require(_0xab2e('0x4'));var interaction=require(_0xab2e('0x5'));var config=require(_0xab2e('0x6'));var controller=require(_0xab2e('0x7'));router[_0xab2e('0x8')](_0xab2e('0x9'),auth['isAuthenticated'](),controller[_0xab2e('0xa')]);router['put'](_0xab2e('0x9'),auth['isAuthenticated'](),controller[_0xab2e('0xb')]);router[_0xab2e('0xc')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xab2e('0xd')]=router;