Built motion from commit b0a9a629.|2.6.33
[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 _0xe518=['ZendeskConfiguration','Configurations','name','ZendeskField','Subjects','content','variableName','Variable','keyContent','customField','getZendeskAccounts','Request','GetZendeskAccount','remoteUri','authType','serverUrl','type'];(function(_0x17bbe6,_0x17cea8){var _0x2b95c2=function(_0x3042c6){while(--_0x3042c6){_0x17bbe6['push'](_0x17bbe6['shift']());}};_0x2b95c2(++_0x17cea8);}(_0xe518,0x1e6));var _0x8e51=function(_0x59de22,_0x57015f){_0x59de22=_0x59de22-0x0;var _0x1d4157=_0xe518[_0x59de22];return _0x1d4157;};'use strict';var client=require('../../client');exports[_0x8e51('0x0')]=function(){return function(_0x42b3ca){return client[_0x8e51('0x1')](_0x8e51('0x2'),{'options':{'raw':![],'attributes':['id','name','username','password','token',_0x8e51('0x3'),_0x8e51('0x4'),_0x8e51('0x5'),_0x8e51('0x6')],'include':[{'model':_0x8e51('0x7'),'as':_0x8e51('0x8'),'attributes':['id',_0x8e51('0x9')],'include':[{'model':'Tag','attributes':['id',_0x8e51('0x9')]},{'model':_0x8e51('0xa'),'as':_0x8e51('0xb'),'attributes':['id','type',_0x8e51('0xc'),_0x8e51('0xd')],'include':[{'model':_0x8e51('0xe'),'as':_0x8e51('0xe'),'attributes':['id',_0x8e51('0x9')]}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0x8e51('0x6'),'content','key','keyType',_0x8e51('0xf'),'variableName'],'include':[{'model':_0x8e51('0xe'),'as':'Variable','attributes':['id',_0x8e51('0x9')]}]},{'model':_0x8e51('0xa'),'as':'Fields','attributes':['id',_0x8e51('0x6'),'content','idField','nameField',_0x8e51('0x10'),_0x8e51('0xd')],'include':[{'model':'Variable','as':_0x8e51('0xe'),'attributes':['id',_0x8e51('0x9')]}]}]}]},'log':'GetZendeskAccount'});};};