e3804a07c5c63ae447cac9bc8d28c39de5c49f17
[motion2.git] / server / api / openchannelInteraction / 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 _0x6096=['describe','isAuthenticated','show','/:id/messages','/:id/download','post','create','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','openchannelinteraction:update','delete','openchannelinteraction:destroy','destroy','removeTags','exports','multer','util','connect-timeout','Router','fs-extra','../../config/environment','./openchannelInteraction.controller','get','index'];(function(_0x1a8f86,_0x5ed9c4){var _0x20d876=function(_0x596e1b){while(--_0x596e1b){_0x1a8f86['push'](_0x1a8f86['shift']());}};_0x20d876(++_0x5ed9c4);}(_0x6096,0x17d));var _0x6609=function(_0x1a81ed,_0x16d17d){_0x1a81ed=_0x1a81ed-0x0;var _0x5d9db0=_0x6096[_0x1a81ed];return _0x5d9db0;};'use strict';var multer=require(_0x6609('0x0'));var util=require(_0x6609('0x1'));var path=require('path');var timeout=require(_0x6609('0x2'));var express=require('express');var router=express[_0x6609('0x3')]();var fs_extra=require(_0x6609('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x6609('0x5'));var controller=require(_0x6609('0x6'));router[_0x6609('0x7')]('/',auth['isAuthenticated'](),controller[_0x6609('0x8')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x6609('0x9')]);router[_0x6609('0x7')]('/:id',auth[_0x6609('0xa')](),controller[_0x6609('0xb')]);router[_0x6609('0x7')](_0x6609('0xc'),auth['isAuthenticated'](),controller['getMessages']);router['get'](_0x6609('0xd'),auth[_0x6609('0xa')](),controller['download']);router[_0x6609('0xe')]('/',auth[_0x6609('0xa')](),controller[_0x6609('0xf')]);router[_0x6609('0xe')](_0x6609('0xc'),auth[_0x6609('0xa')](),controller['addMessage']);router['post'](_0x6609('0x10'),auth[_0x6609('0xa')](),interaction[_0x6609('0x11')](_0x6609('0x12'),_0x6609('0x13')),controller['addTags']);router['put']('/:id',auth[_0x6609('0xa')](),interaction['tracked'](_0x6609('0x12'),_0x6609('0x14')),controller['update']);router[_0x6609('0x15')]('/:id',auth[_0x6609('0xa')](),interaction[_0x6609('0x11')](_0x6609('0x12'),_0x6609('0x16')),controller[_0x6609('0x17')]);router['delete'](_0x6609('0x10'),auth['isAuthenticated'](),controller[_0x6609('0x18')]);module[_0x6609('0x19')]=router;