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