Built motion from commit b0a9a629.|2.6.33
[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 _0xc769=['/:id','show','/:id/messages','create','post','/:id/tags','openchannel','openchannelinteraction:addtags','addTags','put','tracked','update','delete','openchannelinteraction:destroy','destroy','util','path','Router','./openchannelInteraction.controller','get','isAuthenticated','index','describe'];(function(_0x5d3292,_0x13b181){var _0x413fad=function(_0x1b023b){while(--_0x1b023b){_0x5d3292['push'](_0x5d3292['shift']());}};_0x413fad(++_0x13b181);}(_0xc769,0xb0));var _0x9c76=function(_0x483793,_0x37dd5b){_0x483793=_0x483793-0x0;var _0x1ca493=_0xc769[_0x483793];return _0x1ca493;};'use strict';var multer=require('multer');var util=require(_0x9c76('0x0'));var path=require(_0x9c76('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9c76('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x9c76('0x3'));router[_0x9c76('0x4')]('/',auth[_0x9c76('0x5')](),controller[_0x9c76('0x6')]);router[_0x9c76('0x4')]('/describe',auth[_0x9c76('0x5')](),controller[_0x9c76('0x7')]);router[_0x9c76('0x4')](_0x9c76('0x8'),auth[_0x9c76('0x5')](),controller[_0x9c76('0x9')]);router[_0x9c76('0x4')](_0x9c76('0xa'),auth[_0x9c76('0x5')](),controller['getMessages']);router[_0x9c76('0x4')]('/:id/download',auth['isAuthenticated'](),controller['download']);router['post']('/',auth['isAuthenticated'](),controller[_0x9c76('0xb')]);router[_0x9c76('0xc')](_0x9c76('0xa'),auth[_0x9c76('0x5')](),controller['addMessage']);router[_0x9c76('0xc')](_0x9c76('0xd'),auth[_0x9c76('0x5')](),interaction['tracked'](_0x9c76('0xe'),_0x9c76('0xf')),controller[_0x9c76('0x10')]);router[_0x9c76('0x11')](_0x9c76('0x8'),auth['isAuthenticated'](),interaction[_0x9c76('0x12')](_0x9c76('0xe'),'openchannelinteraction:update'),controller[_0x9c76('0x13')]);router[_0x9c76('0x14')](_0x9c76('0x8'),auth[_0x9c76('0x5')](),interaction[_0x9c76('0x12')](_0x9c76('0xe'),_0x9c76('0x15')),controller[_0x9c76('0x16')]);router[_0x9c76('0x14')](_0x9c76('0xd'),auth[_0x9c76('0x5')](),controller['removeTags']);module['exports']=router;