f78a1da06bb99bc0bd1faa75611158979ae44182
[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 _0x6e35=['idField','nameField','../../client','getZendeskAccounts','GetZendeskAccount','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','name','ZendeskField','Subjects','variableName','Variable','Descriptions','content','key','Fields'];(function(_0x146a85,_0x529b52){var _0x1b59bf=function(_0x4af0fd){while(--_0x4af0fd){_0x146a85['push'](_0x146a85['shift']());}};_0x1b59bf(++_0x529b52);}(_0x6e35,0x15b));var _0x56e3=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x6e35[_0x8c43de];return _0xa6591b;};'use strict';var client=require(_0x56e3('0x0'));exports[_0x56e3('0x1')]=function(){return function(_0x53fa41){return client['Request'](_0x56e3('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x56e3('0x3'),_0x56e3('0x4'),_0x56e3('0x5'),_0x56e3('0x6'),_0x56e3('0x7'),_0x56e3('0x8'),_0x56e3('0x9')],'include':[{'model':_0x56e3('0xa'),'as':_0x56e3('0xb'),'attributes':['id',_0x56e3('0xc')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x56e3('0xd'),'as':_0x56e3('0xe'),'attributes':['id',_0x56e3('0x9'),'content',_0x56e3('0xf')],'include':[{'model':_0x56e3('0x10'),'as':'Variable','attributes':['id',_0x56e3('0xc')]}]},{'model':_0x56e3('0xd'),'as':_0x56e3('0x11'),'attributes':['id','type',_0x56e3('0x12'),_0x56e3('0x13'),'keyType','keyContent','variableName'],'include':[{'model':_0x56e3('0x10'),'as':_0x56e3('0x10'),'attributes':['id',_0x56e3('0xc')]}]},{'model':_0x56e3('0xd'),'as':_0x56e3('0x14'),'attributes':['id','type',_0x56e3('0x12'),_0x56e3('0x15'),_0x56e3('0x16'),'customField',_0x56e3('0xf')],'include':[{'model':_0x56e3('0x10'),'as':_0x56e3('0x10'),'attributes':['id',_0x56e3('0xc')]}]}]}]},'log':_0x56e3('0x2')});};};