Built motion from commit 7158bc59.|2.5.42
[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 _0x29a3=['nameField','customField','GetVtigerAccount','getVtigerAccounts','Request','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField','Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x29a3,0x116));var _0x329a=function(_0x2bcb85,_0x25ad2f){_0x2bcb85=_0x2bcb85-0x0;var _0x1b8e2e=_0x29a3[_0x2bcb85];return _0x1b8e2e;};'use strict';var client=require('../../client');exports[_0x329a('0x0')]=function(){return function(_0x26a8a1){return client[_0x329a('0x1')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0x329a('0x2'),_0x329a('0x3'),_0x329a('0x4'),_0x329a('0x5'),_0x329a('0x6'),_0x329a('0x7')],'include':[{'model':_0x329a('0x8'),'as':_0x329a('0x9'),'attributes':['id','name'],'include':[{'model':_0x329a('0xa'),'as':_0x329a('0xb'),'attributes':['id',_0x329a('0xc'),_0x329a('0xd'),'variableName'],'include':[{'model':_0x329a('0xe'),'as':_0x329a('0xe'),'attributes':['id',_0x329a('0x2')]}]},{'model':_0x329a('0xa'),'as':_0x329a('0xf'),'attributes':['id',_0x329a('0xc'),'content',_0x329a('0x10'),_0x329a('0x11'),_0x329a('0x12'),_0x329a('0x13')],'include':[{'model':_0x329a('0xe'),'as':'Variable','attributes':['id',_0x329a('0x2')]}]},{'model':_0x329a('0xa'),'as':_0x329a('0x14'),'attributes':['id',_0x329a('0xc'),_0x329a('0xd'),_0x329a('0x15'),_0x329a('0x16'),_0x329a('0x17'),_0x329a('0x13')],'include':[{'model':_0x329a('0xe'),'as':'Variable','attributes':['id',_0x329a('0x2')]}]}]}]},'log':_0x329a('0x18')});};};