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