35a321d75abec4a7cfd98724a65de9591a677f8a
[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 _0x0c3d=['show','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','/:id/tags','mail','mailinteraction:addtags','addTags','put','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','removeTags','exports','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','index','describe','/:id'];(function(_0x1c88f9,_0x211646){var _0x1779f7=function(_0x1dc48e){while(--_0x1dc48e){_0x1c88f9['push'](_0x1c88f9['shift']());}};_0x1779f7(++_0x211646);}(_0x0c3d,0x1a9));var _0xd0c3=function(_0x42e8f3,_0x5c8dba){_0x42e8f3=_0x42e8f3-0x0;var _0x47feab=_0x0c3d[_0x42e8f3];return _0x47feab;};'use strict';var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xd0c3('0x0'));var controller=require(_0xd0c3('0x1'));router[_0xd0c3('0x2')]('/',auth[_0xd0c3('0x3')](),controller[_0xd0c3('0x4')]);router[_0xd0c3('0x2')]('/describe',auth['isAuthenticated'](),controller[_0xd0c3('0x5')]);router[_0xd0c3('0x2')](_0xd0c3('0x6'),auth['isAuthenticated'](),controller[_0xd0c3('0x7')]);router[_0xd0c3('0x2')](_0xd0c3('0x8'),auth[_0xd0c3('0x3')](),controller[_0xd0c3('0x9')]);router['get'](_0xd0c3('0xa'),auth[_0xd0c3('0x3')](),controller[_0xd0c3('0xb')]);router[_0xd0c3('0xc')]('/',auth[_0xd0c3('0x3')](),controller[_0xd0c3('0xd')]);router[_0xd0c3('0xc')]('/:id/messages',auth[_0xd0c3('0x3')](),controller[_0xd0c3('0xe')]);router['post'](_0xd0c3('0xf'),auth['isAuthenticated'](),interaction['tracked'](_0xd0c3('0x10'),_0xd0c3('0x11')),controller[_0xd0c3('0x12')]);router[_0xd0c3('0x13')](_0xd0c3('0x6'),auth['isAuthenticated'](),interaction['tracked'](_0xd0c3('0x10'),_0xd0c3('0x14')),controller[_0xd0c3('0x15')]);router[_0xd0c3('0x16')](_0xd0c3('0x6'),auth[_0xd0c3('0x3')](),interaction['tracked'](_0xd0c3('0x10'),_0xd0c3('0x17')),controller[_0xd0c3('0x18')]);router[_0xd0c3('0x16')](_0xd0c3('0xf'),auth[_0xd0c3('0x3')](),controller[_0xd0c3('0x19')]);module[_0xd0c3('0x1a')]=router;