Built motion from commit ab870f9e.|2.5.44
[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 _0xac20=['../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','ZendeskField','Subjects','content','variableName','Variable','key','keyType','keyContent','Fields','idField','customField'];(function(_0x5193ba,_0x39487b){var _0x3b1b07=function(_0x39500e){while(--_0x39500e){_0x5193ba['push'](_0x5193ba['shift']());}};_0x3b1b07(++_0x39487b);}(_0xac20,0x1e0));var _0x0ac2=function(_0x1db1cb,_0x5d3d96){_0x1db1cb=_0x1db1cb-0x0;var _0x520da8=_0xac20[_0x1db1cb];return _0x520da8;};'use strict';var client=require(_0x0ac2('0x0'));exports[_0x0ac2('0x1')]=function(){return function(_0x433f3d){return client[_0x0ac2('0x2')](_0x0ac2('0x3'),{'options':{'raw':![],'attributes':['id',_0x0ac2('0x4'),_0x0ac2('0x5'),_0x0ac2('0x6'),_0x0ac2('0x7'),_0x0ac2('0x8'),_0x0ac2('0x9'),_0x0ac2('0xa'),_0x0ac2('0xb')],'include':[{'model':_0x0ac2('0xc'),'as':'Configurations','attributes':['id',_0x0ac2('0x4')],'include':[{'model':'Tag','attributes':['id',_0x0ac2('0x4')]},{'model':_0x0ac2('0xd'),'as':_0x0ac2('0xe'),'attributes':['id','type',_0x0ac2('0xf'),_0x0ac2('0x10')],'include':[{'model':'Variable','as':_0x0ac2('0x11'),'attributes':['id',_0x0ac2('0x4')]}]},{'model':_0x0ac2('0xd'),'as':'Descriptions','attributes':['id','type',_0x0ac2('0xf'),_0x0ac2('0x12'),_0x0ac2('0x13'),_0x0ac2('0x14'),'variableName'],'include':[{'model':_0x0ac2('0x11'),'as':'Variable','attributes':['id',_0x0ac2('0x4')]}]},{'model':_0x0ac2('0xd'),'as':_0x0ac2('0x15'),'attributes':['id','type',_0x0ac2('0xf'),_0x0ac2('0x16'),'nameField',_0x0ac2('0x17'),'variableName'],'include':[{'model':'Variable','as':_0x0ac2('0x11'),'attributes':['id',_0x0ac2('0x4')]}]}]}]},'log':'GetZendeskAccount'});};};