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