Built motion from commit (unavailable).|2.4.20
[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 _0x0e72=['name','username','password','token','authType','serverUrl','ZendeskConfiguration','Configurations','Tag','ZendeskField','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','nameField','customField','getZendeskAccounts','Request','GetZendeskAccount'];(function(_0x3ad060,_0x274eed){var _0x1fc210=function(_0x243236){while(--_0x243236){_0x3ad060['push'](_0x3ad060['shift']());}};_0x1fc210(++_0x274eed);}(_0x0e72,0x17d));var _0x20e7=function(_0xd93256,_0x4f1c76){_0xd93256=_0xd93256-0x0;var _0x258ff0=_0x0e72[_0xd93256];return _0x258ff0;};'use strict';var client=require('../../client');exports[_0x20e7('0x0')]=function(){return function(_0x30e636){return client[_0x20e7('0x1')](_0x20e7('0x2'),{'options':{'raw':![],'attributes':['id',_0x20e7('0x3'),_0x20e7('0x4'),_0x20e7('0x5'),_0x20e7('0x6'),'remoteUri',_0x20e7('0x7'),_0x20e7('0x8'),'type'],'include':[{'model':_0x20e7('0x9'),'as':_0x20e7('0xa'),'attributes':['id',_0x20e7('0x3')],'include':[{'model':_0x20e7('0xb'),'attributes':['id','name']},{'model':_0x20e7('0xc'),'as':'Subjects','attributes':['id',_0x20e7('0xd'),_0x20e7('0xe'),'variableName'],'include':[{'model':_0x20e7('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':'ZendeskField','as':_0x20e7('0x10'),'attributes':['id',_0x20e7('0xd'),_0x20e7('0xe'),_0x20e7('0x11'),_0x20e7('0x12'),_0x20e7('0x13'),_0x20e7('0x14')],'include':[{'model':_0x20e7('0xf'),'as':_0x20e7('0xf'),'attributes':['id',_0x20e7('0x3')]}]},{'model':'ZendeskField','as':_0x20e7('0x15'),'attributes':['id',_0x20e7('0xd'),_0x20e7('0xe'),'idField',_0x20e7('0x16'),_0x20e7('0x17'),_0x20e7('0x14')],'include':[{'model':_0x20e7('0xf'),'as':_0x20e7('0xf'),'attributes':['id',_0x20e7('0x3')]}]}]}]},'log':'GetZendeskAccount'});};};