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