c3e72231ba8b0566d14415f8606ddbb861837437
[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 _0x518b=['addDisposition','/:id/contacts','addContacts','addCustomField','addAgents','put','delete','destroy','removeDispositions','removeAgents','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','./cmList.controller','get','index','/describe','isAuthenticated','/global_fields','getGlobalCustomFields','/:id','show','getContacts','/:id/contacts/csv','/:id/users','getAgents','post','/:id/dispositions'];(function(_0x211c7b,_0x1c03ee){var _0x57b12=function(_0x284c5e){while(--_0x284c5e){_0x211c7b['push'](_0x211c7b['shift']());}};_0x57b12(++_0x1c03ee);}(_0x518b,0x6e));var _0xb518=function(_0x29b634,_0x369836){_0x29b634=_0x29b634-0x0;var _0x4c1074=_0x518b[_0x29b634];return _0x4c1074;};'use strict';var multer=require(_0xb518('0x0'));var util=require(_0xb518('0x1'));var path=require(_0xb518('0x2'));var timeout=require(_0xb518('0x3'));var express=require('express');var router=express[_0xb518('0x4')]();var fs_extra=require(_0xb518('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xb518('0x6'));var config=require('../../config/environment');var controller=require(_0xb518('0x7'));router[_0xb518('0x8')]('/',auth['isAuthenticated'](),controller[_0xb518('0x9')]);router['get'](_0xb518('0xa'),auth[_0xb518('0xb')](),controller['describe']);router[_0xb518('0x8')](_0xb518('0xc'),auth[_0xb518('0xb')](),controller[_0xb518('0xd')]);router[_0xb518('0x8')](_0xb518('0xe'),auth[_0xb518('0xb')](),controller[_0xb518('0xf')]);router[_0xb518('0x8')]('/:id/dispositions',auth[_0xb518('0xb')](),controller['getDispositions']);router[_0xb518('0x8')]('/:id/contacts',auth[_0xb518('0xb')](),controller[_0xb518('0x10')]);router[_0xb518('0x8')](_0xb518('0x11'),auth[_0xb518('0xb')](),controller['getContactsCsv']);router[_0xb518('0x8')]('/:id/fields',auth[_0xb518('0xb')](),controller['getCustomFields']);router[_0xb518('0x8')](_0xb518('0x12'),auth[_0xb518('0xb')](),controller[_0xb518('0x13')]);router[_0xb518('0x14')]('/',auth['isAuthenticated'](),controller['create']);router[_0xb518('0x14')](_0xb518('0x15'),auth[_0xb518('0xb')](),controller[_0xb518('0x16')]);router[_0xb518('0x14')](_0xb518('0x17'),auth['isAuthenticated'](),controller[_0xb518('0x18')]);router[_0xb518('0x14')]('/:id/fields',auth[_0xb518('0xb')](),controller[_0xb518('0x19')]);router[_0xb518('0x14')](_0xb518('0x12'),auth[_0xb518('0xb')](),controller[_0xb518('0x1a')]);router[_0xb518('0x1b')](_0xb518('0xe'),auth[_0xb518('0xb')](),controller['update']);router[_0xb518('0x1c')](_0xb518('0xe'),auth[_0xb518('0xb')](),controller[_0xb518('0x1d')]);router['delete']('/:id/dispositions',auth[_0xb518('0xb')](),controller[_0xb518('0x1e')]);router[_0xb518('0x1c')](_0xb518('0x12'),auth['isAuthenticated'](),controller[_0xb518('0x1f')]);module[_0xb518('0x20')]=router;