d0d6543237b7045e3f87b07efbbba309cf4e6582
[motion2.git] / server / api / openchannelMessage / 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 _0x3668=['/:id','show','post','tracked','openchannel','openchannelmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','multer','../../components/auth/service','../../config/environment','./openchannelMessage.controller','get','isAuthenticated','/describe','describe'];(function(_0x21816d,_0x315b77){var _0x2b68d5=function(_0x364706){while(--_0x364706){_0x21816d['push'](_0x21816d['shift']());}};_0x2b68d5(++_0x315b77);}(_0x3668,0xd4));var _0x8366=function(_0x44b645,_0x163353){_0x44b645=_0x44b645-0x0;var _0x1826c3=_0x3668[_0x44b645];return _0x1826c3;};'use strict';var multer=require(_0x8366('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x8366('0x1'));var interaction=require('../../components/interaction/service');var config=require(_0x8366('0x2'));var controller=require(_0x8366('0x3'));router[_0x8366('0x4')]('/',auth[_0x8366('0x5')](),controller['index']);router[_0x8366('0x4')](_0x8366('0x6'),auth[_0x8366('0x5')](),controller[_0x8366('0x7')]);router[_0x8366('0x4')](_0x8366('0x8'),auth['isAuthenticated'](),controller[_0x8366('0x9')]);router[_0x8366('0xa')]('/',auth[_0x8366('0x5')](),interaction[_0x8366('0xb')](_0x8366('0xc'),_0x8366('0xd')),controller[_0x8366('0xe')]);router[_0x8366('0xf')](_0x8366('0x8'),auth[_0x8366('0x5')](),controller[_0x8366('0x10')]);router[_0x8366('0xf')](_0x8366('0x11'),auth[_0x8366('0x5')](),controller[_0x8366('0x12')]);router[_0x8366('0xf')](_0x8366('0x13'),auth[_0x8366('0x5')](),controller[_0x8366('0x14')]);router[_0x8366('0x15')](_0x8366('0x8'),auth[_0x8366('0x5')](),controller['destroy']);module['exports']=router;