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