41b9c7f73c9b72c21bc738469aca026961cb4486
[motion2.git] / server / api / cmList / 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 _0x89a7=['post','addContacts','addCustomField','addAgents','put','/:id','destroy','delete','removeDispositions','removeAgents','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmList.controller','get','index','/describe','isAuthenticated','describe','getGlobalCustomFields','show','/:id/dispositions','/:id/contacts','/:id/contacts/csv','/:id/fields','getCustomFields','/:id/users','getAgents'];(function(_0x31fb64,_0x2d63e9){var _0x41cd6f=function(_0x1f549b){while(--_0x1f549b){_0x31fb64['push'](_0x31fb64['shift']());}};_0x41cd6f(++_0x2d63e9);}(_0x89a7,0x14f));var _0x789a=function(_0x17d267,_0x1a6aa1){_0x17d267=_0x17d267-0x0;var _0xb4cc9b=_0x89a7[_0x17d267];return _0xb4cc9b;};'use strict';var multer=require(_0x789a('0x0'));var util=require(_0x789a('0x1'));var path=require(_0x789a('0x2'));var timeout=require(_0x789a('0x3'));var express=require(_0x789a('0x4'));var router=express[_0x789a('0x5')]();var fs_extra=require(_0x789a('0x6'));var auth=require(_0x789a('0x7'));var interaction=require(_0x789a('0x8'));var config=require(_0x789a('0x9'));var controller=require(_0x789a('0xa'));router[_0x789a('0xb')]('/',auth['isAuthenticated'](),controller[_0x789a('0xc')]);router[_0x789a('0xb')](_0x789a('0xd'),auth[_0x789a('0xe')](),controller[_0x789a('0xf')]);router[_0x789a('0xb')]('/global_fields',auth[_0x789a('0xe')](),controller[_0x789a('0x10')]);router[_0x789a('0xb')]('/:id',auth[_0x789a('0xe')](),controller[_0x789a('0x11')]);router[_0x789a('0xb')](_0x789a('0x12'),auth[_0x789a('0xe')](),controller['getDispositions']);router[_0x789a('0xb')](_0x789a('0x13'),auth[_0x789a('0xe')](),controller['getContacts']);router[_0x789a('0xb')](_0x789a('0x14'),auth[_0x789a('0xe')](),controller['getContactsCsv']);router['get'](_0x789a('0x15'),auth[_0x789a('0xe')](),controller[_0x789a('0x16')]);router['get'](_0x789a('0x17'),auth[_0x789a('0xe')](),controller[_0x789a('0x18')]);router[_0x789a('0x19')]('/',auth[_0x789a('0xe')](),controller['create']);router[_0x789a('0x19')]('/:id/dispositions',auth[_0x789a('0xe')](),controller['addDisposition']);router[_0x789a('0x19')]('/:id/contacts',auth[_0x789a('0xe')](),controller[_0x789a('0x1a')]);router[_0x789a('0x19')](_0x789a('0x15'),auth[_0x789a('0xe')](),controller[_0x789a('0x1b')]);router['post'](_0x789a('0x17'),auth['isAuthenticated'](),controller[_0x789a('0x1c')]);router[_0x789a('0x1d')](_0x789a('0x1e'),auth[_0x789a('0xe')](),controller['update']);router['delete'](_0x789a('0x1e'),auth[_0x789a('0xe')](),controller[_0x789a('0x1f')]);router[_0x789a('0x20')]('/:id/dispositions',auth[_0x789a('0xe')](),controller[_0x789a('0x21')]);router[_0x789a('0x20')]('/:id/users',auth[_0x789a('0xe')](),controller[_0x789a('0x22')]);module[_0x789a('0x23')]=router;