Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x46c3=['token','remoteUri','authType','ZendeskConfiguration','ZendeskField','type','content','Variable','keyContent','variableName','Fields','nameField','customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','name','password'];(function(_0x1beef3,_0x57c4b8){var _0x5af964=function(_0x36f463){while(--_0x36f463){_0x1beef3['push'](_0x1beef3['shift']());}};_0x5af964(++_0x57c4b8);}(_0x46c3,0x13e));var _0x346c=function(_0x3bfa6d,_0x307f55){_0x3bfa6d=_0x3bfa6d-0x0;var _0x364019=_0x46c3[_0x3bfa6d];return _0x364019;};'use strict';var client=require(_0x346c('0x0'));exports[_0x346c('0x1')]=function(){return function(_0x59f723){return client[_0x346c('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x346c('0x3'),'username',_0x346c('0x4'),_0x346c('0x5'),_0x346c('0x6'),_0x346c('0x7'),'serverUrl','type'],'include':[{'model':_0x346c('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x346c('0x3')]},{'model':_0x346c('0x9'),'as':'Subjects','attributes':['id',_0x346c('0xa'),_0x346c('0xb'),'variableName'],'include':[{'model':_0x346c('0xc'),'as':_0x346c('0xc'),'attributes':['id',_0x346c('0x3')]}]},{'model':_0x346c('0x9'),'as':'Descriptions','attributes':['id',_0x346c('0xa'),_0x346c('0xb'),'key','keyType',_0x346c('0xd'),_0x346c('0xe')],'include':[{'model':_0x346c('0xc'),'as':_0x346c('0xc'),'attributes':['id',_0x346c('0x3')]}]},{'model':'ZendeskField','as':_0x346c('0xf'),'attributes':['id',_0x346c('0xa'),'content','idField',_0x346c('0x10'),_0x346c('0x11'),_0x346c('0xe')],'include':[{'model':_0x346c('0xc'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x346c('0x12')});};};