3152c6849788620ed5a65d8b2eb2c4882fc5ad56
[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 _0xefe6=['keyContent','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','authType','serverUrl','ZendeskConfiguration','Tag','ZendeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType'];(function(_0xd1fa42,_0x3cb936){var _0x24c89a=function(_0x55a929){while(--_0x55a929){_0xd1fa42['push'](_0xd1fa42['shift']());}};_0x24c89a(++_0x3cb936);}(_0xefe6,0x9a));var _0x6efe=function(_0x475dce,_0x1754ff){_0x475dce=_0x475dce-0x0;var _0x40687a=_0xefe6[_0x475dce];return _0x40687a;};'use strict';var client=require(_0x6efe('0x0'));exports[_0x6efe('0x1')]=function(){return function(_0x485be8){return client[_0x6efe('0x2')](_0x6efe('0x3'),{'options':{'raw':![],'attributes':['id',_0x6efe('0x4'),_0x6efe('0x5'),_0x6efe('0x6'),_0x6efe('0x7'),'remoteUri',_0x6efe('0x8'),_0x6efe('0x9'),'type'],'include':[{'model':_0x6efe('0xa'),'as':'Configurations','attributes':['id',_0x6efe('0x4')],'include':[{'model':_0x6efe('0xb'),'attributes':['id','name']},{'model':_0x6efe('0xc'),'as':_0x6efe('0xd'),'attributes':['id',_0x6efe('0xe'),_0x6efe('0xf'),_0x6efe('0x10')],'include':[{'model':_0x6efe('0x11'),'as':_0x6efe('0x11'),'attributes':['id',_0x6efe('0x4')]}]},{'model':_0x6efe('0xc'),'as':_0x6efe('0x12'),'attributes':['id',_0x6efe('0xe'),_0x6efe('0xf'),_0x6efe('0x13'),_0x6efe('0x14'),_0x6efe('0x15'),_0x6efe('0x10')],'include':[{'model':_0x6efe('0x11'),'as':_0x6efe('0x11'),'attributes':['id','name']}]},{'model':_0x6efe('0xc'),'as':'Fields','attributes':['id',_0x6efe('0xe'),'content',_0x6efe('0x16'),_0x6efe('0x17'),_0x6efe('0x18'),'variableName'],'include':[{'model':'Variable','as':_0x6efe('0x11'),'attributes':['id',_0x6efe('0x4')]}]}]}]},'log':_0x6efe('0x3')});};};