0295d9dc0df8ddfd00f22e4c16d3c5d7a714b1ac
[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 _0x2f76=['keyContent','idField','nameField','customField','../../client','getZendeskAccounts','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Tag','ZendeskField','content','variableName','Variable','Descriptions','key','keyType'];(function(_0x28025d,_0x2be2c3){var _0x2f9815=function(_0x45284e){while(--_0x45284e){_0x28025d['push'](_0x28025d['shift']());}};_0x2f9815(++_0x2be2c3);}(_0x2f76,0xac));var _0x62f7=function(_0xb9cc4d,_0x756de8){_0xb9cc4d=_0xb9cc4d-0x0;var _0x147efb=_0x2f76[_0xb9cc4d];return _0x147efb;};'use strict';var client=require(_0x62f7('0x0'));exports[_0x62f7('0x1')]=function(){return function(_0x5a2be9){return client['Request'](_0x62f7('0x2'),{'options':{'raw':![],'attributes':['id',_0x62f7('0x3'),_0x62f7('0x4'),_0x62f7('0x5'),_0x62f7('0x6'),_0x62f7('0x7'),_0x62f7('0x8'),_0x62f7('0x9'),_0x62f7('0xa')],'include':[{'model':_0x62f7('0xb'),'as':'Configurations','attributes':['id',_0x62f7('0x3')],'include':[{'model':_0x62f7('0xc'),'attributes':['id',_0x62f7('0x3')]},{'model':_0x62f7('0xd'),'as':'Subjects','attributes':['id',_0x62f7('0xa'),_0x62f7('0xe'),_0x62f7('0xf')],'include':[{'model':_0x62f7('0x10'),'as':_0x62f7('0x10'),'attributes':['id',_0x62f7('0x3')]}]},{'model':_0x62f7('0xd'),'as':_0x62f7('0x11'),'attributes':['id',_0x62f7('0xa'),_0x62f7('0xe'),_0x62f7('0x12'),_0x62f7('0x13'),_0x62f7('0x14'),'variableName'],'include':[{'model':_0x62f7('0x10'),'as':_0x62f7('0x10'),'attributes':['id',_0x62f7('0x3')]}]},{'model':_0x62f7('0xd'),'as':'Fields','attributes':['id',_0x62f7('0xa'),_0x62f7('0xe'),_0x62f7('0x15'),_0x62f7('0x16'),_0x62f7('0x17'),'variableName'],'include':[{'model':_0x62f7('0x10'),'as':_0x62f7('0x10'),'attributes':['id','name']}]}]}]},'log':_0x62f7('0x2')});};};