f242ba1f558719f9e183661fb54a8fecf475b5c8
[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 _0x3cba=['getMessages','/:id/download','download','post','create','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','put','/:id','openchannelinteraction:update','update','delete','destroy','removeTags','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','/describe','describe','show','/:id/messages'];(function(_0x1de7a3,_0x590f16){var _0xcfd43d=function(_0x1392f6){while(--_0x1392f6){_0x1de7a3['push'](_0x1de7a3['shift']());}};_0xcfd43d(++_0x590f16);}(_0x3cba,0x8d));var _0xa3cb=function(_0x2cc594,_0x4d727b){_0x2cc594=_0x2cc594-0x0;var _0x4abff7=_0x3cba[_0x2cc594];return _0x4abff7;};'use strict';var multer=require(_0xa3cb('0x0'));var util=require(_0xa3cb('0x1'));var path=require(_0xa3cb('0x2'));var timeout=require(_0xa3cb('0x3'));var express=require(_0xa3cb('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa3cb('0x5'));var config=require(_0xa3cb('0x6'));var controller=require(_0xa3cb('0x7'));router[_0xa3cb('0x8')]('/',auth[_0xa3cb('0x9')](),controller['index']);router[_0xa3cb('0x8')](_0xa3cb('0xa'),auth[_0xa3cb('0x9')](),controller[_0xa3cb('0xb')]);router[_0xa3cb('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xa3cb('0xc')]);router[_0xa3cb('0x8')](_0xa3cb('0xd'),auth[_0xa3cb('0x9')](),controller[_0xa3cb('0xe')]);router[_0xa3cb('0x8')](_0xa3cb('0xf'),auth[_0xa3cb('0x9')](),controller[_0xa3cb('0x10')]);router[_0xa3cb('0x11')]('/',auth[_0xa3cb('0x9')](),controller[_0xa3cb('0x12')]);router['post'](_0xa3cb('0xd'),auth['isAuthenticated'](),controller['addMessage']);router[_0xa3cb('0x11')](_0xa3cb('0x13'),auth[_0xa3cb('0x9')](),interaction[_0xa3cb('0x14')](_0xa3cb('0x15'),_0xa3cb('0x16')),controller['addTags']);router[_0xa3cb('0x17')](_0xa3cb('0x18'),auth['isAuthenticated'](),interaction[_0xa3cb('0x14')](_0xa3cb('0x15'),_0xa3cb('0x19')),controller[_0xa3cb('0x1a')]);router[_0xa3cb('0x1b')](_0xa3cb('0x18'),auth[_0xa3cb('0x9')](),interaction[_0xa3cb('0x14')]('openchannel','openchannelinteraction:destroy'),controller[_0xa3cb('0x1c')]);router[_0xa3cb('0x1b')]('/:id/tags',auth[_0xa3cb('0x9')](),controller[_0xa3cb('0x1d')]);module[_0xa3cb('0x1e')]=router;