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