Built motion from commit (unavailable).|2.4.4
[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 _0xe5e9=['keyContent','variableName','Fields','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Tag','Subjects','content','Variable','ZendeskField','Descriptions','key','keyType'];(function(_0x9df060,_0x253d33){var _0x338dfe=function(_0x17d9a5){while(--_0x17d9a5){_0x9df060['push'](_0x9df060['shift']());}};_0x338dfe(++_0x253d33);}(_0xe5e9,0x1e6));var _0x9e5e=function(_0x4eec9b,_0x4aea09){_0x4eec9b=_0x4eec9b-0x0;var _0x2e3849=_0xe5e9[_0x4eec9b];return _0x2e3849;};'use strict';var client=require('../../client');exports[_0x9e5e('0x0')]=function(){return function(_0x3bed63){return client[_0x9e5e('0x1')](_0x9e5e('0x2'),{'options':{'raw':![],'attributes':['id',_0x9e5e('0x3'),_0x9e5e('0x4'),_0x9e5e('0x5'),_0x9e5e('0x6'),_0x9e5e('0x7'),_0x9e5e('0x8'),_0x9e5e('0x9'),_0x9e5e('0xa')],'include':[{'model':_0x9e5e('0xb'),'as':'Configurations','attributes':['id',_0x9e5e('0x3')],'include':[{'model':_0x9e5e('0xc'),'attributes':['id','name']},{'model':'ZendeskField','as':_0x9e5e('0xd'),'attributes':['id','type',_0x9e5e('0xe'),'variableName'],'include':[{'model':_0x9e5e('0xf'),'as':'Variable','attributes':['id',_0x9e5e('0x3')]}]},{'model':_0x9e5e('0x10'),'as':_0x9e5e('0x11'),'attributes':['id',_0x9e5e('0xa'),'content',_0x9e5e('0x12'),_0x9e5e('0x13'),_0x9e5e('0x14'),_0x9e5e('0x15')],'include':[{'model':_0x9e5e('0xf'),'as':_0x9e5e('0xf'),'attributes':['id',_0x9e5e('0x3')]}]},{'model':'ZendeskField','as':_0x9e5e('0x16'),'attributes':['id',_0x9e5e('0xa'),_0x9e5e('0xe'),'idField','nameField','customField',_0x9e5e('0x15')],'include':[{'model':_0x9e5e('0xf'),'as':_0x9e5e('0xf'),'attributes':['id','name']}]}]}]},'log':_0x9e5e('0x2')});};};