Built motion from commit ddca4d0d.|2.5.47
[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 _0x74f4=['delete','destroy','multer','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./mailMessage.controller','isAuthenticated','index','get','/describe','describe','/:id','show','download','post','tracked','mail','mailmessage:create','put','update','/:id/accept','accept','/:id/reject','reject'];(function(_0x345ad4,_0x5a62e0){var _0x4d72ba=function(_0x2f2969){while(--_0x2f2969){_0x345ad4['push'](_0x345ad4['shift']());}};_0x4d72ba(++_0x5a62e0);}(_0x74f4,0xaa));var _0x474f=function(_0x3ef4bc,_0x297131){_0x3ef4bc=_0x3ef4bc-0x0;var _0x46adc8=_0x74f4[_0x3ef4bc];return _0x46adc8;};'use strict';var multer=require(_0x474f('0x0'));var util=require(_0x474f('0x1'));var path=require('path');var timeout=require(_0x474f('0x2'));var express=require(_0x474f('0x3'));var router=express['Router']();var fs_extra=require(_0x474f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x474f('0x5'));var config=require(_0x474f('0x6'));var controller=require(_0x474f('0x7'));router['get']('/',auth[_0x474f('0x8')](),controller[_0x474f('0x9')]);router[_0x474f('0xa')](_0x474f('0xb'),auth[_0x474f('0x8')](),controller[_0x474f('0xc')]);router[_0x474f('0xa')](_0x474f('0xd'),auth[_0x474f('0x8')](),controller[_0x474f('0xe')]);router[_0x474f('0xa')]('/:id/download',auth[_0x474f('0x8')](),controller[_0x474f('0xf')]);router[_0x474f('0x10')]('/',auth['isAuthenticated'](),interaction[_0x474f('0x11')](_0x474f('0x12'),_0x474f('0x13')),controller['create']);router[_0x474f('0x14')](_0x474f('0xd'),auth['isAuthenticated'](),controller[_0x474f('0x15')]);router[_0x474f('0x14')](_0x474f('0x16'),auth['isAuthenticated'](),controller[_0x474f('0x17')]);router[_0x474f('0x14')](_0x474f('0x18'),auth[_0x474f('0x8')](),controller[_0x474f('0x19')]);router[_0x474f('0x1a')](_0x474f('0xd'),auth['isAuthenticated'](),controller[_0x474f('0x1b')]);module['exports']=router;