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