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