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