Built motion from commit e02f907f.|2.6.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 _0x8853=['Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','describe','/:id','/:id/messages','/:id/download','post','create','/:id/tags','tracked','openchannel','openchannelinteraction:update','openchannelinteraction:destroy','destroy','delete','removeTags','exports','util','connect-timeout','express'];(function(_0x297fd3,_0x115406){var _0x2af381=function(_0x1dd31b){while(--_0x1dd31b){_0x297fd3['push'](_0x297fd3['shift']());}};_0x2af381(++_0x115406);}(_0x8853,0x1d1));var _0x3885=function(_0x5db59c,_0x11cc79){_0x5db59c=_0x5db59c-0x0;var _0x2a1f41=_0x8853[_0x5db59c];return _0x2a1f41;};'use strict';var multer=require('multer');var util=require(_0x3885('0x0'));var path=require('path');var timeout=require(_0x3885('0x1'));var express=require(_0x3885('0x2'));var router=express[_0x3885('0x3')]();var fs_extra=require(_0x3885('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x3885('0x5'));var config=require(_0x3885('0x6'));var controller=require(_0x3885('0x7'));router[_0x3885('0x8')]('/',auth[_0x3885('0x9')](),controller[_0x3885('0xa')]);router[_0x3885('0x8')]('/describe',auth[_0x3885('0x9')](),controller[_0x3885('0xb')]);router['get'](_0x3885('0xc'),auth[_0x3885('0x9')](),controller['show']);router[_0x3885('0x8')](_0x3885('0xd'),auth[_0x3885('0x9')](),controller['getMessages']);router['get'](_0x3885('0xe'),auth[_0x3885('0x9')](),controller['download']);router[_0x3885('0xf')]('/',auth[_0x3885('0x9')](),controller[_0x3885('0x10')]);router[_0x3885('0xf')](_0x3885('0xd'),auth[_0x3885('0x9')](),controller['addMessage']);router[_0x3885('0xf')](_0x3885('0x11'),auth[_0x3885('0x9')](),interaction[_0x3885('0x12')]('openchannel','openchannelinteraction:addtags'),controller['addTags']);router['put']('/:id',auth[_0x3885('0x9')](),interaction[_0x3885('0x12')](_0x3885('0x13'),_0x3885('0x14')),controller['update']);router['delete'](_0x3885('0xc'),auth[_0x3885('0x9')](),interaction[_0x3885('0x12')](_0x3885('0x13'),_0x3885('0x15')),controller[_0x3885('0x16')]);router[_0x3885('0x17')](_0x3885('0x11'),auth[_0x3885('0x9')](),controller[_0x3885('0x18')]);module[_0x3885('0x19')]=router;