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