Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / mailInteraction / 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 _0x3c7e=['/:id/tags','tracked','addTags','put','mailinteraction:update','update','delete','mailinteraction:destroy','removeTags','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','/:id/download','download','create','post','addMessage'];(function(_0x12f918,_0x3872ab){var _0x29857c=function(_0xf0ad7f){while(--_0xf0ad7f){_0x12f918['push'](_0x12f918['shift']());}};_0x29857c(++_0x3872ab);}(_0x3c7e,0xdb));var _0xe3c7=function(_0x5cd2ab,_0x2d162b){_0x5cd2ab=_0x5cd2ab-0x0;var _0x4663db=_0x3c7e[_0x5cd2ab];return _0x4663db;};'use strict';var multer=require('multer');var util=require(_0xe3c7('0x0'));var path=require('path');var timeout=require(_0xe3c7('0x1'));var express=require(_0xe3c7('0x2'));var router=express[_0xe3c7('0x3')]();var auth=require(_0xe3c7('0x4'));var interaction=require(_0xe3c7('0x5'));var config=require(_0xe3c7('0x6'));var controller=require(_0xe3c7('0x7'));router[_0xe3c7('0x8')]('/',auth[_0xe3c7('0x9')](),controller[_0xe3c7('0xa')]);router[_0xe3c7('0x8')](_0xe3c7('0xb'),auth[_0xe3c7('0x9')](),controller[_0xe3c7('0xc')]);router[_0xe3c7('0x8')](_0xe3c7('0xd'),auth[_0xe3c7('0x9')](),controller[_0xe3c7('0xe')]);router[_0xe3c7('0x8')](_0xe3c7('0xf'),auth['isAuthenticated'](),controller['getMessages']);router['get'](_0xe3c7('0x10'),auth[_0xe3c7('0x9')](),controller[_0xe3c7('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xe3c7('0x12')]);router[_0xe3c7('0x13')](_0xe3c7('0xf'),auth[_0xe3c7('0x9')](),controller[_0xe3c7('0x14')]);router[_0xe3c7('0x13')](_0xe3c7('0x15'),auth['isAuthenticated'](),interaction[_0xe3c7('0x16')]('mail','mailinteraction:addtags'),controller[_0xe3c7('0x17')]);router[_0xe3c7('0x18')](_0xe3c7('0xd'),auth['isAuthenticated'](),interaction[_0xe3c7('0x16')]('mail',_0xe3c7('0x19')),controller[_0xe3c7('0x1a')]);router[_0xe3c7('0x1b')](_0xe3c7('0xd'),auth[_0xe3c7('0x9')](),interaction[_0xe3c7('0x16')]('mail',_0xe3c7('0x1c')),controller['destroy']);router[_0xe3c7('0x1b')](_0xe3c7('0x15'),auth[_0xe3c7('0x9')](),controller[_0xe3c7('0x1d')]);module['exports']=router;