a0e82d3f3d7aada80c980edc59c2c66d71a0be18
[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 _0x4f88=['addTags','put','tracked','openchannel','openchannelinteraction:update','update','openchannelinteraction:destroy','destroy','delete','removeTags','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','isAuthenticated','index','/describe','describe','/:id','show','get','/:id/messages','getMessages','download','post','create','addMessage','/:id/tags','openchannelinteraction:addtags'];(function(_0x1c6a0c,_0x5705ab){var _0x58c88c=function(_0x1c41dd){while(--_0x1c41dd){_0x1c6a0c['push'](_0x1c6a0c['shift']());}};_0x58c88c(++_0x5705ab);}(_0x4f88,0x6e));var _0x84f8=function(_0x16b9ed,_0x56517a){_0x16b9ed=_0x16b9ed-0x0;var _0x66b1f8=_0x4f88[_0x16b9ed];return _0x66b1f8;};'use strict';var multer=require('multer');var util=require(_0x84f8('0x0'));var path=require('path');var timeout=require(_0x84f8('0x1'));var express=require(_0x84f8('0x2'));var router=express['Router']();var auth=require(_0x84f8('0x3'));var interaction=require(_0x84f8('0x4'));var config=require(_0x84f8('0x5'));var controller=require(_0x84f8('0x6'));router['get']('/',auth[_0x84f8('0x7')](),controller[_0x84f8('0x8')]);router['get'](_0x84f8('0x9'),auth[_0x84f8('0x7')](),controller[_0x84f8('0xa')]);router['get'](_0x84f8('0xb'),auth[_0x84f8('0x7')](),controller[_0x84f8('0xc')]);router[_0x84f8('0xd')](_0x84f8('0xe'),auth[_0x84f8('0x7')](),controller[_0x84f8('0xf')]);router[_0x84f8('0xd')]('/:id/download',auth[_0x84f8('0x7')](),controller[_0x84f8('0x10')]);router[_0x84f8('0x11')]('/',auth[_0x84f8('0x7')](),controller[_0x84f8('0x12')]);router[_0x84f8('0x11')](_0x84f8('0xe'),auth[_0x84f8('0x7')](),controller[_0x84f8('0x13')]);router[_0x84f8('0x11')](_0x84f8('0x14'),auth[_0x84f8('0x7')](),interaction['tracked']('openchannel',_0x84f8('0x15')),controller[_0x84f8('0x16')]);router[_0x84f8('0x17')](_0x84f8('0xb'),auth['isAuthenticated'](),interaction[_0x84f8('0x18')](_0x84f8('0x19'),_0x84f8('0x1a')),controller[_0x84f8('0x1b')]);router['delete'](_0x84f8('0xb'),auth[_0x84f8('0x7')](),interaction['tracked']('openchannel',_0x84f8('0x1c')),controller[_0x84f8('0x1d')]);router[_0x84f8('0x1e')](_0x84f8('0x14'),auth[_0x84f8('0x7')](),controller[_0x84f8('0x1f')]);module[_0x84f8('0x20')]=router;