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 _0x9688=['describe','/:id','show','/:id/messages','download','post','addMessage','/:id/tags','tracked','mail','mailinteraction:addtags','addTags','put','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','removeTags','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','index'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x9688,0xce));var _0x8968=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x9688[_0x2641f9];return _0x585741;};'use strict';var multer=require('multer');var util=require(_0x8968('0x0'));var path=require(_0x8968('0x1'));var timeout=require(_0x8968('0x2'));var express=require(_0x8968('0x3'));var router=express[_0x8968('0x4')]();var auth=require(_0x8968('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x8968('0x6'));var controller=require(_0x8968('0x7'));router[_0x8968('0x8')]('/',auth[_0x8968('0x9')](),controller[_0x8968('0xa')]);router['get']('/describe',auth[_0x8968('0x9')](),controller[_0x8968('0xb')]);router['get'](_0x8968('0xc'),auth[_0x8968('0x9')](),controller[_0x8968('0xd')]);router[_0x8968('0x8')](_0x8968('0xe'),auth[_0x8968('0x9')](),controller['getMessages']);router[_0x8968('0x8')]('/:id/download',auth[_0x8968('0x9')](),controller[_0x8968('0xf')]);router[_0x8968('0x10')]('/',auth[_0x8968('0x9')](),controller['create']);router[_0x8968('0x10')](_0x8968('0xe'),auth['isAuthenticated'](),controller[_0x8968('0x11')]);router[_0x8968('0x10')](_0x8968('0x12'),auth[_0x8968('0x9')](),interaction[_0x8968('0x13')](_0x8968('0x14'),_0x8968('0x15')),controller[_0x8968('0x16')]);router[_0x8968('0x17')](_0x8968('0xc'),auth[_0x8968('0x9')](),interaction['tracked'](_0x8968('0x14'),_0x8968('0x18')),controller[_0x8968('0x19')]);router[_0x8968('0x1a')](_0x8968('0xc'),auth[_0x8968('0x9')](),interaction[_0x8968('0x13')](_0x8968('0x14'),_0x8968('0x1b')),controller[_0x8968('0x1c')]);router[_0x8968('0x1a')](_0x8968('0x12'),auth[_0x8968('0x9')](),controller[_0x8968('0x1d')]);module[_0x8968('0x1e')]=router;