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