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