df3e627888a34d93ae9d1629ed0e717ea1ffea02
[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 _0x90fe=['get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','addMessage','tracked','mail','mailinteraction:addtags','addTags','put','mailinteraction:update','update','delete','destroy','removeTags','exports','express','./mailInteraction.controller'];(function(_0x568753,_0x1d4c4b){var _0x1def3f=function(_0x7cb859){while(--_0x7cb859){_0x568753['push'](_0x568753['shift']());}};_0x1def3f(++_0x1d4c4b);}(_0x90fe,0x66));var _0xe90f=function(_0x3af69a,_0x4b44bc){_0x3af69a=_0x3af69a-0x0;var _0x11d723=_0x90fe[_0x3af69a];return _0x11d723;};'use strict';var express=require(_0xe90f('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var controller=require(_0xe90f('0x1'));router[_0xe90f('0x2')]('/',auth[_0xe90f('0x3')](),controller[_0xe90f('0x4')]);router[_0xe90f('0x2')](_0xe90f('0x5'),auth[_0xe90f('0x3')](),controller[_0xe90f('0x6')]);router[_0xe90f('0x2')](_0xe90f('0x7'),auth[_0xe90f('0x3')](),controller[_0xe90f('0x8')]);router[_0xe90f('0x2')](_0xe90f('0x9'),auth[_0xe90f('0x3')](),controller[_0xe90f('0xa')]);router['get'](_0xe90f('0xb'),auth['isAuthenticated'](),controller[_0xe90f('0xc')]);router[_0xe90f('0xd')]('/',auth[_0xe90f('0x3')](),controller['create']);router[_0xe90f('0xd')](_0xe90f('0x9'),auth[_0xe90f('0x3')](),controller[_0xe90f('0xe')]);router[_0xe90f('0xd')]('/:id/tags',auth[_0xe90f('0x3')](),interaction[_0xe90f('0xf')](_0xe90f('0x10'),_0xe90f('0x11')),controller[_0xe90f('0x12')]);router[_0xe90f('0x13')]('/:id',auth[_0xe90f('0x3')](),interaction['tracked'](_0xe90f('0x10'),_0xe90f('0x14')),controller[_0xe90f('0x15')]);router[_0xe90f('0x16')](_0xe90f('0x7'),auth[_0xe90f('0x3')](),interaction[_0xe90f('0xf')](_0xe90f('0x10'),'mailinteraction:destroy'),controller[_0xe90f('0x17')]);router[_0xe90f('0x16')]('/:id/tags',auth['isAuthenticated'](),controller[_0xe90f('0x18')]);module[_0xe90f('0x19')]=router;