Built motion from commit bbec7235.|2.6.20
[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 _0xa4c7=['getContactsCsv','/:id/fields','getCustomFields','/:id/users','getAgents','create','post','/:id/dispositions','addDisposition','addAgents','put','update','/:id','delete','removeDispositions','removeAgents','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./cmList.controller','get','isAuthenticated','index','/describe','describe','/global_fields','show','getDispositions','/:id/contacts','getContacts','/:id/contacts/csv'];(function(_0x185a4d,_0x2dcb97){var _0x30e4b1=function(_0x38fd29){while(--_0x38fd29){_0x185a4d['push'](_0x185a4d['shift']());}};_0x30e4b1(++_0x2dcb97);}(_0xa4c7,0x182));var _0x7a4c=function(_0x5548df,_0x37d5a2){_0x5548df=_0x5548df-0x0;var _0x1ccd76=_0xa4c7[_0x5548df];return _0x1ccd76;};'use strict';var multer=require(_0x7a4c('0x0'));var util=require(_0x7a4c('0x1'));var path=require(_0x7a4c('0x2'));var timeout=require(_0x7a4c('0x3'));var express=require(_0x7a4c('0x4'));var router=express[_0x7a4c('0x5')]();var fs_extra=require(_0x7a4c('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x7a4c('0x7'));var config=require(_0x7a4c('0x8'));var controller=require(_0x7a4c('0x9'));router[_0x7a4c('0xa')]('/',auth[_0x7a4c('0xb')](),controller[_0x7a4c('0xc')]);router[_0x7a4c('0xa')](_0x7a4c('0xd'),auth[_0x7a4c('0xb')](),controller[_0x7a4c('0xe')]);router[_0x7a4c('0xa')](_0x7a4c('0xf'),auth[_0x7a4c('0xb')](),controller['getGlobalCustomFields']);router[_0x7a4c('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x7a4c('0x10')]);router['get']('/:id/dispositions',auth['isAuthenticated'](),controller[_0x7a4c('0x11')]);router[_0x7a4c('0xa')](_0x7a4c('0x12'),auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x13')]);router['get'](_0x7a4c('0x14'),auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x15')]);router['get'](_0x7a4c('0x16'),auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x17')]);router[_0x7a4c('0xa')](_0x7a4c('0x18'),auth['isAuthenticated'](),controller[_0x7a4c('0x19')]);router['post']('/',auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x1a')]);router[_0x7a4c('0x1b')](_0x7a4c('0x1c'),auth['isAuthenticated'](),controller[_0x7a4c('0x1d')]);router[_0x7a4c('0x1b')]('/:id/contacts',auth[_0x7a4c('0xb')](),controller['addContacts']);router[_0x7a4c('0x1b')]('/:id/fields',auth[_0x7a4c('0xb')](),controller['addCustomField']);router[_0x7a4c('0x1b')](_0x7a4c('0x18'),auth['isAuthenticated'](),controller[_0x7a4c('0x1e')]);router[_0x7a4c('0x1f')]('/:id',auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x20')]);router['delete'](_0x7a4c('0x21'),auth['isAuthenticated'](),controller['destroy']);router[_0x7a4c('0x22')](_0x7a4c('0x1c'),auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x23')]);router['delete'](_0x7a4c('0x18'),auth[_0x7a4c('0xb')](),controller[_0x7a4c('0x24')]);module['exports']=router;