Built motion from commit 953226e6.|2.6.32
[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 _0x2238=['/:id/tags','tracked','openchannel','openchannelinteraction:addtags','addTags','put','update','delete','openchannelinteraction:destroy','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id/messages','/:id/download','download','post','create','addMessage'];(function(_0x42f009,_0x5e27b1){var _0x22a1e0=function(_0x297993){while(--_0x297993){_0x42f009['push'](_0x42f009['shift']());}};_0x22a1e0(++_0x5e27b1);}(_0x2238,0x1eb));var _0x8223=function(_0x571b33,_0x206708){_0x571b33=_0x571b33-0x0;var _0x5ab6e0=_0x2238[_0x571b33];return _0x5ab6e0;};'use strict';var multer=require(_0x8223('0x0'));var util=require(_0x8223('0x1'));var path=require(_0x8223('0x2'));var timeout=require(_0x8223('0x3'));var express=require('express');var router=express[_0x8223('0x4')]();var fs_extra=require(_0x8223('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8223('0x6'));var controller=require(_0x8223('0x7'));router[_0x8223('0x8')]('/',auth[_0x8223('0x9')](),controller[_0x8223('0xa')]);router[_0x8223('0x8')](_0x8223('0xb'),auth['isAuthenticated'](),controller[_0x8223('0xc')]);router['get']('/:id',auth[_0x8223('0x9')](),controller['show']);router[_0x8223('0x8')](_0x8223('0xd'),auth[_0x8223('0x9')](),controller['getMessages']);router[_0x8223('0x8')](_0x8223('0xe'),auth[_0x8223('0x9')](),controller[_0x8223('0xf')]);router[_0x8223('0x10')]('/',auth[_0x8223('0x9')](),controller[_0x8223('0x11')]);router[_0x8223('0x10')](_0x8223('0xd'),auth[_0x8223('0x9')](),controller[_0x8223('0x12')]);router['post'](_0x8223('0x13'),auth[_0x8223('0x9')](),interaction[_0x8223('0x14')](_0x8223('0x15'),_0x8223('0x16')),controller[_0x8223('0x17')]);router[_0x8223('0x18')]('/:id',auth[_0x8223('0x9')](),interaction[_0x8223('0x14')]('openchannel','openchannelinteraction:update'),controller[_0x8223('0x19')]);router[_0x8223('0x1a')]('/:id',auth[_0x8223('0x9')](),interaction[_0x8223('0x14')](_0x8223('0x15'),_0x8223('0x1b')),controller[_0x8223('0x1c')]);router[_0x8223('0x1a')](_0x8223('0x13'),auth[_0x8223('0x9')](),controller['removeTags']);module[_0x8223('0x1d')]=router;