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