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