Built motion from commit a679711e.|2.6.15
[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 _0x7e3f=['create','addMessage','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','put','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','/:id/messages','/:id/download','download','post'];(function(_0x2c59d4,_0x30adf7){var _0x1f9ae7=function(_0x22d006){while(--_0x22d006){_0x2c59d4['push'](_0x2c59d4['shift']());}};_0x1f9ae7(++_0x30adf7);}(_0x7e3f,0xd1));var _0xf7e3=function(_0x276be7,_0xb61f1d){_0x276be7=_0x276be7-0x0;var _0x3ab1c0=_0x7e3f[_0x276be7];return _0x3ab1c0;};'use strict';var multer=require('multer');var util=require(_0xf7e3('0x0'));var path=require('path');var timeout=require(_0xf7e3('0x1'));var express=require(_0xf7e3('0x2'));var router=express[_0xf7e3('0x3')]();var fs_extra=require(_0xf7e3('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf7e3('0x5'));var config=require(_0xf7e3('0x6'));var controller=require('./openchannelInteraction.controller');router['get']('/',auth[_0xf7e3('0x7')](),controller[_0xf7e3('0x8')]);router['get']('/describe',auth[_0xf7e3('0x7')](),controller['describe']);router[_0xf7e3('0x9')](_0xf7e3('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xf7e3('0x9')](_0xf7e3('0xb'),auth[_0xf7e3('0x7')](),controller['getMessages']);router[_0xf7e3('0x9')](_0xf7e3('0xc'),auth[_0xf7e3('0x7')](),controller[_0xf7e3('0xd')]);router[_0xf7e3('0xe')]('/',auth[_0xf7e3('0x7')](),controller[_0xf7e3('0xf')]);router['post'](_0xf7e3('0xb'),auth[_0xf7e3('0x7')](),controller[_0xf7e3('0x10')]);router[_0xf7e3('0xe')](_0xf7e3('0x11'),auth[_0xf7e3('0x7')](),interaction[_0xf7e3('0x12')](_0xf7e3('0x13'),_0xf7e3('0x14')),controller['addTags']);router[_0xf7e3('0x15')](_0xf7e3('0xa'),auth['isAuthenticated'](),interaction[_0xf7e3('0x12')](_0xf7e3('0x13'),_0xf7e3('0x16')),controller[_0xf7e3('0x17')]);router[_0xf7e3('0x18')](_0xf7e3('0xa'),auth['isAuthenticated'](),interaction[_0xf7e3('0x12')](_0xf7e3('0x13'),_0xf7e3('0x19')),controller[_0xf7e3('0x1a')]);router['delete']('/:id/tags',auth[_0xf7e3('0x7')](),controller['removeTags']);module[_0xf7e3('0x1b')]=router;