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