Built motion from commit (unavailable).|2.5.17
[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 _0xc61c=['customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','variableName','Variable','Descriptions','content','key','keyType','keyContent','idField','nameField'];(function(_0x10631d,_0x785aef){var _0x7582cc=function(_0x401f0d){while(--_0x401f0d){_0x10631d['push'](_0x10631d['shift']());}};_0x7582cc(++_0x785aef);}(_0xc61c,0xb0));var _0xcc61=function(_0x722103,_0x5732f3){_0x722103=_0x722103-0x0;var _0x3e2435=_0xc61c[_0x722103];return _0x3e2435;};'use strict';var client=require(_0xcc61('0x0'));exports[_0xcc61('0x1')]=function(){return function(_0x242b4a){return client[_0xcc61('0x2')](_0xcc61('0x3'),{'options':{'raw':![],'attributes':['id',_0xcc61('0x4'),_0xcc61('0x5'),_0xcc61('0x6'),_0xcc61('0x7'),_0xcc61('0x8'),_0xcc61('0x9'),'serverUrl',_0xcc61('0xa')],'include':[{'model':_0xcc61('0xb'),'as':_0xcc61('0xc'),'attributes':['id',_0xcc61('0x4')],'include':[{'model':_0xcc61('0xd'),'attributes':['id',_0xcc61('0x4')]},{'model':_0xcc61('0xe'),'as':'Subjects','attributes':['id',_0xcc61('0xa'),'content',_0xcc61('0xf')],'include':[{'model':_0xcc61('0x10'),'as':_0xcc61('0x10'),'attributes':['id','name']}]},{'model':'ZendeskField','as':_0xcc61('0x11'),'attributes':['id',_0xcc61('0xa'),_0xcc61('0x12'),_0xcc61('0x13'),_0xcc61('0x14'),_0xcc61('0x15'),_0xcc61('0xf')],'include':[{'model':'Variable','as':_0xcc61('0x10'),'attributes':['id','name']}]},{'model':_0xcc61('0xe'),'as':'Fields','attributes':['id','type',_0xcc61('0x12'),_0xcc61('0x16'),_0xcc61('0x17'),_0xcc61('0x18'),'variableName'],'include':[{'model':_0xcc61('0x10'),'as':_0xcc61('0x10'),'attributes':['id',_0xcc61('0x4')]}]}]}]},'log':_0xcc61('0x3')});};};