c617f656ee90a2dcc02d30b4c174a3ee4b33bf44
[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 _0x1460=['/:id','/:id/messages','getMessages','/:id/download','download','post','addMessage','tracked','openchannel','addTags','put','openchannelinteraction:update','update','delete','destroy','/:id/tags','removeTags','exports','multer','util','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','describe'];(function(_0x1233a7,_0x3aeb2d){var _0x2fced1=function(_0x3c8c58){while(--_0x3c8c58){_0x1233a7['push'](_0x1233a7['shift']());}};_0x2fced1(++_0x3aeb2d);}(_0x1460,0x1e6));var _0x0146=function(_0xe9ada0,_0x4d4bcc){_0xe9ada0=_0xe9ada0-0x0;var _0x21a1ca=_0x1460[_0xe9ada0];return _0x21a1ca;};'use strict';var multer=require(_0x0146('0x0'));var util=require(_0x0146('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0146('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x0146('0x3'));var interaction=require(_0x0146('0x4'));var config=require('../../config/environment');var controller=require('./openchannelInteraction.controller');router[_0x0146('0x5')]('/',auth[_0x0146('0x6')](),controller['index']);router[_0x0146('0x5')]('/describe',auth[_0x0146('0x6')](),controller[_0x0146('0x7')]);router['get'](_0x0146('0x8'),auth['isAuthenticated'](),controller['show']);router['get'](_0x0146('0x9'),auth[_0x0146('0x6')](),controller[_0x0146('0xa')]);router[_0x0146('0x5')](_0x0146('0xb'),auth[_0x0146('0x6')](),controller[_0x0146('0xc')]);router[_0x0146('0xd')]('/',auth[_0x0146('0x6')](),controller['create']);router[_0x0146('0xd')](_0x0146('0x9'),auth[_0x0146('0x6')](),controller[_0x0146('0xe')]);router[_0x0146('0xd')]('/:id/tags',auth['isAuthenticated'](),interaction[_0x0146('0xf')](_0x0146('0x10'),'openchannelinteraction:addtags'),controller[_0x0146('0x11')]);router[_0x0146('0x12')](_0x0146('0x8'),auth[_0x0146('0x6')](),interaction[_0x0146('0xf')]('openchannel',_0x0146('0x13')),controller[_0x0146('0x14')]);router[_0x0146('0x15')](_0x0146('0x8'),auth[_0x0146('0x6')](),interaction[_0x0146('0xf')](_0x0146('0x10'),'openchannelinteraction:destroy'),controller[_0x0146('0x16')]);router[_0x0146('0x15')](_0x0146('0x17'),auth[_0x0146('0x6')](),controller[_0x0146('0x18')]);module[_0x0146('0x19')]=router;