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