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