Built motion from commit (unavailable).|2.5.9
[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 _0x5755=['show','/:id/messages','/:id/download','addMessage','post','/:id/tags','tracked','openchannelinteraction:addtags','addTags','put','/:id','openchannelinteraction:update','update','delete','openchannel','openchannelinteraction:destroy','destroy','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./openchannelInteraction.controller','get','isAuthenticated','describe'];(function(_0x259fa3,_0x1a57d6){var _0x397884=function(_0x1b50d9){while(--_0x1b50d9){_0x259fa3['push'](_0x259fa3['shift']());}};_0x397884(++_0x1a57d6);}(_0x5755,0x1ee));var _0x5575=function(_0x2606bd,_0x3148ea){_0x2606bd=_0x2606bd-0x0;var _0x1b6f75=_0x5755[_0x2606bd];return _0x1b6f75;};'use strict';var multer=require(_0x5575('0x0'));var util=require('util');var path=require(_0x5575('0x1'));var timeout=require(_0x5575('0x2'));var express=require(_0x5575('0x3'));var router=express['Router']();var auth=require(_0x5575('0x4'));var interaction=require(_0x5575('0x5'));var config=require('../../config/environment');var controller=require(_0x5575('0x6'));router[_0x5575('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x5575('0x7')]('/describe',auth[_0x5575('0x8')](),controller[_0x5575('0x9')]);router[_0x5575('0x7')]('/:id',auth[_0x5575('0x8')](),controller[_0x5575('0xa')]);router[_0x5575('0x7')](_0x5575('0xb'),auth[_0x5575('0x8')](),controller['getMessages']);router['get'](_0x5575('0xc'),auth[_0x5575('0x8')](),controller['download']);router['post']('/',auth[_0x5575('0x8')](),controller['create']);router['post'](_0x5575('0xb'),auth[_0x5575('0x8')](),controller[_0x5575('0xd')]);router[_0x5575('0xe')](_0x5575('0xf'),auth[_0x5575('0x8')](),interaction[_0x5575('0x10')]('openchannel',_0x5575('0x11')),controller[_0x5575('0x12')]);router[_0x5575('0x13')](_0x5575('0x14'),auth[_0x5575('0x8')](),interaction[_0x5575('0x10')]('openchannel',_0x5575('0x15')),controller[_0x5575('0x16')]);router[_0x5575('0x17')]('/:id',auth[_0x5575('0x8')](),interaction[_0x5575('0x10')](_0x5575('0x18'),_0x5575('0x19')),controller[_0x5575('0x1a')]);router[_0x5575('0x17')](_0x5575('0xf'),auth[_0x5575('0x8')](),controller['removeTags']);module[_0x5575('0x1b')]=router;