c11950604d5243741e3873d27cd158fd1dc471da
[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 _0xb08b=['exports','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','index','/describe','isAuthenticated','/:id','post','openchannel','openchannelmessage:create','create','update','put','/:id/accept','accept','/:id/reject','delete'];(function(_0x2233cd,_0x12328d){var _0x2ef5fb=function(_0x5ad524){while(--_0x5ad524){_0x2233cd['push'](_0x2233cd['shift']());}};_0x2ef5fb(++_0x12328d);}(_0xb08b,0x181));var _0xbb08=function(_0x823a37,_0xef6c2b){_0x823a37=_0x823a37-0x0;var _0x3d6258=_0xb08b[_0x823a37];return _0x3d6258;};'use strict';var multer=require('multer');var util=require(_0xbb08('0x0'));var path=require(_0xbb08('0x1'));var timeout=require(_0xbb08('0x2'));var express=require(_0xbb08('0x3'));var router=express[_0xbb08('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xbb08('0x5'));var config=require(_0xbb08('0x6'));var controller=require(_0xbb08('0x7'));router[_0xbb08('0x8')]('/',auth['isAuthenticated'](),controller[_0xbb08('0x9')]);router[_0xbb08('0x8')](_0xbb08('0xa'),auth[_0xbb08('0xb')](),controller['describe']);router[_0xbb08('0x8')](_0xbb08('0xc'),auth[_0xbb08('0xb')](),controller['show']);router[_0xbb08('0xd')]('/',auth[_0xbb08('0xb')](),interaction['tracked'](_0xbb08('0xe'),_0xbb08('0xf')),controller[_0xbb08('0x10')]);router['put'](_0xbb08('0xc'),auth['isAuthenticated'](),controller[_0xbb08('0x11')]);router[_0xbb08('0x12')](_0xbb08('0x13'),auth[_0xbb08('0xb')](),controller[_0xbb08('0x14')]);router['put'](_0xbb08('0x15'),auth['isAuthenticated'](),controller['reject']);router[_0xbb08('0x16')](_0xbb08('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xbb08('0x17')]=router;