Built motion from commit (unavailable).|2.5.2
[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 _0x663c=['util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post','tracked','openchannel','create','put','update','/:id/accept','accept','delete','destroy','multer'];(function(_0x2c3185,_0x27618e){var _0x4bcede=function(_0x34b5c7){while(--_0x34b5c7){_0x2c3185['push'](_0x2c3185['shift']());}};_0x4bcede(++_0x27618e);}(_0x663c,0x185));var _0xc663=function(_0x45493c,_0x39478b){_0x45493c=_0x45493c-0x0;var _0xe89240=_0x663c[_0x45493c];return _0xe89240;};'use strict';var multer=require(_0xc663('0x0'));var util=require(_0xc663('0x1'));var path=require(_0xc663('0x2'));var timeout=require(_0xc663('0x3'));var express=require('express');var router=express[_0xc663('0x4')]();var auth=require(_0xc663('0x5'));var interaction=require(_0xc663('0x6'));var config=require(_0xc663('0x7'));var controller=require(_0xc663('0x8'));router['get']('/',auth[_0xc663('0x9')](),controller[_0xc663('0xa')]);router[_0xc663('0xb')](_0xc663('0xc'),auth[_0xc663('0x9')](),controller[_0xc663('0xd')]);router['get'](_0xc663('0xe'),auth['isAuthenticated'](),controller[_0xc663('0xf')]);router[_0xc663('0x10')]('/',auth[_0xc663('0x9')](),interaction[_0xc663('0x11')](_0xc663('0x12'),'openchannelmessage:create'),controller[_0xc663('0x13')]);router[_0xc663('0x14')](_0xc663('0xe'),auth[_0xc663('0x9')](),controller[_0xc663('0x15')]);router[_0xc663('0x14')](_0xc663('0x16'),auth['isAuthenticated'](),controller[_0xc663('0x17')]);router[_0xc663('0x14')]('/:id/reject',auth[_0xc663('0x9')](),controller['reject']);router[_0xc663('0x18')]('/:id',auth[_0xc663('0x9')](),controller[_0xc663('0x19')]);module['exports']=router;