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