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