Built motion from commit (unavailable).|2.5.14
[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 _0x75f4=['path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','post','addMessage','tracked','openchannel','addTags','put','openchannelinteraction:update','delete','openchannelinteraction:destroy','/:id/tags','removeTags','exports','multer','util'];(function(_0xc753c8,_0x5627ff){var _0xd02f5c=function(_0xfb552e){while(--_0xfb552e){_0xc753c8['push'](_0xc753c8['shift']());}};_0xd02f5c(++_0x5627ff);}(_0x75f4,0x12a));var _0x475f=function(_0x386c3e,_0x44a375){_0x386c3e=_0x386c3e-0x0;var _0x4b8e13=_0x75f4[_0x386c3e];return _0x4b8e13;};'use strict';var multer=require(_0x475f('0x0'));var util=require(_0x475f('0x1'));var path=require(_0x475f('0x2'));var timeout=require(_0x475f('0x3'));var express=require(_0x475f('0x4'));var router=express['Router']();var auth=require(_0x475f('0x5'));var interaction=require(_0x475f('0x6'));var config=require(_0x475f('0x7'));var controller=require('./openchannelInteraction.controller');router[_0x475f('0x8')]('/',auth[_0x475f('0x9')](),controller[_0x475f('0xa')]);router[_0x475f('0x8')](_0x475f('0xb'),auth[_0x475f('0x9')](),controller[_0x475f('0xc')]);router[_0x475f('0x8')](_0x475f('0xd'),auth[_0x475f('0x9')](),controller[_0x475f('0xe')]);router[_0x475f('0x8')](_0x475f('0xf'),auth[_0x475f('0x9')](),controller[_0x475f('0x10')]);router[_0x475f('0x8')](_0x475f('0x11'),auth['isAuthenticated'](),controller['download']);router[_0x475f('0x12')]('/',auth[_0x475f('0x9')](),controller['create']);router[_0x475f('0x12')]('/:id/messages',auth[_0x475f('0x9')](),controller[_0x475f('0x13')]);router[_0x475f('0x12')]('/:id/tags',auth['isAuthenticated'](),interaction[_0x475f('0x14')](_0x475f('0x15'),'openchannelinteraction:addtags'),controller[_0x475f('0x16')]);router[_0x475f('0x17')]('/:id',auth['isAuthenticated'](),interaction['tracked'](_0x475f('0x15'),_0x475f('0x18')),controller['update']);router[_0x475f('0x19')](_0x475f('0xd'),auth[_0x475f('0x9')](),interaction[_0x475f('0x14')](_0x475f('0x15'),_0x475f('0x1a')),controller['destroy']);router['delete'](_0x475f('0x1b'),auth['isAuthenticated'](),controller[_0x475f('0x1c')]);module[_0x475f('0x1d')]=router;