bace1c7446e26680e1485ee50c53754ffe35e7c8
[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 _0x177f=['./openchannelMessage.controller','isAuthenticated','index','get','/describe','describe','show','post','tracked','openchannel','openchannelmessage:create','put','/:id','update','/:id/accept','accept','/:id/reject','reject','delete','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x376106,_0x30646a){var _0x397b62=function(_0xf8fbac){while(--_0xf8fbac){_0x376106['push'](_0x376106['shift']());}};_0x397b62(++_0x30646a);}(_0x177f,0x117));var _0xf177=function(_0x6f7b07,_0x5077f6){_0x6f7b07=_0x6f7b07-0x0;var _0x299377=_0x177f[_0x6f7b07];return _0x299377;};'use strict';var multer=require(_0xf177('0x0'));var util=require(_0xf177('0x1'));var path=require(_0xf177('0x2'));var timeout=require(_0xf177('0x3'));var express=require('express');var router=express[_0xf177('0x4')]();var auth=require(_0xf177('0x5'));var interaction=require(_0xf177('0x6'));var config=require('../../config/environment');var controller=require(_0xf177('0x7'));router['get']('/',auth[_0xf177('0x8')](),controller[_0xf177('0x9')]);router[_0xf177('0xa')](_0xf177('0xb'),auth[_0xf177('0x8')](),controller[_0xf177('0xc')]);router[_0xf177('0xa')]('/:id',auth[_0xf177('0x8')](),controller[_0xf177('0xd')]);router[_0xf177('0xe')]('/',auth['isAuthenticated'](),interaction[_0xf177('0xf')](_0xf177('0x10'),_0xf177('0x11')),controller['create']);router[_0xf177('0x12')](_0xf177('0x13'),auth[_0xf177('0x8')](),controller[_0xf177('0x14')]);router[_0xf177('0x12')](_0xf177('0x15'),auth[_0xf177('0x8')](),controller[_0xf177('0x16')]);router[_0xf177('0x12')](_0xf177('0x17'),auth[_0xf177('0x8')](),controller[_0xf177('0x18')]);router[_0xf177('0x19')](_0xf177('0x13'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;