Built motion from commit (unavailable).|2.5.4
[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 _0x787c=['getDispositions','/:id/contacts','getContacts','/:id/contacts/csv','/:id/fields','getCustomFields','/:id/users','getAgents','create','addDisposition','post','addContacts','addCustomField','addAgents','update','delete','destroy','removeDispositions','removeAgents','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./cmList.controller','get','isAuthenticated','index','/:id','show','/:id/dispositions'];(function(_0x435eff,_0x1138e3){var _0x509d7b=function(_0x3c75ec){while(--_0x3c75ec){_0x435eff['push'](_0x435eff['shift']());}};_0x509d7b(++_0x1138e3);}(_0x787c,0xbe));var _0xc787=function(_0x4c35d1,_0x3e2464){_0x4c35d1=_0x4c35d1-0x0;var _0x2cdd4f=_0x787c[_0x4c35d1];return _0x2cdd4f;};'use strict';var multer=require(_0xc787('0x0'));var util=require(_0xc787('0x1'));var path=require('path');var timeout=require(_0xc787('0x2'));var express=require(_0xc787('0x3'));var router=express[_0xc787('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xc787('0x5'));var config=require(_0xc787('0x6'));var controller=require(_0xc787('0x7'));router[_0xc787('0x8')]('/',auth[_0xc787('0x9')](),controller[_0xc787('0xa')]);router[_0xc787('0x8')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xc787('0x8')](_0xc787('0xb'),auth['isAuthenticated'](),controller[_0xc787('0xc')]);router[_0xc787('0x8')](_0xc787('0xd'),auth[_0xc787('0x9')](),controller[_0xc787('0xe')]);router[_0xc787('0x8')](_0xc787('0xf'),auth[_0xc787('0x9')](),controller[_0xc787('0x10')]);router[_0xc787('0x8')](_0xc787('0x11'),auth['isAuthenticated'](),controller['getContactsCsv']);router['get'](_0xc787('0x12'),auth[_0xc787('0x9')](),controller[_0xc787('0x13')]);router['get'](_0xc787('0x14'),auth[_0xc787('0x9')](),controller[_0xc787('0x15')]);router['post']('/',auth[_0xc787('0x9')](),controller[_0xc787('0x16')]);router['post'](_0xc787('0xd'),auth[_0xc787('0x9')](),controller[_0xc787('0x17')]);router[_0xc787('0x18')](_0xc787('0xf'),auth['isAuthenticated'](),controller[_0xc787('0x19')]);router[_0xc787('0x18')]('/:id/fields',auth[_0xc787('0x9')](),controller[_0xc787('0x1a')]);router[_0xc787('0x18')](_0xc787('0x14'),auth['isAuthenticated'](),controller[_0xc787('0x1b')]);router['put'](_0xc787('0xb'),auth[_0xc787('0x9')](),controller[_0xc787('0x1c')]);router[_0xc787('0x1d')](_0xc787('0xb'),auth[_0xc787('0x9')](),controller[_0xc787('0x1e')]);router[_0xc787('0x1d')](_0xc787('0xd'),auth['isAuthenticated'](),controller[_0xc787('0x1f')]);router[_0xc787('0x1d')](_0xc787('0x14'),auth[_0xc787('0x9')](),controller[_0xc787('0x20')]);module[_0xc787('0x21')]=router;