Built motion from commit b5413ace.|2.6.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 _0xa109=['show','getMessages','/:id/download','download','post','create','/:id/messages','addMessage','/:id/tags','tracked','openchannelinteraction:addtags','addTags','put','openchannel','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','destroy','removeTags','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x4fbb3e,_0x55785f){var _0x1eb197=function(_0xfda25){while(--_0xfda25){_0x4fbb3e['push'](_0x4fbb3e['shift']());}};_0x1eb197(++_0x55785f);}(_0xa109,0x196));var _0x9a10=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0xa109[_0x126558];return _0x1f6d14;};'use strict';var multer=require('multer');var util=require(_0x9a10('0x0'));var path=require(_0x9a10('0x1'));var timeout=require('connect-timeout');var express=require(_0x9a10('0x2'));var router=express[_0x9a10('0x3')]();var fs_extra=require(_0x9a10('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x9a10('0x5'));var config=require(_0x9a10('0x6'));var controller=require(_0x9a10('0x7'));router[_0x9a10('0x8')]('/',auth[_0x9a10('0x9')](),controller[_0x9a10('0xa')]);router[_0x9a10('0x8')](_0x9a10('0xb'),auth[_0x9a10('0x9')](),controller[_0x9a10('0xc')]);router[_0x9a10('0x8')](_0x9a10('0xd'),auth[_0x9a10('0x9')](),controller[_0x9a10('0xe')]);router['get']('/:id/messages',auth[_0x9a10('0x9')](),controller[_0x9a10('0xf')]);router['get'](_0x9a10('0x10'),auth[_0x9a10('0x9')](),controller[_0x9a10('0x11')]);router[_0x9a10('0x12')]('/',auth['isAuthenticated'](),controller[_0x9a10('0x13')]);router[_0x9a10('0x12')](_0x9a10('0x14'),auth[_0x9a10('0x9')](),controller[_0x9a10('0x15')]);router[_0x9a10('0x12')](_0x9a10('0x16'),auth[_0x9a10('0x9')](),interaction[_0x9a10('0x17')]('openchannel',_0x9a10('0x18')),controller[_0x9a10('0x19')]);router[_0x9a10('0x1a')](_0x9a10('0xd'),auth[_0x9a10('0x9')](),interaction[_0x9a10('0x17')](_0x9a10('0x1b'),_0x9a10('0x1c')),controller[_0x9a10('0x1d')]);router[_0x9a10('0x1e')](_0x9a10('0xd'),auth[_0x9a10('0x9')](),interaction[_0x9a10('0x17')]('openchannel',_0x9a10('0x1f')),controller[_0x9a10('0x20')]);router['delete'](_0x9a10('0x16'),auth[_0x9a10('0x9')](),controller[_0x9a10('0x21')]);module[_0x9a10('0x22')]=router;