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