Built motion from commit (unavailable).|2.3.94
[motion2.git] / server / api / mailServerOut / 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 _0xc44b=['show','post','create','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./mailServerOut.controller','get','isAuthenticated','/:id'];(function(_0x2145f9,_0x29a8ac){var _0x495dc5=function(_0x37ea4d){while(--_0x37ea4d){_0x2145f9['push'](_0x2145f9['shift']());}};_0x495dc5(++_0x29a8ac);}(_0xc44b,0xab));var _0xbc44=function(_0xe51964,_0x433b90){_0xe51964=_0xe51964-0x0;var _0x2c2366=_0xc44b[_0xe51964];return _0x2c2366;};'use strict';var multer=require(_0xbc44('0x0'));var util=require(_0xbc44('0x1'));var path=require(_0xbc44('0x2'));var timeout=require(_0xbc44('0x3'));var express=require('express');var router=express[_0xbc44('0x4')]();var auth=require(_0xbc44('0x5'));var interaction=require(_0xbc44('0x6'));var config=require('../../config/environment');var controller=require(_0xbc44('0x7'));router[_0xbc44('0x8')]('/',auth[_0xbc44('0x9')](),controller['index']);router[_0xbc44('0x8')](_0xbc44('0xa'),auth['isAuthenticated'](),controller[_0xbc44('0xb')]);router[_0xbc44('0xc')]('/',auth[_0xbc44('0x9')](),controller[_0xbc44('0xd')]);router['put'](_0xbc44('0xa'),auth[_0xbc44('0x9')](),controller['update']);router['delete'](_0xbc44('0xa'),auth[_0xbc44('0x9')](),controller['destroy']);module['exports']=router;