Built motion from commit 9d0783e6.|2.6.13
[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 _0x4aee=['password','token','remoteUri','authType','serverUrl','type','Configurations','Tag','ZendeskField','variableName','Variable','content','key','keyType','keyContent','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username'];(function(_0x18bfdb,_0x241d43){var _0x44334c=function(_0x55e999){while(--_0x55e999){_0x18bfdb['push'](_0x18bfdb['shift']());}};_0x44334c(++_0x241d43);}(_0x4aee,0xea));var _0xe4ae=function(_0x59f3c7,_0x4297b1){_0x59f3c7=_0x59f3c7-0x0;var _0x43c9db=_0x4aee[_0x59f3c7];return _0x43c9db;};'use strict';var client=require(_0xe4ae('0x0'));exports[_0xe4ae('0x1')]=function(){return function(_0x4f1018){return client[_0xe4ae('0x2')](_0xe4ae('0x3'),{'options':{'raw':![],'attributes':['id',_0xe4ae('0x4'),_0xe4ae('0x5'),_0xe4ae('0x6'),_0xe4ae('0x7'),_0xe4ae('0x8'),_0xe4ae('0x9'),_0xe4ae('0xa'),_0xe4ae('0xb')],'include':[{'model':'ZendeskConfiguration','as':_0xe4ae('0xc'),'attributes':['id',_0xe4ae('0x4')],'include':[{'model':_0xe4ae('0xd'),'attributes':['id','name']},{'model':_0xe4ae('0xe'),'as':'Subjects','attributes':['id',_0xe4ae('0xb'),'content',_0xe4ae('0xf')],'include':[{'model':_0xe4ae('0x10'),'as':_0xe4ae('0x10'),'attributes':['id',_0xe4ae('0x4')]}]},{'model':_0xe4ae('0xe'),'as':'Descriptions','attributes':['id',_0xe4ae('0xb'),_0xe4ae('0x11'),_0xe4ae('0x12'),_0xe4ae('0x13'),_0xe4ae('0x14'),'variableName'],'include':[{'model':_0xe4ae('0x10'),'as':_0xe4ae('0x10'),'attributes':['id','name']}]},{'model':_0xe4ae('0xe'),'as':'Fields','attributes':['id',_0xe4ae('0xb'),'content',_0xe4ae('0x15'),_0xe4ae('0x16'),_0xe4ae('0x17'),_0xe4ae('0xf')],'include':[{'model':_0xe4ae('0x10'),'as':_0xe4ae('0x10'),'attributes':['id',_0xe4ae('0x4')]}]}]}]},'log':'GetZendeskAccount'});};};