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