Built motion from commit 00bf23f6.|2.6.16
[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 _0xf0ac=['variableName','Variable','Descriptions','key','keyContent','idField','nameField','customField','getZendeskAccounts','Request','GetZendeskAccount','name','password','token','remoteUri','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','content'];(function(_0xb24c90,_0x45e8a4){var _0x49e2e3=function(_0x2b53d4){while(--_0x2b53d4){_0xb24c90['push'](_0xb24c90['shift']());}};_0x49e2e3(++_0x45e8a4);}(_0xf0ac,0x133));var _0xcf0a=function(_0x17d6c8,_0x2e8065){_0x17d6c8=_0x17d6c8-0x0;var _0x371106=_0xf0ac[_0x17d6c8];return _0x371106;};'use strict';var client=require('../../client');exports[_0xcf0a('0x0')]=function(){return function(_0xebb2c8){return client[_0xcf0a('0x1')](_0xcf0a('0x2'),{'options':{'raw':![],'attributes':['id',_0xcf0a('0x3'),'username',_0xcf0a('0x4'),_0xcf0a('0x5'),_0xcf0a('0x6'),'authType',_0xcf0a('0x7'),_0xcf0a('0x8')],'include':[{'model':_0xcf0a('0x9'),'as':_0xcf0a('0xa'),'attributes':['id',_0xcf0a('0x3')],'include':[{'model':_0xcf0a('0xb'),'attributes':['id',_0xcf0a('0x3')]},{'model':_0xcf0a('0xc'),'as':_0xcf0a('0xd'),'attributes':['id','type',_0xcf0a('0xe'),_0xcf0a('0xf')],'include':[{'model':_0xcf0a('0x10'),'as':_0xcf0a('0x10'),'attributes':['id',_0xcf0a('0x3')]}]},{'model':_0xcf0a('0xc'),'as':_0xcf0a('0x11'),'attributes':['id',_0xcf0a('0x8'),'content',_0xcf0a('0x12'),'keyType',_0xcf0a('0x13'),'variableName'],'include':[{'model':'Variable','as':_0xcf0a('0x10'),'attributes':['id','name']}]},{'model':_0xcf0a('0xc'),'as':'Fields','attributes':['id','type',_0xcf0a('0xe'),_0xcf0a('0x14'),_0xcf0a('0x15'),_0xcf0a('0x16'),_0xcf0a('0xf')],'include':[{'model':_0xcf0a('0x10'),'as':_0xcf0a('0x10'),'attributes':['id',_0xcf0a('0x3')]}]}]}]},'log':_0xcf0a('0x2')});};};