1c02210b9fa8bd173016e14fa6a5da49c5d357df
[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 _0x09cd=['key','keyContent','Fields','GetZendeskAccount','../../client','Request','name','username','token','remoteUri','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','content','variableName','Variable','Descriptions'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0x09cd,0x169));var _0xd09c=function(_0x54a197,_0x229208){_0x54a197=_0x54a197-0x0;var _0x54faea=_0x09cd[_0x54a197];return _0x54faea;};'use strict';var client=require(_0xd09c('0x0'));exports['getZendeskAccounts']=function(){return function(_0xcbac7f){return client[_0xd09c('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0xd09c('0x2'),_0xd09c('0x3'),'password',_0xd09c('0x4'),_0xd09c('0x5'),'authType',_0xd09c('0x6'),_0xd09c('0x7')],'include':[{'model':_0xd09c('0x8'),'as':_0xd09c('0x9'),'attributes':['id',_0xd09c('0x2')],'include':[{'model':_0xd09c('0xa'),'attributes':['id',_0xd09c('0x2')]},{'model':_0xd09c('0xb'),'as':_0xd09c('0xc'),'attributes':['id','type',_0xd09c('0xd'),_0xd09c('0xe')],'include':[{'model':'Variable','as':_0xd09c('0xf'),'attributes':['id',_0xd09c('0x2')]}]},{'model':'ZendeskField','as':_0xd09c('0x10'),'attributes':['id',_0xd09c('0x7'),_0xd09c('0xd'),_0xd09c('0x11'),'keyType',_0xd09c('0x12'),'variableName'],'include':[{'model':_0xd09c('0xf'),'as':_0xd09c('0xf'),'attributes':['id',_0xd09c('0x2')]}]},{'model':_0xd09c('0xb'),'as':_0xd09c('0x13'),'attributes':['id',_0xd09c('0x7'),'content','idField','nameField','customField','variableName'],'include':[{'model':_0xd09c('0xf'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xd09c('0x14')});};};