Built motion from commit 14588770.|2.5.38
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x8b37=['VtigerField','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','customField','../../client','Request','GetVtigerAccount','name','description','username','VtigerConfiguration','Configurations'];(function(_0x1ca7f0,_0x3a3328){var _0x171f2a=function(_0x12ce01){while(--_0x12ce01){_0x1ca7f0['push'](_0x1ca7f0['shift']());}};_0x171f2a(++_0x3a3328);}(_0x8b37,0x64));var _0x78b3=function(_0x776f19,_0x29b663){_0x776f19=_0x776f19-0x0;var _0x23e03d=_0x8b37[_0x776f19];return _0x23e03d;};'use strict';var client=require(_0x78b3('0x0'));exports['getVtigerAccounts']=function(){return function(_0x17f134){return client[_0x78b3('0x1')](_0x78b3('0x2'),{'options':{'raw':![],'attributes':['id',_0x78b3('0x3'),_0x78b3('0x4'),_0x78b3('0x5'),'accessKey','remoteUri','serverUrl'],'include':[{'model':_0x78b3('0x6'),'as':_0x78b3('0x7'),'attributes':['id','name'],'include':[{'model':_0x78b3('0x8'),'as':'Subjects','attributes':['id',_0x78b3('0x9'),'content',_0x78b3('0xa')],'include':[{'model':_0x78b3('0xb'),'as':_0x78b3('0xb'),'attributes':['id','name']}]},{'model':_0x78b3('0x8'),'as':_0x78b3('0xc'),'attributes':['id',_0x78b3('0x9'),_0x78b3('0xd'),_0x78b3('0xe'),_0x78b3('0xf'),_0x78b3('0x10'),'variableName'],'include':[{'model':_0x78b3('0xb'),'as':_0x78b3('0xb'),'attributes':['id',_0x78b3('0x3')]}]},{'model':_0x78b3('0x8'),'as':'Fields','attributes':['id',_0x78b3('0x9'),_0x78b3('0xd'),'idField','nameField',_0x78b3('0x11'),'variableName'],'include':[{'model':'Variable','as':_0x78b3('0xb'),'attributes':['id',_0x78b3('0x3')]}]}]}]},'log':'GetVtigerAccount'});};};