Built motion from commit 5b761a7b.|2.5.36
[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 _0x8d91=['./openchannelInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id/messages','/:id/download','download','create','post','addMessage','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','addTags','put','/:id','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xe17f73,_0x270de8){var _0x585156=function(_0x255610){while(--_0x255610){_0xe17f73['push'](_0xe17f73['shift']());}};_0x585156(++_0x270de8);}(_0x8d91,0xe9));var _0x18d9=function(_0x53de02,_0x5b0a13){_0x53de02=_0x53de02-0x0;var _0xb4b4e=_0x8d91[_0x53de02];return _0xb4b4e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x18d9('0x0'));var timeout=require(_0x18d9('0x1'));var express=require(_0x18d9('0x2'));var router=express['Router']();var fs_extra=require(_0x18d9('0x3'));var auth=require(_0x18d9('0x4'));var interaction=require(_0x18d9('0x5'));var config=require(_0x18d9('0x6'));var controller=require(_0x18d9('0x7'));router[_0x18d9('0x8')]('/',auth[_0x18d9('0x9')](),controller[_0x18d9('0xa')]);router[_0x18d9('0x8')](_0x18d9('0xb'),auth['isAuthenticated'](),controller[_0x18d9('0xc')]);router['get']('/:id',auth[_0x18d9('0x9')](),controller['show']);router[_0x18d9('0x8')](_0x18d9('0xd'),auth[_0x18d9('0x9')](),controller['getMessages']);router[_0x18d9('0x8')](_0x18d9('0xe'),auth['isAuthenticated'](),controller[_0x18d9('0xf')]);router['post']('/',auth[_0x18d9('0x9')](),controller[_0x18d9('0x10')]);router[_0x18d9('0x11')](_0x18d9('0xd'),auth['isAuthenticated'](),controller[_0x18d9('0x12')]);router[_0x18d9('0x11')](_0x18d9('0x13'),auth[_0x18d9('0x9')](),interaction[_0x18d9('0x14')](_0x18d9('0x15'),_0x18d9('0x16')),controller[_0x18d9('0x17')]);router[_0x18d9('0x18')](_0x18d9('0x19'),auth[_0x18d9('0x9')](),interaction[_0x18d9('0x14')](_0x18d9('0x15'),_0x18d9('0x1a')),controller[_0x18d9('0x1b')]);router[_0x18d9('0x1c')](_0x18d9('0x19'),auth[_0x18d9('0x9')](),interaction['tracked'](_0x18d9('0x15'),_0x18d9('0x1d')),controller['destroy']);router['delete'](_0x18d9('0x13'),auth['isAuthenticated'](),controller['removeTags']);module['exports']=router;