Built motion from commit 10af8726.|2.6.34
[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 _0x078f=['update','delete','destroy','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','/describe','describe','/:id','/:id/messages','getMessages','download','create','addMessage','/:id/tags','tracked','mail','mailinteraction:addtags','mailinteraction:update'];(function(_0x352e0c,_0x2e77ef){var _0x5c3378=function(_0x2f4ebb){while(--_0x2f4ebb){_0x352e0c['push'](_0x352e0c['shift']());}};_0x5c3378(++_0x2e77ef);}(_0x078f,0xdc));var _0xf078=function(_0x581130,_0x49486f){_0x581130=_0x581130-0x0;var _0x44e0e5=_0x078f[_0x581130];return _0x44e0e5;};'use strict';var express=require(_0xf078('0x0'));var router=express[_0xf078('0x1')]();var auth=require(_0xf078('0x2'));var interaction=require(_0xf078('0x3'));var controller=require(_0xf078('0x4'));router[_0xf078('0x5')]('/',auth[_0xf078('0x6')](),controller['index']);router[_0xf078('0x5')](_0xf078('0x7'),auth['isAuthenticated'](),controller[_0xf078('0x8')]);router['get'](_0xf078('0x9'),auth[_0xf078('0x6')](),controller['show']);router['get'](_0xf078('0xa'),auth[_0xf078('0x6')](),controller[_0xf078('0xb')]);router[_0xf078('0x5')]('/:id/download',auth[_0xf078('0x6')](),controller[_0xf078('0xc')]);router['post']('/',auth[_0xf078('0x6')](),controller[_0xf078('0xd')]);router['post'](_0xf078('0xa'),auth[_0xf078('0x6')](),controller[_0xf078('0xe')]);router['post'](_0xf078('0xf'),auth[_0xf078('0x6')](),interaction[_0xf078('0x10')](_0xf078('0x11'),_0xf078('0x12')),controller['addTags']);router['put']('/:id',auth[_0xf078('0x6')](),interaction[_0xf078('0x10')]('mail',_0xf078('0x13')),controller[_0xf078('0x14')]);router[_0xf078('0x15')](_0xf078('0x9'),auth[_0xf078('0x6')](),interaction['tracked']('mail','mailinteraction:destroy'),controller[_0xf078('0x16')]);router['delete'](_0xf078('0xf'),auth[_0xf078('0x6')](),controller['removeTags']);module[_0xf078('0x17')]=router;