Built motion from commit c116dc8b.|2.6.30
[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 _0x3520=['Fields','nameField','customField','getZendeskAccounts','Request','GetZendeskAccount','password','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','name','Tag','ZendeskField','type','content','variableName','Variable','Descriptions','key','keyType'];(function(_0x34185b,_0xd70d06){var _0x4a0167=function(_0x2a8a8b){while(--_0x2a8a8b){_0x34185b['push'](_0x34185b['shift']());}};_0x4a0167(++_0xd70d06);}(_0x3520,0xe9));var _0x0352=function(_0x3c128c,_0x5d597b){_0x3c128c=_0x3c128c-0x0;var _0x5617f2=_0x3520[_0x3c128c];return _0x5617f2;};'use strict';var client=require('../../client');exports[_0x0352('0x0')]=function(){return function(_0x1cc134){return client[_0x0352('0x1')](_0x0352('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0x0352('0x3'),_0x0352('0x4'),_0x0352('0x5'),_0x0352('0x6'),_0x0352('0x7'),'type'],'include':[{'model':_0x0352('0x8'),'as':_0x0352('0x9'),'attributes':['id',_0x0352('0xa')],'include':[{'model':_0x0352('0xb'),'attributes':['id',_0x0352('0xa')]},{'model':_0x0352('0xc'),'as':'Subjects','attributes':['id',_0x0352('0xd'),_0x0352('0xe'),_0x0352('0xf')],'include':[{'model':_0x0352('0x10'),'as':_0x0352('0x10'),'attributes':['id',_0x0352('0xa')]}]},{'model':_0x0352('0xc'),'as':_0x0352('0x11'),'attributes':['id',_0x0352('0xd'),_0x0352('0xe'),_0x0352('0x12'),_0x0352('0x13'),'keyContent','variableName'],'include':[{'model':_0x0352('0x10'),'as':_0x0352('0x10'),'attributes':['id',_0x0352('0xa')]}]},{'model':'ZendeskField','as':_0x0352('0x14'),'attributes':['id',_0x0352('0xd'),'content','idField',_0x0352('0x15'),_0x0352('0x16'),'variableName'],'include':[{'model':_0x0352('0x10'),'as':_0x0352('0x10'),'attributes':['id','name']}]}]}]},'log':_0x0352('0x2')});};};