Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / openchannelInteraction / 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 _0x42dc=['update','delete','openchannelinteraction:destroy','destroy','/:id/tags','removeTags','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','./openchannelInteraction.controller','get','isAuthenticated','index','describe','/:id','/:id/messages','/:id/download','post','addMessage','tracked','openchannel','put','openchannelinteraction:update'];(function(_0x12fc8d,_0x19ee33){var _0x3f9d04=function(_0x52e51c){while(--_0x52e51c){_0x12fc8d['push'](_0x12fc8d['shift']());}};_0x3f9d04(++_0x19ee33);}(_0x42dc,0x1ed));var _0xc42d=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0x42dc[_0x5ddb1c];return _0x354adc;};'use strict';var multer=require(_0xc42d('0x0'));var util=require(_0xc42d('0x1'));var path=require(_0xc42d('0x2'));var timeout=require(_0xc42d('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xc42d('0x4'));var interaction=require(_0xc42d('0x5'));var config=require('../../config/environment');var controller=require(_0xc42d('0x6'));router[_0xc42d('0x7')]('/',auth[_0xc42d('0x8')](),controller[_0xc42d('0x9')]);router['get']('/describe',auth[_0xc42d('0x8')](),controller[_0xc42d('0xa')]);router['get'](_0xc42d('0xb'),auth[_0xc42d('0x8')](),controller['show']);router[_0xc42d('0x7')](_0xc42d('0xc'),auth[_0xc42d('0x8')](),controller['getMessages']);router['get'](_0xc42d('0xd'),auth[_0xc42d('0x8')](),controller['download']);router[_0xc42d('0xe')]('/',auth[_0xc42d('0x8')](),controller['create']);router['post']('/:id/messages',auth['isAuthenticated'](),controller[_0xc42d('0xf')]);router[_0xc42d('0xe')]('/:id/tags',auth[_0xc42d('0x8')](),interaction[_0xc42d('0x10')](_0xc42d('0x11'),'openchannelinteraction:addtags'),controller['addTags']);router[_0xc42d('0x12')](_0xc42d('0xb'),auth[_0xc42d('0x8')](),interaction[_0xc42d('0x10')](_0xc42d('0x11'),_0xc42d('0x13')),controller[_0xc42d('0x14')]);router[_0xc42d('0x15')](_0xc42d('0xb'),auth[_0xc42d('0x8')](),interaction[_0xc42d('0x10')]('openchannel',_0xc42d('0x16')),controller[_0xc42d('0x17')]);router[_0xc42d('0x15')](_0xc42d('0x18'),auth[_0xc42d('0x8')](),controller[_0xc42d('0x19')]);module[_0xc42d('0x1a')]=router;