Built motion from commit (unavailable).|2.0.74
[motion2.git] / server / api / mailMessage / 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 _0xdb6e=['reject','exports','multer','util','../../config/environment','./mailMessage.controller','get','isAuthenticated','/describe','describe','/:id','show','tracked','mail','mailmessage:create','create','put','update','/:id/accept','accept','/:id/reject'];(function(_0x460c4d,_0x11343f){var _0x2e8fbf=function(_0x3c159d){while(--_0x3c159d){_0x460c4d['push'](_0x460c4d['shift']());}};_0x2e8fbf(++_0x11343f);}(_0xdb6e,0x152));var _0xedb6=function(_0x3a9e6d,_0x29a891){_0x3a9e6d=_0x3a9e6d-0x0;var _0x4478c0=_0xdb6e[_0x3a9e6d];return _0x4478c0;};'use strict';var multer=require(_0xedb6('0x0'));var util=require(_0xedb6('0x1'));var path=require('path');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xedb6('0x2'));var controller=require(_0xedb6('0x3'));router[_0xedb6('0x4')]('/',auth[_0xedb6('0x5')](),controller['index']);router[_0xedb6('0x4')](_0xedb6('0x6'),auth[_0xedb6('0x5')](),controller[_0xedb6('0x7')]);router[_0xedb6('0x4')](_0xedb6('0x8'),auth['isAuthenticated'](),controller[_0xedb6('0x9')]);router['post']('/',auth[_0xedb6('0x5')](),interaction[_0xedb6('0xa')](_0xedb6('0xb'),_0xedb6('0xc')),controller[_0xedb6('0xd')]);router[_0xedb6('0xe')]('/:id',auth[_0xedb6('0x5')](),controller[_0xedb6('0xf')]);router['put'](_0xedb6('0x10'),auth['isAuthenticated'](),controller[_0xedb6('0x11')]);router[_0xedb6('0xe')](_0xedb6('0x12'),auth['isAuthenticated'](),controller[_0xedb6('0x13')]);router['delete'](_0xedb6('0x8'),auth[_0xedb6('0x5')](),controller['destroy']);module[_0xedb6('0x14')]=router;