Built motion from commit (unavailable).|2.5.31
[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 _0x1732=['/:id/tags','tracked','mail','mailinteraction:addtags','put','/:id','mailinteraction:update','update','delete','mailinteraction:destroy','removeTags','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','/describe','describe','show','/:id/messages','getMessages','/:id/download','download','create','post'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x1732,0x1db));var _0x2173=function(_0x40a0bb,_0xe4fa71){_0x40a0bb=_0x40a0bb-0x0;var _0x16bd72=_0x1732[_0x40a0bb];return _0x16bd72;};'use strict';var multer=require(_0x2173('0x0'));var util=require(_0x2173('0x1'));var path=require('path');var timeout=require(_0x2173('0x2'));var express=require(_0x2173('0x3'));var router=express[_0x2173('0x4')]();var fs_extra=require(_0x2173('0x5'));var auth=require(_0x2173('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./mailInteraction.controller');router[_0x2173('0x7')]('/',auth[_0x2173('0x8')](),controller['index']);router['get'](_0x2173('0x9'),auth[_0x2173('0x8')](),controller[_0x2173('0xa')]);router[_0x2173('0x7')]('/:id',auth[_0x2173('0x8')](),controller[_0x2173('0xb')]);router[_0x2173('0x7')](_0x2173('0xc'),auth['isAuthenticated'](),controller[_0x2173('0xd')]);router[_0x2173('0x7')](_0x2173('0xe'),auth[_0x2173('0x8')](),controller[_0x2173('0xf')]);router['post']('/',auth[_0x2173('0x8')](),controller[_0x2173('0x10')]);router[_0x2173('0x11')](_0x2173('0xc'),auth[_0x2173('0x8')](),controller['addMessage']);router[_0x2173('0x11')](_0x2173('0x12'),auth[_0x2173('0x8')](),interaction[_0x2173('0x13')](_0x2173('0x14'),_0x2173('0x15')),controller['addTags']);router[_0x2173('0x16')](_0x2173('0x17'),auth[_0x2173('0x8')](),interaction[_0x2173('0x13')](_0x2173('0x14'),_0x2173('0x18')),controller[_0x2173('0x19')]);router[_0x2173('0x1a')](_0x2173('0x17'),auth[_0x2173('0x8')](),interaction[_0x2173('0x13')](_0x2173('0x14'),_0x2173('0x1b')),controller['destroy']);router['delete'](_0x2173('0x12'),auth[_0x2173('0x8')](),controller[_0x2173('0x1c')]);module['exports']=router;