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