55bf26ef016ca8738be8e4ed88e3dbc5e85d9d65
[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 _0x02e2=['ZendeskField','content','variableName','Variable','key','keyType','Fields','type','idField','customField','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','Tag'];(function(_0x2ae5c9,_0x3db18b){var _0x1babc8=function(_0x3529cf){while(--_0x3529cf){_0x2ae5c9['push'](_0x2ae5c9['shift']());}};_0x1babc8(++_0x3db18b);}(_0x02e2,0x11e));var _0x202e=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x02e2[_0x14add3];return _0x4a174f;};'use strict';var client=require('../../client');exports[_0x202e('0x0')]=function(){return function(_0x592631){return client[_0x202e('0x1')](_0x202e('0x2'),{'options':{'raw':![],'attributes':['id',_0x202e('0x3'),_0x202e('0x4'),_0x202e('0x5'),_0x202e('0x6'),_0x202e('0x7'),_0x202e('0x8'),_0x202e('0x9'),'type'],'include':[{'model':_0x202e('0xa'),'as':_0x202e('0xb'),'attributes':['id',_0x202e('0x3')],'include':[{'model':_0x202e('0xc'),'attributes':['id',_0x202e('0x3')]},{'model':_0x202e('0xd'),'as':'Subjects','attributes':['id','type',_0x202e('0xe'),_0x202e('0xf')],'include':[{'model':_0x202e('0x10'),'as':_0x202e('0x10'),'attributes':['id',_0x202e('0x3')]}]},{'model':_0x202e('0xd'),'as':'Descriptions','attributes':['id','type',_0x202e('0xe'),_0x202e('0x11'),_0x202e('0x12'),'keyContent',_0x202e('0xf')],'include':[{'model':_0x202e('0x10'),'as':'Variable','attributes':['id',_0x202e('0x3')]}]},{'model':'ZendeskField','as':_0x202e('0x13'),'attributes':['id',_0x202e('0x14'),'content',_0x202e('0x15'),'nameField',_0x202e('0x16'),'variableName'],'include':[{'model':_0x202e('0x10'),'as':_0x202e('0x10'),'attributes':['id',_0x202e('0x3')]}]}]}]},'log':_0x202e('0x2')});};};