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