e5e93dba55f38ec05c4486f4f9cd61953a489634
[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 _0x1a31=['openchannelinteraction:addtags','addTags','put','/:id','openchannel','delete','destroy','removeTags','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./openchannelInteraction.controller','index','get','/describe','describe','show','isAuthenticated','getMessages','download','post','create','/:id/messages','/:id/tags','tracked'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1a31,0xe2));var _0x11a3=function(_0x47a349,_0x4699d9){_0x47a349=_0x47a349-0x0;var _0x18ab75=_0x1a31[_0x47a349];return _0x18ab75;};'use strict';var multer=require(_0x11a3('0x0'));var util=require('util');var path=require(_0x11a3('0x1'));var timeout=require(_0x11a3('0x2'));var express=require(_0x11a3('0x3'));var router=express[_0x11a3('0x4')]();var fs_extra=require(_0x11a3('0x5'));var auth=require(_0x11a3('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x11a3('0x7'));var controller=require(_0x11a3('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x11a3('0x9')]);router[_0x11a3('0xa')](_0x11a3('0xb'),auth['isAuthenticated'](),controller[_0x11a3('0xc')]);router[_0x11a3('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x11a3('0xd')]);router[_0x11a3('0xa')]('/:id/messages',auth[_0x11a3('0xe')](),controller[_0x11a3('0xf')]);router[_0x11a3('0xa')]('/:id/download',auth['isAuthenticated'](),controller[_0x11a3('0x10')]);router[_0x11a3('0x11')]('/',auth[_0x11a3('0xe')](),controller[_0x11a3('0x12')]);router[_0x11a3('0x11')](_0x11a3('0x13'),auth[_0x11a3('0xe')](),controller['addMessage']);router[_0x11a3('0x11')](_0x11a3('0x14'),auth['isAuthenticated'](),interaction[_0x11a3('0x15')]('openchannel',_0x11a3('0x16')),controller[_0x11a3('0x17')]);router[_0x11a3('0x18')](_0x11a3('0x19'),auth['isAuthenticated'](),interaction[_0x11a3('0x15')](_0x11a3('0x1a'),'openchannelinteraction:update'),controller['update']);router[_0x11a3('0x1b')](_0x11a3('0x19'),auth[_0x11a3('0xe')](),interaction[_0x11a3('0x15')](_0x11a3('0x1a'),'openchannelinteraction:destroy'),controller[_0x11a3('0x1c')]);router[_0x11a3('0x1b')](_0x11a3('0x14'),auth[_0x11a3('0xe')](),controller[_0x11a3('0x1d')]);module[_0x11a3('0x1e')]=router;