Built motion from commit eddce310.|2.6.12
[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 _0xbd0e=['get','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','post','create','addMessage','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','addTags','openchannelinteraction:update','openchannelinteraction:destroy','delete','removeTags','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','isAuthenticated','index'];(function(_0x435835,_0x326aed){var _0xd12746=function(_0x54725b){while(--_0x54725b){_0x435835['push'](_0x435835['shift']());}};_0xd12746(++_0x326aed);}(_0xbd0e,0x1c2));var _0xebd0=function(_0x485865,_0x11d29a){_0x485865=_0x485865-0x0;var _0x11ef06=_0xbd0e[_0x485865];return _0x11ef06;};'use strict';var multer=require('multer');var util=require(_0xebd0('0x0'));var path=require(_0xebd0('0x1'));var timeout=require(_0xebd0('0x2'));var express=require(_0xebd0('0x3'));var router=express[_0xebd0('0x4')]();var fs_extra=require(_0xebd0('0x5'));var auth=require(_0xebd0('0x6'));var interaction=require(_0xebd0('0x7'));var config=require(_0xebd0('0x8'));var controller=require(_0xebd0('0x9'));router['get']('/',auth[_0xebd0('0xa')](),controller[_0xebd0('0xb')]);router[_0xebd0('0xc')](_0xebd0('0xd'),auth[_0xebd0('0xa')](),controller[_0xebd0('0xe')]);router[_0xebd0('0xc')](_0xebd0('0xf'),auth[_0xebd0('0xa')](),controller[_0xebd0('0x10')]);router[_0xebd0('0xc')](_0xebd0('0x11'),auth[_0xebd0('0xa')](),controller[_0xebd0('0x12')]);router[_0xebd0('0xc')](_0xebd0('0x13'),auth[_0xebd0('0xa')](),controller['download']);router[_0xebd0('0x14')]('/',auth[_0xebd0('0xa')](),controller[_0xebd0('0x15')]);router[_0xebd0('0x14')]('/:id/messages',auth[_0xebd0('0xa')](),controller[_0xebd0('0x16')]);router['post'](_0xebd0('0x17'),auth[_0xebd0('0xa')](),interaction[_0xebd0('0x18')](_0xebd0('0x19'),_0xebd0('0x1a')),controller[_0xebd0('0x1b')]);router['put'](_0xebd0('0xf'),auth['isAuthenticated'](),interaction[_0xebd0('0x18')](_0xebd0('0x19'),_0xebd0('0x1c')),controller['update']);router['delete'](_0xebd0('0xf'),auth[_0xebd0('0xa')](),interaction[_0xebd0('0x18')](_0xebd0('0x19'),_0xebd0('0x1d')),controller['destroy']);router[_0xebd0('0x1e')]('/:id/tags',auth['isAuthenticated'](),controller[_0xebd0('0x1f')]);module[_0xebd0('0x20')]=router;