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