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