Built motion from commit (unavailable).|2.5.26
[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 _0x032a=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','index','/opencontacts','getOpenContacts','/:id','show','create','/preview','getPreview','put','update','delete','destroy','exports'];(function(_0x580c47,_0x52f406){var _0x39ec27=function(_0x54d5cb){while(--_0x54d5cb){_0x580c47['push'](_0x580c47['shift']());}};_0x39ec27(++_0x52f406);}(_0x032a,0xf0));var _0xa032=function(_0x6622a2,_0x401a17){_0x6622a2=_0x6622a2-0x0;var _0x52252e=_0x032a[_0x6622a2];return _0x52252e;};'use strict';var multer=require('multer');var util=require(_0xa032('0x0'));var path=require('path');var timeout=require(_0xa032('0x1'));var express=require(_0xa032('0x2'));var router=express[_0xa032('0x3')]();var fs_extra=require(_0xa032('0x4'));var auth=require(_0xa032('0x5'));var interaction=require(_0xa032('0x6'));var config=require(_0xa032('0x7'));var controller=require(_0xa032('0x8'));router[_0xa032('0x9')]('/',auth[_0xa032('0xa')](),controller[_0xa032('0xb')]);router[_0xa032('0x9')]('/describe',auth[_0xa032('0xa')](),controller['describe']);router['get'](_0xa032('0xc'),auth['isAuthenticated'](),controller[_0xa032('0xd')]);router[_0xa032('0x9')](_0xa032('0xe'),auth[_0xa032('0xa')](),controller[_0xa032('0xf')]);router['post']('/',auth[_0xa032('0xa')](),controller[_0xa032('0x10')]);router['post'](_0xa032('0x11'),auth[_0xa032('0xa')](),controller[_0xa032('0x12')]);router[_0xa032('0x13')](_0xa032('0xe'),auth['isAuthenticated'](),controller[_0xa032('0x14')]);router[_0xa032('0x15')](_0xa032('0xe'),auth[_0xa032('0xa')](),controller[_0xa032('0x16')]);module[_0xa032('0x17')]=router;