2136f3e370c86b8f1d3619f0827548e9b46a42f1
[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 _0xa91f=['addTags','put','/:id','openchannelinteraction:update','update','delete','tracked','openchannelinteraction:destroy','removeTags','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','/describe','show','/:id/messages','getMessages','download','create','addMessage','post','/:id/tags','openchannel','openchannelinteraction:addtags'];(function(_0x437626,_0xa482d1){var _0x50aa4a=function(_0x4ca213){while(--_0x4ca213){_0x437626['push'](_0x437626['shift']());}};_0x50aa4a(++_0xa482d1);}(_0xa91f,0x12a));var _0xfa91=function(_0x3be309,_0x1a2e45){_0x3be309=_0x3be309-0x0;var _0x25d5db=_0xa91f[_0x3be309];return _0x25d5db;};'use strict';var multer=require(_0xfa91('0x0'));var util=require(_0xfa91('0x1'));var path=require(_0xfa91('0x2'));var timeout=require('connect-timeout');var express=require(_0xfa91('0x3'));var router=express[_0xfa91('0x4')]();var fs_extra=require(_0xfa91('0x5'));var auth=require(_0xfa91('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xfa91('0x7'));var controller=require(_0xfa91('0x8'));router[_0xfa91('0x9')]('/',auth[_0xfa91('0xa')](),controller['index']);router[_0xfa91('0x9')](_0xfa91('0xb'),auth[_0xfa91('0xa')](),controller['describe']);router[_0xfa91('0x9')]('/:id',auth[_0xfa91('0xa')](),controller[_0xfa91('0xc')]);router[_0xfa91('0x9')](_0xfa91('0xd'),auth[_0xfa91('0xa')](),controller[_0xfa91('0xe')]);router[_0xfa91('0x9')]('/:id/download',auth[_0xfa91('0xa')](),controller[_0xfa91('0xf')]);router['post']('/',auth['isAuthenticated'](),controller[_0xfa91('0x10')]);router['post'](_0xfa91('0xd'),auth[_0xfa91('0xa')](),controller[_0xfa91('0x11')]);router[_0xfa91('0x12')](_0xfa91('0x13'),auth[_0xfa91('0xa')](),interaction['tracked'](_0xfa91('0x14'),_0xfa91('0x15')),controller[_0xfa91('0x16')]);router[_0xfa91('0x17')](_0xfa91('0x18'),auth['isAuthenticated'](),interaction['tracked'](_0xfa91('0x14'),_0xfa91('0x19')),controller[_0xfa91('0x1a')]);router[_0xfa91('0x1b')](_0xfa91('0x18'),auth[_0xfa91('0xa')](),interaction[_0xfa91('0x1c')](_0xfa91('0x14'),_0xfa91('0x1d')),controller['destroy']);router[_0xfa91('0x1b')](_0xfa91('0x13'),auth[_0xfa91('0xa')](),controller[_0xfa91('0x1e')]);module[_0xfa91('0x1f')]=router;