1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x7cb2=['isAuthenticated','index','get','/describe','describe','/global_fields','/:id','show','/:id/dispositions','getDispositions','getContacts','/:id/contacts/csv','getContactsCsv','getCustomFields','/:id/users','getAgents','post','create','addDisposition','addContacts','addCustomField','addAgents','put','delete','removeDispositions','removeAgents','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./cmList.controller'];(function(_0x251d9c,_0x580977){var _0x16ae64=function(_0x4d3b53){while(--_0x4d3b53){_0x251d9c['push'](_0x251d9c['shift']());}};_0x16ae64(++_0x580977);}(_0x7cb2,0x178));var _0x27cb=function(_0x50e501,_0x3327d0){_0x50e501=_0x50e501-0x0;var _0x17d4b7=_0x7cb2[_0x50e501];return _0x17d4b7;};'use strict';var multer=require('multer');var util=require(_0x27cb('0x0'));var path=require(_0x27cb('0x1'));var timeout=require(_0x27cb('0x2'));var express=require(_0x27cb('0x3'));var router=express[_0x27cb('0x4')]();var fs_extra=require(_0x27cb('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x27cb('0x6'));var config=require(_0x27cb('0x7'));var controller=require(_0x27cb('0x8'));router['get']('/',auth[_0x27cb('0x9')](),controller[_0x27cb('0xa')]);router[_0x27cb('0xb')](_0x27cb('0xc'),auth['isAuthenticated'](),controller[_0x27cb('0xd')]);router['get'](_0x27cb('0xe'),auth[_0x27cb('0x9')](),controller['getGlobalCustomFields']);router[_0x27cb('0xb')](_0x27cb('0xf'),auth[_0x27cb('0x9')](),controller[_0x27cb('0x10')]);router[_0x27cb('0xb')](_0x27cb('0x11'),auth[_0x27cb('0x9')](),controller[_0x27cb('0x12')]);router[_0x27cb('0xb')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x27cb('0x13')]);router[_0x27cb('0xb')](_0x27cb('0x14'),auth[_0x27cb('0x9')](),controller[_0x27cb('0x15')]);router[_0x27cb('0xb')]('/:id/fields',auth[_0x27cb('0x9')](),controller[_0x27cb('0x16')]);router[_0x27cb('0xb')](_0x27cb('0x17'),auth[_0x27cb('0x9')](),controller[_0x27cb('0x18')]);router[_0x27cb('0x19')]('/',auth[_0x27cb('0x9')](),controller[_0x27cb('0x1a')]);router[_0x27cb('0x19')](_0x27cb('0x11'),auth['isAuthenticated'](),controller[_0x27cb('0x1b')]);router[_0x27cb('0x19')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x27cb('0x1c')]);router[_0x27cb('0x19')]('/:id/fields',auth['isAuthenticated'](),controller[_0x27cb('0x1d')]);router[_0x27cb('0x19')](_0x27cb('0x17'),auth[_0x27cb('0x9')](),controller[_0x27cb('0x1e')]);router[_0x27cb('0x1f')]('/:id',auth[_0x27cb('0x9')](),controller['update']);router[_0x27cb('0x20')](_0x27cb('0xf'),auth['isAuthenticated'](),controller['destroy']);router[_0x27cb('0x20')](_0x27cb('0x11'),auth[_0x27cb('0x9')](),controller[_0x27cb('0x21')]);router['delete']('/:id/users',auth[_0x27cb('0x9')](),controller[_0x27cb('0x22')]);module['exports']=router;