Built motion from commit (unavailable).|2.4.11
[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 _0xb170=['show','/:id/dispositions','getDispositions','getAnswers','/:id/applications','getApplications','/:id/users','getAgents','post','addDisposition','addAnswer','/:id/notify','notify','addApplications','addAgents','/:id/send','send','update','delete','destroy','removeDispositions','/:id/canned_answers','removeAnswers','removeAgents','exports','multer','util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelAccount.controller','get','isAuthenticated','index','describe','/:id'];(function(_0x460c61,_0x40461e){var _0x401398=function(_0x136044){while(--_0x136044){_0x460c61['push'](_0x460c61['shift']());}};_0x401398(++_0x40461e);}(_0xb170,0x1d5));var _0x0b17=function(_0x1cc8fe,_0x105328){_0x1cc8fe=_0x1cc8fe-0x0;var _0x230054=_0xb170[_0x1cc8fe];return _0x230054;};'use strict';var multer=require(_0x0b17('0x0'));var util=require(_0x0b17('0x1'));var path=require(_0x0b17('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x0b17('0x3'));var interaction=require(_0x0b17('0x4'));var config=require(_0x0b17('0x5'));var controller=require(_0x0b17('0x6'));router[_0x0b17('0x7')]('/',auth[_0x0b17('0x8')](),controller[_0x0b17('0x9')]);router[_0x0b17('0x7')]('/describe',auth[_0x0b17('0x8')](),controller[_0x0b17('0xa')]);router[_0x0b17('0x7')](_0x0b17('0xb'),auth['isAuthenticated'](),controller[_0x0b17('0xc')]);router[_0x0b17('0x7')](_0x0b17('0xd'),auth[_0x0b17('0x8')](),controller[_0x0b17('0xe')]);router[_0x0b17('0x7')]('/:id/canned_answers',auth[_0x0b17('0x8')](),controller[_0x0b17('0xf')]);router['get'](_0x0b17('0x10'),auth[_0x0b17('0x8')](),controller[_0x0b17('0x11')]);router[_0x0b17('0x7')]('/:id/interactions',auth[_0x0b17('0x8')](),controller['getInteractions']);router[_0x0b17('0x7')](_0x0b17('0x12'),auth[_0x0b17('0x8')](),controller[_0x0b17('0x13')]);router['post']('/',auth[_0x0b17('0x8')](),controller['create']);router[_0x0b17('0x14')](_0x0b17('0xd'),auth[_0x0b17('0x8')](),controller[_0x0b17('0x15')]);router[_0x0b17('0x14')]('/:id/canned_answers',auth[_0x0b17('0x8')](),controller[_0x0b17('0x16')]);router[_0x0b17('0x14')](_0x0b17('0x17'),controller[_0x0b17('0x18')]);router[_0x0b17('0x14')](_0x0b17('0x10'),auth[_0x0b17('0x8')](),controller[_0x0b17('0x19')]);router[_0x0b17('0x14')](_0x0b17('0x12'),auth['isAuthenticated'](),controller[_0x0b17('0x1a')]);router['post'](_0x0b17('0x1b'),auth[_0x0b17('0x8')](),controller[_0x0b17('0x1c')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x0b17('0x1d')]);router[_0x0b17('0x1e')](_0x0b17('0xb'),auth['isAuthenticated'](),controller[_0x0b17('0x1f')]);router['delete']('/:id/dispositions',auth[_0x0b17('0x8')](),controller[_0x0b17('0x20')]);router[_0x0b17('0x1e')](_0x0b17('0x21'),auth[_0x0b17('0x8')](),controller[_0x0b17('0x22')]);router[_0x0b17('0x1e')](_0x0b17('0x12'),auth['isAuthenticated'](),controller[_0x0b17('0x23')]);module[_0x0b17('0x24')]=router;