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