Built motion from commit da617fac.|2.6.6
[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 _0x4d0e=['isAuthenticated','index','/describe','describe','show','/:id/messages','getMessages','download','post','create','/:id/tags','tracked','mail','mailinteraction:addtags','addTags','put','update','/:id','mailinteraction:destroy','delete','removeTags','exports','express','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get'];(function(_0x4b055c,_0x4b870b){var _0x4b62bb=function(_0x4884c2){while(--_0x4884c2){_0x4b055c['push'](_0x4b055c['shift']());}};_0x4b62bb(++_0x4b870b);}(_0x4d0e,0x15a));var _0xe4d0=function(_0xf60c6b,_0x4bc8e9){_0xf60c6b=_0xf60c6b-0x0;var _0x284605=_0x4d0e[_0xf60c6b];return _0x284605;};'use strict';var express=require(_0xe4d0('0x0'));var router=express['Router']();var auth=require(_0xe4d0('0x1'));var interaction=require(_0xe4d0('0x2'));var controller=require(_0xe4d0('0x3'));router[_0xe4d0('0x4')]('/',auth[_0xe4d0('0x5')](),controller[_0xe4d0('0x6')]);router[_0xe4d0('0x4')](_0xe4d0('0x7'),auth[_0xe4d0('0x5')](),controller[_0xe4d0('0x8')]);router[_0xe4d0('0x4')]('/:id',auth[_0xe4d0('0x5')](),controller[_0xe4d0('0x9')]);router['get'](_0xe4d0('0xa'),auth['isAuthenticated'](),controller[_0xe4d0('0xb')]);router[_0xe4d0('0x4')]('/:id/download',auth['isAuthenticated'](),controller[_0xe4d0('0xc')]);router[_0xe4d0('0xd')]('/',auth[_0xe4d0('0x5')](),controller[_0xe4d0('0xe')]);router['post'](_0xe4d0('0xa'),auth[_0xe4d0('0x5')](),controller['addMessage']);router[_0xe4d0('0xd')](_0xe4d0('0xf'),auth[_0xe4d0('0x5')](),interaction[_0xe4d0('0x10')](_0xe4d0('0x11'),_0xe4d0('0x12')),controller[_0xe4d0('0x13')]);router[_0xe4d0('0x14')]('/:id',auth['isAuthenticated'](),interaction[_0xe4d0('0x10')]('mail','mailinteraction:update'),controller[_0xe4d0('0x15')]);router['delete'](_0xe4d0('0x16'),auth[_0xe4d0('0x5')](),interaction[_0xe4d0('0x10')](_0xe4d0('0x11'),_0xe4d0('0x17')),controller['destroy']);router[_0xe4d0('0x18')](_0xe4d0('0xf'),auth[_0xe4d0('0x5')](),controller[_0xe4d0('0x19')]);module[_0xe4d0('0x1a')]=router;