Built motion from commit 753c950e.|2.5.42
[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 _0x0456=['./cmList.controller','isAuthenticated','/describe','describe','get','/:id','show','getDispositions','getContacts','/:id/contacts/csv','getContactsCsv','/:id/fields','getCustomFields','/:id/users','post','create','/:id/contacts','addContacts','addCustomField','addAgents','put','delete','removeDispositions','removeAgents','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x3c7492,_0x9fae6c){var _0x35d298=function(_0x9d1601){while(--_0x9d1601){_0x3c7492['push'](_0x3c7492['shift']());}};_0x35d298(++_0x9fae6c);}(_0x0456,0xb8));var _0x6045=function(_0x3e3f69,_0x1d000f){_0x3e3f69=_0x3e3f69-0x0;var _0x376dea=_0x0456[_0x3e3f69];return _0x376dea;};'use strict';var multer=require(_0x6045('0x0'));var util=require(_0x6045('0x1'));var path=require(_0x6045('0x2'));var timeout=require(_0x6045('0x3'));var express=require(_0x6045('0x4'));var router=express[_0x6045('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x6045('0x6'));var interaction=require(_0x6045('0x7'));var config=require('../../config/environment');var controller=require(_0x6045('0x8'));router['get']('/',auth[_0x6045('0x9')](),controller['index']);router['get'](_0x6045('0xa'),auth[_0x6045('0x9')](),controller[_0x6045('0xb')]);router[_0x6045('0xc')](_0x6045('0xd'),auth[_0x6045('0x9')](),controller[_0x6045('0xe')]);router[_0x6045('0xc')]('/:id/dispositions',auth[_0x6045('0x9')](),controller[_0x6045('0xf')]);router[_0x6045('0xc')]('/:id/contacts',auth[_0x6045('0x9')](),controller[_0x6045('0x10')]);router[_0x6045('0xc')](_0x6045('0x11'),auth[_0x6045('0x9')](),controller[_0x6045('0x12')]);router[_0x6045('0xc')](_0x6045('0x13'),auth[_0x6045('0x9')](),controller[_0x6045('0x14')]);router[_0x6045('0xc')](_0x6045('0x15'),auth[_0x6045('0x9')](),controller['getAgents']);router[_0x6045('0x16')]('/',auth[_0x6045('0x9')](),controller[_0x6045('0x17')]);router[_0x6045('0x16')]('/:id/dispositions',auth[_0x6045('0x9')](),controller['addDisposition']);router['post'](_0x6045('0x18'),auth['isAuthenticated'](),controller[_0x6045('0x19')]);router[_0x6045('0x16')](_0x6045('0x13'),auth['isAuthenticated'](),controller[_0x6045('0x1a')]);router[_0x6045('0x16')]('/:id/users',auth[_0x6045('0x9')](),controller[_0x6045('0x1b')]);router[_0x6045('0x1c')](_0x6045('0xd'),auth[_0x6045('0x9')](),controller['update']);router['delete'](_0x6045('0xd'),auth['isAuthenticated'](),controller['destroy']);router[_0x6045('0x1d')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x6045('0x1e')]);router[_0x6045('0x1d')](_0x6045('0x15'),auth[_0x6045('0x9')](),controller[_0x6045('0x1f')]);module['exports']=router;