199324a2b45ce190c3ad18eddc15d5092f3d6486
[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 _0x6147=['./openchannelInteraction.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','tracked','openchannel','openchannelinteraction:addtags','addTags','openchannelinteraction:update','update','delete','destroy','removeTags','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x14d08c,_0x5b7091){var _0x5f5bd9=function(_0x496dc7){while(--_0x496dc7){_0x14d08c['push'](_0x14d08c['shift']());}};_0x5f5bd9(++_0x5b7091);}(_0x6147,0x157));var _0x7614=function(_0x2aea9e,_0x1f587f){_0x2aea9e=_0x2aea9e-0x0;var _0x430b92=_0x6147[_0x2aea9e];return _0x430b92;};'use strict';var multer=require(_0x7614('0x0'));var util=require(_0x7614('0x1'));var path=require(_0x7614('0x2'));var timeout=require(_0x7614('0x3'));var express=require(_0x7614('0x4'));var router=express[_0x7614('0x5')]();var auth=require(_0x7614('0x6'));var interaction=require(_0x7614('0x7'));var config=require(_0x7614('0x8'));var controller=require(_0x7614('0x9'));router[_0x7614('0xa')]('/',auth[_0x7614('0xb')](),controller['index']);router[_0x7614('0xa')](_0x7614('0xc'),auth[_0x7614('0xb')](),controller[_0x7614('0xd')]);router[_0x7614('0xa')](_0x7614('0xe'),auth[_0x7614('0xb')](),controller[_0x7614('0xf')]);router[_0x7614('0xa')](_0x7614('0x10'),auth[_0x7614('0xb')](),controller[_0x7614('0x11')]);router[_0x7614('0xa')](_0x7614('0x12'),auth[_0x7614('0xb')](),controller[_0x7614('0x13')]);router[_0x7614('0x14')]('/',auth[_0x7614('0xb')](),controller[_0x7614('0x15')]);router['post']('/:id/messages',auth[_0x7614('0xb')](),controller[_0x7614('0x16')]);router[_0x7614('0x14')]('/:id/tags',auth[_0x7614('0xb')](),interaction[_0x7614('0x17')](_0x7614('0x18'),_0x7614('0x19')),controller[_0x7614('0x1a')]);router['put'](_0x7614('0xe'),auth[_0x7614('0xb')](),interaction['tracked'](_0x7614('0x18'),_0x7614('0x1b')),controller[_0x7614('0x1c')]);router[_0x7614('0x1d')](_0x7614('0xe'),auth[_0x7614('0xb')](),interaction[_0x7614('0x17')](_0x7614('0x18'),'openchannelinteraction:destroy'),controller[_0x7614('0x1e')]);router['delete']('/:id/tags',auth['isAuthenticated'](),controller[_0x7614('0x1f')]);module['exports']=router;