Built motion from commit 14588770.|2.5.38
[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 _0xf4b5=['Tag','ZendeskField','Subjects','type','Variable','Descriptions','content','key','keyContent','variableName','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','ZendeskConfiguration','Configurations'];(function(_0x2ff4bd,_0x4780a6){var _0x28edc6=function(_0x792380){while(--_0x792380){_0x2ff4bd['push'](_0x2ff4bd['shift']());}};_0x28edc6(++_0x4780a6);}(_0xf4b5,0x1bd));var _0x5f4b=function(_0x112929,_0x7da466){_0x112929=_0x112929-0x0;var _0x333c16=_0xf4b5[_0x112929];return _0x333c16;};'use strict';var client=require(_0x5f4b('0x0'));exports[_0x5f4b('0x1')]=function(){return function(_0x216918){return client[_0x5f4b('0x2')](_0x5f4b('0x3'),{'options':{'raw':![],'attributes':['id',_0x5f4b('0x4'),_0x5f4b('0x5'),_0x5f4b('0x6'),_0x5f4b('0x7'),_0x5f4b('0x8'),'authType','serverUrl','type'],'include':[{'model':_0x5f4b('0x9'),'as':_0x5f4b('0xa'),'attributes':['id','name'],'include':[{'model':_0x5f4b('0xb'),'attributes':['id',_0x5f4b('0x4')]},{'model':_0x5f4b('0xc'),'as':_0x5f4b('0xd'),'attributes':['id',_0x5f4b('0xe'),'content','variableName'],'include':[{'model':_0x5f4b('0xf'),'as':_0x5f4b('0xf'),'attributes':['id',_0x5f4b('0x4')]}]},{'model':'ZendeskField','as':_0x5f4b('0x10'),'attributes':['id',_0x5f4b('0xe'),_0x5f4b('0x11'),_0x5f4b('0x12'),'keyType',_0x5f4b('0x13'),_0x5f4b('0x14')],'include':[{'model':'Variable','as':_0x5f4b('0xf'),'attributes':['id','name']}]},{'model':_0x5f4b('0xc'),'as':'Fields','attributes':['id',_0x5f4b('0xe'),'content',_0x5f4b('0x15'),_0x5f4b('0x16'),_0x5f4b('0x17'),'variableName'],'include':[{'model':_0x5f4b('0xf'),'as':_0x5f4b('0xf'),'attributes':['id','name']}]}]}]},'log':_0x5f4b('0x3')});};};