Built motion from commit (unavailable).|2.4.18
[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 _0xfa16=['Tag','ZendeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','remoteUri','authType','serverUrl','type'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xfa16,0xe5));var _0x6fa1=function(_0x48c98f,_0x436429){_0x48c98f=_0x48c98f-0x0;var _0x229ec4=_0xfa16[_0x48c98f];return _0x229ec4;};'use strict';var client=require(_0x6fa1('0x0'));exports[_0x6fa1('0x1')]=function(){return function(_0xf061c9){return client[_0x6fa1('0x2')](_0x6fa1('0x3'),{'options':{'raw':![],'attributes':['id',_0x6fa1('0x4'),_0x6fa1('0x5'),_0x6fa1('0x6'),'token',_0x6fa1('0x7'),_0x6fa1('0x8'),_0x6fa1('0x9'),_0x6fa1('0xa')],'include':[{'model':'ZendeskConfiguration','as':'Configurations','attributes':['id',_0x6fa1('0x4')],'include':[{'model':_0x6fa1('0xb'),'attributes':['id',_0x6fa1('0x4')]},{'model':_0x6fa1('0xc'),'as':_0x6fa1('0xd'),'attributes':['id',_0x6fa1('0xa'),_0x6fa1('0xe'),_0x6fa1('0xf')],'include':[{'model':_0x6fa1('0x10'),'as':_0x6fa1('0x10'),'attributes':['id',_0x6fa1('0x4')]}]},{'model':_0x6fa1('0xc'),'as':_0x6fa1('0x11'),'attributes':['id',_0x6fa1('0xa'),'content',_0x6fa1('0x12'),_0x6fa1('0x13'),_0x6fa1('0x14'),_0x6fa1('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x6fa1('0x4')]}]},{'model':_0x6fa1('0xc'),'as':_0x6fa1('0x15'),'attributes':['id',_0x6fa1('0xa'),'content',_0x6fa1('0x16'),_0x6fa1('0x17'),'customField',_0x6fa1('0xf')],'include':[{'model':'Variable','as':_0x6fa1('0x10'),'attributes':['id',_0x6fa1('0x4')]}]}]}]},'log':_0x6fa1('0x3')});};};