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