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