Built motion from commit (unavailable).|2.5.30
[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 _0x560e=['./openchannelMessage.controller','get','index','/describe','isAuthenticated','describe','/:id','show','tracked','openchannel','openchannelmessage:create','create','put','update','/:id/accept','/:id/reject','reject','delete','destroy','multer','util','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xf87ce,_0x5dbb99){var _0x2927cd=function(_0x353d58){while(--_0x353d58){_0xf87ce['push'](_0xf87ce['shift']());}};_0x2927cd(++_0x5dbb99);}(_0x560e,0x1ee));var _0xe560=function(_0x29059d,_0x69dfee){_0x29059d=_0x29059d-0x0;var _0x263677=_0x560e[_0x29059d];return _0x263677;};'use strict';var multer=require(_0xe560('0x0'));var util=require(_0xe560('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xe560('0x2'));var auth=require(_0xe560('0x3'));var interaction=require(_0xe560('0x4'));var config=require(_0xe560('0x5'));var controller=require(_0xe560('0x6'));router[_0xe560('0x7')]('/',auth['isAuthenticated'](),controller[_0xe560('0x8')]);router['get'](_0xe560('0x9'),auth[_0xe560('0xa')](),controller[_0xe560('0xb')]);router['get'](_0xe560('0xc'),auth[_0xe560('0xa')](),controller[_0xe560('0xd')]);router['post']('/',auth[_0xe560('0xa')](),interaction[_0xe560('0xe')](_0xe560('0xf'),_0xe560('0x10')),controller[_0xe560('0x11')]);router[_0xe560('0x12')]('/:id',auth[_0xe560('0xa')](),controller[_0xe560('0x13')]);router[_0xe560('0x12')](_0xe560('0x14'),auth[_0xe560('0xa')](),controller['accept']);router[_0xe560('0x12')](_0xe560('0x15'),auth[_0xe560('0xa')](),controller[_0xe560('0x16')]);router[_0xe560('0x17')]('/:id',auth['isAuthenticated'](),controller[_0xe560('0x18')]);module['exports']=router;