5a398bb6c9e2c94ac0c1db189f58574f8755262d
[motion2.git] / server / api / cmHopper / 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 _0x01a6=['post','create','/preview','getPreview','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','/opencontacts','/:id','show'];(function(_0x79bc00,_0x46a380){var _0x4d6d77=function(_0xfbb092){while(--_0xfbb092){_0x79bc00['push'](_0x79bc00['shift']());}};_0x4d6d77(++_0x46a380);}(_0x01a6,0x162));var _0x601a=function(_0x370778,_0x5af93c){_0x370778=_0x370778-0x0;var _0x1a8ded=_0x01a6[_0x370778];return _0x1a8ded;};'use strict';var multer=require(_0x601a('0x0'));var util=require('util');var path=require(_0x601a('0x1'));var timeout=require(_0x601a('0x2'));var express=require(_0x601a('0x3'));var router=express[_0x601a('0x4')]();var auth=require(_0x601a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x601a('0x6'));var controller=require('./cmHopper.controller');router[_0x601a('0x7')]('/',auth[_0x601a('0x8')](),controller[_0x601a('0x9')]);router[_0x601a('0x7')](_0x601a('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0x601a('0x7')](_0x601a('0xb'),auth[_0x601a('0x8')](),controller['getOpenContacts']);router[_0x601a('0x7')](_0x601a('0xc'),auth['isAuthenticated'](),controller[_0x601a('0xd')]);router[_0x601a('0xe')]('/',auth['isAuthenticated'](),controller[_0x601a('0xf')]);router[_0x601a('0xe')](_0x601a('0x10'),auth[_0x601a('0x8')](),controller[_0x601a('0x11')]);router[_0x601a('0x12')](_0x601a('0xc'),auth[_0x601a('0x8')](),controller[_0x601a('0x13')]);router[_0x601a('0x14')](_0x601a('0xc'),auth['isAuthenticated'](),controller[_0x601a('0x15')]);module[_0x601a('0x16')]=router;