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