Built motion from commit (unavailable).|2.5.23
[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 _0x1505=['show','/:id/messages','getMessages','/:id/download','download','create','post','/:id/tags','tracked','mailinteraction:addtags','put','mail','mailinteraction:update','delete','mailinteraction:destroy','destroy','path','connect-timeout','../../components/interaction/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','/:id'];(function(_0x3b9938,_0x22869a){var _0x2c20d5=function(_0xd5915f){while(--_0xd5915f){_0x3b9938['push'](_0x3b9938['shift']());}};_0x2c20d5(++_0x22869a);}(_0x1505,0x1d8));var _0x5150=function(_0x3b9b22,_0x2a8a25){_0x3b9b22=_0x3b9b22-0x0;var _0x1afa16=_0x1505[_0x3b9b22];return _0x1afa16;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5150('0x0'));var timeout=require(_0x5150('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x5150('0x2'));var config=require(_0x5150('0x3'));var controller=require(_0x5150('0x4'));router[_0x5150('0x5')]('/',auth[_0x5150('0x6')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x5150('0x5')](_0x5150('0x7'),auth[_0x5150('0x6')](),controller[_0x5150('0x8')]);router[_0x5150('0x5')](_0x5150('0x9'),auth[_0x5150('0x6')](),controller[_0x5150('0xa')]);router[_0x5150('0x5')](_0x5150('0xb'),auth['isAuthenticated'](),controller[_0x5150('0xc')]);router['post']('/',auth[_0x5150('0x6')](),controller[_0x5150('0xd')]);router[_0x5150('0xe')](_0x5150('0x9'),auth[_0x5150('0x6')](),controller['addMessage']);router[_0x5150('0xe')](_0x5150('0xf'),auth[_0x5150('0x6')](),interaction[_0x5150('0x10')]('mail',_0x5150('0x11')),controller['addTags']);router[_0x5150('0x12')](_0x5150('0x7'),auth[_0x5150('0x6')](),interaction[_0x5150('0x10')](_0x5150('0x13'),_0x5150('0x14')),controller['update']);router[_0x5150('0x15')](_0x5150('0x7'),auth[_0x5150('0x6')](),interaction[_0x5150('0x10')]('mail',_0x5150('0x16')),controller[_0x5150('0x17')]);router[_0x5150('0x15')](_0x5150('0xf'),auth[_0x5150('0x6')](),controller['removeTags']);module['exports']=router;