34ac9c51006259f2c74ff6f8afe5e6895d84e3a0
[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 _0x51f4=['mailmessage:create','create','update','/:id/accept','accept','put','delete','destroy','multer','util','path','express','Router','fs-extra','../../components/interaction/service','./mailMessage.controller','get','isAuthenticated','/describe','/:id','show','/:id/download','download','post','tracked','mail'];(function(_0x4db6d7,_0x5f4e37){var _0x32ab94=function(_0x29d868){while(--_0x29d868){_0x4db6d7['push'](_0x4db6d7['shift']());}};_0x32ab94(++_0x5f4e37);}(_0x51f4,0x1c2));var _0x451f=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x51f4[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x451f('0x0'));var util=require(_0x451f('0x1'));var path=require(_0x451f('0x2'));var timeout=require('connect-timeout');var express=require(_0x451f('0x3'));var router=express[_0x451f('0x4')]();var fs_extra=require(_0x451f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x451f('0x6'));var config=require('../../config/environment');var controller=require(_0x451f('0x7'));router[_0x451f('0x8')]('/',auth[_0x451f('0x9')](),controller['index']);router[_0x451f('0x8')](_0x451f('0xa'),auth[_0x451f('0x9')](),controller['describe']);router[_0x451f('0x8')](_0x451f('0xb'),auth[_0x451f('0x9')](),controller[_0x451f('0xc')]);router['get'](_0x451f('0xd'),auth['isAuthenticated'](),controller[_0x451f('0xe')]);router[_0x451f('0xf')]('/',auth[_0x451f('0x9')](),interaction[_0x451f('0x10')](_0x451f('0x11'),_0x451f('0x12')),controller[_0x451f('0x13')]);router['put'](_0x451f('0xb'),auth[_0x451f('0x9')](),controller[_0x451f('0x14')]);router['put'](_0x451f('0x15'),auth[_0x451f('0x9')](),controller[_0x451f('0x16')]);router[_0x451f('0x17')]('/:id/reject',auth[_0x451f('0x9')](),controller['reject']);router[_0x451f('0x18')]('/:id',auth['isAuthenticated'](),controller[_0x451f('0x19')]);module['exports']=router;