1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x79c5=['getAnswers','/:id/applications','getInteractions','getAgents','post','create','/:id/dispositions','/:id/canned_answers','/:id/notify','addApplications','/:id/users','addAgents','/:id/send','send','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports','multer','util','connect-timeout','express','../../components/auth/service','../../config/environment','get','isAuthenticated','index','describe','/:id','show'];(function(_0x35410b,_0x554e37){var _0x56d8c4=function(_0x276c92){while(--_0x276c92){_0x35410b['push'](_0x35410b['shift']());}};_0x56d8c4(++_0x554e37);}(_0x79c5,0x180));var _0x579c=function(_0x228057,_0x4e126d){_0x228057=_0x228057-0x0;var _0x5bc25b=_0x79c5[_0x228057];return _0x5bc25b;};'use strict';var multer=require(_0x579c('0x0'));var util=require(_0x579c('0x1'));var path=require('path');var timeout=require(_0x579c('0x2'));var express=require(_0x579c('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x579c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x579c('0x5'));var controller=require('./openchannelAccount.controller');router[_0x579c('0x6')]('/',auth[_0x579c('0x7')](),controller[_0x579c('0x8')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x579c('0x9')]);router[_0x579c('0x6')](_0x579c('0xa'),auth[_0x579c('0x7')](),controller[_0x579c('0xb')]);router[_0x579c('0x6')]('/:id/dispositions',auth['isAuthenticated'](),controller['getDispositions']);router[_0x579c('0x6')]('/:id/canned_answers',auth[_0x579c('0x7')](),controller[_0x579c('0xc')]);router['get'](_0x579c('0xd'),auth[_0x579c('0x7')](),controller['getApplications']);router['get']('/:id/interactions',auth[_0x579c('0x7')](),controller[_0x579c('0xe')]);router[_0x579c('0x6')]('/:id/users',auth[_0x579c('0x7')](),controller[_0x579c('0xf')]);router[_0x579c('0x10')]('/',auth['isAuthenticated'](),controller[_0x579c('0x11')]);router[_0x579c('0x10')](_0x579c('0x12'),auth[_0x579c('0x7')](),controller['addDisposition']);router[_0x579c('0x10')](_0x579c('0x13'),auth[_0x579c('0x7')](),controller['addAnswer']);router['post'](_0x579c('0x14'),controller['notify']);router[_0x579c('0x10')](_0x579c('0xd'),auth[_0x579c('0x7')](),controller[_0x579c('0x15')]);router['post'](_0x579c('0x16'),auth[_0x579c('0x7')](),controller[_0x579c('0x17')]);router[_0x579c('0x10')](_0x579c('0x18'),auth[_0x579c('0x7')](),controller[_0x579c('0x19')]);router['put'](_0x579c('0xa'),auth['isAuthenticated'](),controller[_0x579c('0x1a')]);router[_0x579c('0x1b')](_0x579c('0xa'),auth[_0x579c('0x7')](),controller[_0x579c('0x1c')]);router['delete']('/:id/dispositions',auth[_0x579c('0x7')](),controller[_0x579c('0x1d')]);router['delete']('/:id/canned_answers',auth[_0x579c('0x7')](),controller[_0x579c('0x1e')]);router[_0x579c('0x1b')]('/:id/users',auth['isAuthenticated'](),controller[_0x579c('0x1f')]);module[_0x579c('0x20')]=router;