274cf514c2cfe841e57a2211af4e84b9877be8d5
[motion2.git] / server / api / cmHopperFinal / 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 _0x94ff=['fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','/:id','show','countContactsQueueCampaignHopperFinal','/campaign/countAttributes/:id','countContactsIvrCampaignHopperFinal','post','/voice/queue/moveContacts/:id','/voice/campaign/moveContacts/:id','moveContactsIvrCampaignHopperFinal','/checkContactHopper','checkContactHopper','put','exports','multer','express','Router'];(function(_0x38966f,_0x12f4d0){var _0x33ce6d=function(_0x290cf9){while(--_0x290cf9){_0x38966f['push'](_0x38966f['shift']());}};_0x33ce6d(++_0x12f4d0);}(_0x94ff,0xc3));var _0xf94f=function(_0x3c4777,_0x516e8c){_0x3c4777=_0x3c4777-0x0;var _0x1d2fa7=_0x94ff[_0x3c4777];return _0x1d2fa7;};'use strict';var multer=require(_0xf94f('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf94f('0x1'));var router=express[_0xf94f('0x2')]();var fs_extra=require(_0xf94f('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xf94f('0x4'));var config=require(_0xf94f('0x5'));var controller=require('./cmHopperFinal.controller');router[_0xf94f('0x6')]('/',auth[_0xf94f('0x7')](),controller['index']);router[_0xf94f('0x6')]('/describe',auth[_0xf94f('0x7')](),controller[_0xf94f('0x8')]);router['get'](_0xf94f('0x9'),auth[_0xf94f('0x7')](),controller[_0xf94f('0xa')]);router['get']('/voice/queue/countAttributes/:id',auth[_0xf94f('0x7')](),controller[_0xf94f('0xb')]);router[_0xf94f('0x6')](_0xf94f('0xc'),auth[_0xf94f('0x7')](),controller[_0xf94f('0xd')]);router[_0xf94f('0xe')](_0xf94f('0xf'),auth[_0xf94f('0x7')](),controller['moveContactsQueueCampaignHopperFinal']);router[_0xf94f('0xe')](_0xf94f('0x10'),auth[_0xf94f('0x7')](),controller[_0xf94f('0x11')]);router['post'](_0xf94f('0x12'),auth[_0xf94f('0x7')](),controller[_0xf94f('0x13')]);router[_0xf94f('0x14')](_0xf94f('0x9'),auth[_0xf94f('0x7')](),controller['update']);module[_0xf94f('0x15')]=router;