5115b64b1720abb1afb7aa522115fd53e23635b8
[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 _0x01bb=['index','/describe','describe','show','/:id/download','post','tracked','mail','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','get','isAuthenticated'];(function(_0x13dfef,_0xd52392){var _0x6ed896=function(_0x118184){while(--_0x118184){_0x13dfef['push'](_0x13dfef['shift']());}};_0x6ed896(++_0xd52392);}(_0x01bb,0x171));var _0xb01b=function(_0x523b7b,_0x425d30){_0x523b7b=_0x523b7b-0x0;var _0x108a85=_0x01bb[_0x523b7b];return _0x108a85;};'use strict';var multer=require(_0xb01b('0x0'));var util=require(_0xb01b('0x1'));var path=require(_0xb01b('0x2'));var timeout=require(_0xb01b('0x3'));var express=require(_0xb01b('0x4'));var router=express['Router']();var fs_extra=require(_0xb01b('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xb01b('0x6'));var config=require('../../config/environment');var controller=require('./mailMessage.controller');router[_0xb01b('0x7')]('/',auth[_0xb01b('0x8')](),controller[_0xb01b('0x9')]);router[_0xb01b('0x7')](_0xb01b('0xa'),auth[_0xb01b('0x8')](),controller[_0xb01b('0xb')]);router[_0xb01b('0x7')]('/:id',auth[_0xb01b('0x8')](),controller[_0xb01b('0xc')]);router[_0xb01b('0x7')](_0xb01b('0xd'),auth[_0xb01b('0x8')](),controller['download']);router[_0xb01b('0xe')]('/',auth[_0xb01b('0x8')](),interaction[_0xb01b('0xf')](_0xb01b('0x10'),'mailmessage:create'),controller[_0xb01b('0x11')]);router[_0xb01b('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xb01b('0x13')]);router[_0xb01b('0x12')](_0xb01b('0x14'),auth[_0xb01b('0x8')](),controller[_0xb01b('0x15')]);router[_0xb01b('0x12')](_0xb01b('0x16'),auth[_0xb01b('0x8')](),controller[_0xb01b('0x17')]);router[_0xb01b('0x18')]('/:id',auth[_0xb01b('0x8')](),controller[_0xb01b('0x19')]);module[_0xb01b('0x1a')]=router;