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