3bf15973fcf532af0b6fc9241bdb784ca6a03d20
[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 _0x140c=['send','put','update','delete','destroy','removeDispositions','removeAnswers','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./openchannelAccount.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','/:id/applications','/:id/interactions','getInteractions','/:id/users','post','addAnswer','/:id/notify','notify','addApplications','addAgents'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x140c,0x94));var _0xc140=function(_0x364ba4,_0x5e797f){_0x364ba4=_0x364ba4-0x0;var _0x4aa4ef=_0x140c[_0x364ba4];return _0x4aa4ef;};'use strict';var multer=require(_0xc140('0x0'));var util=require(_0xc140('0x1'));var path=require(_0xc140('0x2'));var timeout=require(_0xc140('0x3'));var express=require('express');var router=express[_0xc140('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xc140('0x5'));var config=require(_0xc140('0x6'));var controller=require(_0xc140('0x7'));router[_0xc140('0x8')]('/',auth[_0xc140('0x9')](),controller['index']);router['get'](_0xc140('0xa'),auth[_0xc140('0x9')](),controller[_0xc140('0xb')]);router['get'](_0xc140('0xc'),auth['isAuthenticated'](),controller[_0xc140('0xd')]);router[_0xc140('0x8')](_0xc140('0xe'),auth[_0xc140('0x9')](),controller[_0xc140('0xf')]);router[_0xc140('0x8')](_0xc140('0x10'),auth['isAuthenticated'](),controller['getAnswers']);router[_0xc140('0x8')](_0xc140('0x11'),auth[_0xc140('0x9')](),controller['getApplications']);router[_0xc140('0x8')](_0xc140('0x12'),auth[_0xc140('0x9')](),controller[_0xc140('0x13')]);router['get'](_0xc140('0x14'),auth[_0xc140('0x9')](),controller['getAgents']);router['post']('/',auth[_0xc140('0x9')](),controller['create']);router[_0xc140('0x15')](_0xc140('0xe'),auth[_0xc140('0x9')](),controller['addDisposition']);router[_0xc140('0x15')](_0xc140('0x10'),auth[_0xc140('0x9')](),controller[_0xc140('0x16')]);router['post'](_0xc140('0x17'),controller[_0xc140('0x18')]);router['post'](_0xc140('0x11'),auth[_0xc140('0x9')](),controller[_0xc140('0x19')]);router['post'](_0xc140('0x14'),auth[_0xc140('0x9')](),controller[_0xc140('0x1a')]);router[_0xc140('0x15')]('/:id/send',auth[_0xc140('0x9')](),controller[_0xc140('0x1b')]);router[_0xc140('0x1c')]('/:id',auth[_0xc140('0x9')](),controller[_0xc140('0x1d')]);router[_0xc140('0x1e')](_0xc140('0xc'),auth[_0xc140('0x9')](),controller[_0xc140('0x1f')]);router[_0xc140('0x1e')]('/:id/dispositions',auth[_0xc140('0x9')](),controller[_0xc140('0x20')]);router[_0xc140('0x1e')](_0xc140('0x10'),auth[_0xc140('0x9')](),controller[_0xc140('0x21')]);router[_0xc140('0x1e')](_0xc140('0x14'),auth[_0xc140('0x9')](),controller['removeAgents']);module[_0xc140('0x22')]=router;