685bd60450d8dc7c04916f679c68e539f800b91f
[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 _0xe923=['destroy','removeTags','exports','multer','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','addMessage','tracked','openchannel','openchannelinteraction:addtags','addTags','put','openchannelinteraction:update','update','delete','openchannelinteraction:destroy'];(function(_0x38e553,_0x31382e){var _0x55ca44=function(_0x28d2e1){while(--_0x28d2e1){_0x38e553['push'](_0x38e553['shift']());}};_0x55ca44(++_0x31382e);}(_0xe923,0x139));var _0x3e92=function(_0x3f88bc,_0xe38cf5){_0x3f88bc=_0x3f88bc-0x0;var _0x4df1c4=_0xe923[_0x3f88bc];return _0x4df1c4;};'use strict';var multer=require(_0x3e92('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x3e92('0x1'));var express=require(_0x3e92('0x2'));var router=express[_0x3e92('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x3e92('0x4'));var config=require(_0x3e92('0x5'));var controller=require(_0x3e92('0x6'));router[_0x3e92('0x7')]('/',auth[_0x3e92('0x8')](),controller[_0x3e92('0x9')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x3e92('0xa')]);router[_0x3e92('0x7')](_0x3e92('0xb'),auth['isAuthenticated'](),controller[_0x3e92('0xc')]);router[_0x3e92('0x7')](_0x3e92('0xd'),auth[_0x3e92('0x8')](),controller[_0x3e92('0xe')]);router['get'](_0x3e92('0xf'),auth[_0x3e92('0x8')](),controller[_0x3e92('0x10')]);router[_0x3e92('0x11')]('/',auth[_0x3e92('0x8')](),controller['create']);router[_0x3e92('0x11')](_0x3e92('0xd'),auth[_0x3e92('0x8')](),controller[_0x3e92('0x12')]);router[_0x3e92('0x11')]('/:id/tags',auth[_0x3e92('0x8')](),interaction[_0x3e92('0x13')](_0x3e92('0x14'),_0x3e92('0x15')),controller[_0x3e92('0x16')]);router[_0x3e92('0x17')]('/:id',auth[_0x3e92('0x8')](),interaction[_0x3e92('0x13')](_0x3e92('0x14'),_0x3e92('0x18')),controller[_0x3e92('0x19')]);router[_0x3e92('0x1a')](_0x3e92('0xb'),auth['isAuthenticated'](),interaction[_0x3e92('0x13')]('openchannel',_0x3e92('0x1b')),controller[_0x3e92('0x1c')]);router[_0x3e92('0x1a')]('/:id/tags',auth['isAuthenticated'](),controller[_0x3e92('0x1d')]);module[_0x3e92('0x1e')]=router;