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