aa6965c4baa3a7d9af8b5b27d48e132174d71004
[motion2.git] / server / api / openchannelAccount / 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 _0x77e6=['../../components/auth/service','../../config/environment','./openchannelAccount.controller','isAuthenticated','get','describe','/:id','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/interactions','getInteractions','getAgents','post','create','/:id/dispositions','addDisposition','addAnswer','/:id/notify','notify','addApplications','/:id/users','addAgents','/:id/send','send','put','update','delete','removeDispositions','removeAnswers','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x5afc26,_0x2d3b5c){var _0x54e983=function(_0x536e9d){while(--_0x536e9d){_0x5afc26['push'](_0x5afc26['shift']());}};_0x54e983(++_0x2d3b5c);}(_0x77e6,0x1a6));var _0x677e=function(_0x59abb8,_0x17e6a7){_0x59abb8=_0x59abb8-0x0;var _0x1dc419=_0x77e6[_0x59abb8];return _0x1dc419;};'use strict';var multer=require(_0x677e('0x0'));var util=require(_0x677e('0x1'));var path=require(_0x677e('0x2'));var timeout=require(_0x677e('0x3'));var express=require(_0x677e('0x4'));var router=express[_0x677e('0x5')]();var fs_extra=require(_0x677e('0x6'));var auth=require(_0x677e('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x677e('0x8'));var controller=require(_0x677e('0x9'));router['get']('/',auth[_0x677e('0xa')](),controller['index']);router[_0x677e('0xb')]('/describe',auth['isAuthenticated'](),controller[_0x677e('0xc')]);router[_0x677e('0xb')](_0x677e('0xd'),auth[_0x677e('0xa')](),controller['show']);router[_0x677e('0xb')]('/:id/dispositions',auth[_0x677e('0xa')](),controller[_0x677e('0xe')]);router[_0x677e('0xb')](_0x677e('0xf'),auth[_0x677e('0xa')](),controller[_0x677e('0x10')]);router[_0x677e('0xb')](_0x677e('0x11'),auth[_0x677e('0xa')](),controller[_0x677e('0x12')]);router[_0x677e('0xb')](_0x677e('0x13'),auth[_0x677e('0xa')](),controller[_0x677e('0x14')]);router['get']('/:id/users',auth['isAuthenticated'](),controller[_0x677e('0x15')]);router[_0x677e('0x16')]('/',auth[_0x677e('0xa')](),controller[_0x677e('0x17')]);router[_0x677e('0x16')](_0x677e('0x18'),auth[_0x677e('0xa')](),controller[_0x677e('0x19')]);router[_0x677e('0x16')](_0x677e('0xf'),auth[_0x677e('0xa')](),controller[_0x677e('0x1a')]);router['post'](_0x677e('0x1b'),controller[_0x677e('0x1c')]);router[_0x677e('0x16')](_0x677e('0x11'),auth[_0x677e('0xa')](),controller[_0x677e('0x1d')]);router['post'](_0x677e('0x1e'),auth['isAuthenticated'](),controller[_0x677e('0x1f')]);router[_0x677e('0x16')](_0x677e('0x20'),auth['isAuthenticated'](),controller[_0x677e('0x21')]);router[_0x677e('0x22')](_0x677e('0xd'),auth[_0x677e('0xa')](),controller[_0x677e('0x23')]);router[_0x677e('0x24')](_0x677e('0xd'),auth['isAuthenticated'](),controller['destroy']);router['delete'](_0x677e('0x18'),auth[_0x677e('0xa')](),controller[_0x677e('0x25')]);router[_0x677e('0x24')](_0x677e('0xf'),auth[_0x677e('0xa')](),controller[_0x677e('0x26')]);router[_0x677e('0x24')](_0x677e('0x1e'),auth[_0x677e('0xa')](),controller['removeAgents']);module['exports']=router;