Built motion from commit (unavailable).|2.5.21
[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 _0xd4c9=['openchannelinteraction:addtags','addTags','put','openchannel','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','/:id','show','getMessages','/:id/download','download','post','/:id/messages','addMessage','/:id/tags','tracked'];(function(_0x24e2e7,_0x153fab){var _0x18ced8=function(_0x5319d2){while(--_0x5319d2){_0x24e2e7['push'](_0x24e2e7['shift']());}};_0x18ced8(++_0x153fab);}(_0xd4c9,0x17e));var _0x9d4c=function(_0x2cc0b3,_0x120bf1){_0x2cc0b3=_0x2cc0b3-0x0;var _0x1667ef=_0xd4c9[_0x2cc0b3];return _0x1667ef;};'use strict';var multer=require(_0x9d4c('0x0'));var util=require(_0x9d4c('0x1'));var path=require('path');var timeout=require(_0x9d4c('0x2'));var express=require(_0x9d4c('0x3'));var router=express[_0x9d4c('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x9d4c('0x5'));var config=require(_0x9d4c('0x6'));var controller=require(_0x9d4c('0x7'));router[_0x9d4c('0x8')]('/',auth[_0x9d4c('0x9')](),controller[_0x9d4c('0xa')]);router[_0x9d4c('0x8')]('/describe',auth[_0x9d4c('0x9')](),controller['describe']);router[_0x9d4c('0x8')](_0x9d4c('0xb'),auth['isAuthenticated'](),controller[_0x9d4c('0xc')]);router[_0x9d4c('0x8')]('/:id/messages',auth[_0x9d4c('0x9')](),controller[_0x9d4c('0xd')]);router[_0x9d4c('0x8')](_0x9d4c('0xe'),auth[_0x9d4c('0x9')](),controller[_0x9d4c('0xf')]);router[_0x9d4c('0x10')]('/',auth[_0x9d4c('0x9')](),controller['create']);router[_0x9d4c('0x10')](_0x9d4c('0x11'),auth['isAuthenticated'](),controller[_0x9d4c('0x12')]);router[_0x9d4c('0x10')](_0x9d4c('0x13'),auth['isAuthenticated'](),interaction[_0x9d4c('0x14')]('openchannel',_0x9d4c('0x15')),controller[_0x9d4c('0x16')]);router[_0x9d4c('0x17')](_0x9d4c('0xb'),auth[_0x9d4c('0x9')](),interaction[_0x9d4c('0x14')](_0x9d4c('0x18'),_0x9d4c('0x19')),controller[_0x9d4c('0x1a')]);router[_0x9d4c('0x1b')](_0x9d4c('0xb'),auth['isAuthenticated'](),interaction[_0x9d4c('0x14')]('openchannel',_0x9d4c('0x1c')),controller[_0x9d4c('0x1d')]);router['delete'](_0x9d4c('0x13'),auth[_0x9d4c('0x9')](),controller['removeTags']);module[_0x9d4c('0x1e')]=router;