a90f6cebc992444451b6300d55520c5dbc60ece3
[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 _0x1d40=['exports','multer','util','path','Router','../../components/auth/service','../../config/environment','./openchannelInteraction.controller','isAuthenticated','index','/describe','get','/:id','show','/:id/download','download','post','/:id/tags','openchannel','openchannelinteraction:addtags','openchannelinteraction:update','update','delete','tracked','openchannelinteraction:destroy','destroy','removeTags'];(function(_0x3517d9,_0x1e6703){var _0x29a2f4=function(_0x29efb9){while(--_0x29efb9){_0x3517d9['push'](_0x3517d9['shift']());}};_0x29a2f4(++_0x1e6703);}(_0x1d40,0x1b1));var _0x01d4=function(_0x4ccad7,_0x2daf62){_0x4ccad7=_0x4ccad7-0x0;var _0x3a1bc0=_0x1d40[_0x4ccad7];return _0x3a1bc0;};'use strict';var multer=require(_0x01d4('0x0'));var util=require(_0x01d4('0x1'));var path=require(_0x01d4('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x01d4('0x3')]();var auth=require(_0x01d4('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x01d4('0x5'));var controller=require(_0x01d4('0x6'));router['get']('/',auth[_0x01d4('0x7')](),controller[_0x01d4('0x8')]);router['get'](_0x01d4('0x9'),auth[_0x01d4('0x7')](),controller['describe']);router[_0x01d4('0xa')](_0x01d4('0xb'),auth[_0x01d4('0x7')](),controller[_0x01d4('0xc')]);router[_0x01d4('0xa')]('/:id/messages',auth[_0x01d4('0x7')](),controller['getMessages']);router[_0x01d4('0xa')](_0x01d4('0xd'),auth[_0x01d4('0x7')](),controller[_0x01d4('0xe')]);router[_0x01d4('0xf')]('/',auth[_0x01d4('0x7')](),controller['create']);router[_0x01d4('0xf')]('/:id/messages',auth['isAuthenticated'](),controller['addMessage']);router[_0x01d4('0xf')](_0x01d4('0x10'),auth[_0x01d4('0x7')](),interaction['tracked'](_0x01d4('0x11'),_0x01d4('0x12')),controller['addTags']);router['put'](_0x01d4('0xb'),auth[_0x01d4('0x7')](),interaction['tracked']('openchannel',_0x01d4('0x13')),controller[_0x01d4('0x14')]);router[_0x01d4('0x15')](_0x01d4('0xb'),auth[_0x01d4('0x7')](),interaction[_0x01d4('0x16')](_0x01d4('0x11'),_0x01d4('0x17')),controller[_0x01d4('0x18')]);router[_0x01d4('0x15')]('/:id/tags',auth[_0x01d4('0x7')](),controller[_0x01d4('0x19')]);module[_0x01d4('0x1a')]=router;