Built motion from commit 85328c08.|2.5.50
[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 _0x05a8=['variableName','Variable','Descriptions','key','keyType','idField','nameField','customField','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','authType','type','Configurations','Tag','ZendeskField','Subjects','content'];(function(_0x56ee6d,_0x195268){var _0x4f6357=function(_0x406775){while(--_0x406775){_0x56ee6d['push'](_0x56ee6d['shift']());}};_0x4f6357(++_0x195268);}(_0x05a8,0xce));var _0x805a=function(_0x5b11c3,_0x126c21){_0x5b11c3=_0x5b11c3-0x0;var _0x586d00=_0x05a8[_0x5b11c3];return _0x586d00;};'use strict';var client=require('../../client');exports[_0x805a('0x0')]=function(){return function(_0x42323a){return client[_0x805a('0x1')](_0x805a('0x2'),{'options':{'raw':![],'attributes':['id',_0x805a('0x3'),_0x805a('0x4'),_0x805a('0x5'),_0x805a('0x6'),'remoteUri',_0x805a('0x7'),'serverUrl',_0x805a('0x8')],'include':[{'model':'ZendeskConfiguration','as':_0x805a('0x9'),'attributes':['id',_0x805a('0x3')],'include':[{'model':_0x805a('0xa'),'attributes':['id',_0x805a('0x3')]},{'model':_0x805a('0xb'),'as':_0x805a('0xc'),'attributes':['id',_0x805a('0x8'),_0x805a('0xd'),_0x805a('0xe')],'include':[{'model':_0x805a('0xf'),'as':'Variable','attributes':['id',_0x805a('0x3')]}]},{'model':_0x805a('0xb'),'as':_0x805a('0x10'),'attributes':['id',_0x805a('0x8'),'content',_0x805a('0x11'),_0x805a('0x12'),'keyContent','variableName'],'include':[{'model':_0x805a('0xf'),'as':'Variable','attributes':['id',_0x805a('0x3')]}]},{'model':_0x805a('0xb'),'as':'Fields','attributes':['id','type',_0x805a('0xd'),_0x805a('0x13'),_0x805a('0x14'),_0x805a('0x15'),_0x805a('0xe')],'include':[{'model':_0x805a('0xf'),'as':_0x805a('0xf'),'attributes':['id',_0x805a('0x3')]}]}]}]},'log':_0x805a('0x2')});};};