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