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