Built motion from commit fa4c4286.|2.6.29
[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 _0x1e33=['/:id/messages','getMessages','/:id/download','download','post','create','/:id/tags','tracked','mail','mailinteraction:addtags','addTags','put','/:id','mailinteraction:update','update','mailinteraction:destroy','destroy','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','index','/describe','isAuthenticated','describe'];(function(_0x26d778,_0x26de9f){var _0x2c02ac=function(_0x40d1d9){while(--_0x40d1d9){_0x26d778['push'](_0x26d778['shift']());}};_0x2c02ac(++_0x26de9f);}(_0x1e33,0x1ee));var _0x31e3=function(_0x55e3b9,_0x276fe6){_0x55e3b9=_0x55e3b9-0x0;var _0x16414c=_0x1e33[_0x55e3b9];return _0x16414c;};'use strict';var express=require(_0x31e3('0x0'));var router=express[_0x31e3('0x1')]();var auth=require(_0x31e3('0x2'));var interaction=require(_0x31e3('0x3'));var controller=require(_0x31e3('0x4'));router[_0x31e3('0x5')]('/',auth['isAuthenticated'](),controller[_0x31e3('0x6')]);router[_0x31e3('0x5')](_0x31e3('0x7'),auth[_0x31e3('0x8')](),controller[_0x31e3('0x9')]);router[_0x31e3('0x5')]('/:id',auth[_0x31e3('0x8')](),controller['show']);router[_0x31e3('0x5')](_0x31e3('0xa'),auth[_0x31e3('0x8')](),controller[_0x31e3('0xb')]);router[_0x31e3('0x5')](_0x31e3('0xc'),auth[_0x31e3('0x8')](),controller[_0x31e3('0xd')]);router[_0x31e3('0xe')]('/',auth[_0x31e3('0x8')](),controller[_0x31e3('0xf')]);router[_0x31e3('0xe')]('/:id/messages',auth['isAuthenticated'](),controller['addMessage']);router[_0x31e3('0xe')](_0x31e3('0x10'),auth[_0x31e3('0x8')](),interaction[_0x31e3('0x11')](_0x31e3('0x12'),_0x31e3('0x13')),controller[_0x31e3('0x14')]);router[_0x31e3('0x15')](_0x31e3('0x16'),auth[_0x31e3('0x8')](),interaction['tracked'](_0x31e3('0x12'),_0x31e3('0x17')),controller[_0x31e3('0x18')]);router['delete'](_0x31e3('0x16'),auth[_0x31e3('0x8')](),interaction[_0x31e3('0x11')](_0x31e3('0x12'),_0x31e3('0x19')),controller[_0x31e3('0x1a')]);router['delete'](_0x31e3('0x10'),auth[_0x31e3('0x8')](),controller['removeTags']);module[_0x31e3('0x1b')]=router;