1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xb43f=['data4','data5','data6','../client','Request','GetTrigger','name','channel','status','Condition','field','operator','AnyConditions','value','Action','Actions','action','data2','data3'];(function(_0x5e7dd0,_0x18308b){var _0x5c4457=function(_0x3c8696){while(--_0x3c8696){_0x5e7dd0['push'](_0x5e7dd0['shift']());}};_0x5c4457(++_0x18308b);}(_0xb43f,0x9b));var _0xfb43=function(_0x1ce834,_0x48dac9){_0x1ce834=_0x1ce834-0x0;var _0x248554=_0xb43f[_0x1ce834];return _0x248554;};'use strict';var client=require(_0xfb43('0x0'));exports['getTriggers']=function(_0x15bc23){return function(_0xe828ef){return client[_0xfb43('0x1')](_0xfb43('0x2'),{'options':{'raw':![],'attributes':['id',_0xfb43('0x3'),_0xfb43('0x4'),_0xfb43('0x5')],'include':[{'model':_0xfb43('0x6'),'as':'AllConditions','attributes':['id',_0xfb43('0x7'),_0xfb43('0x8'),'value']},{'model':_0xfb43('0x6'),'as':_0xfb43('0x9'),'attributes':['id',_0xfb43('0x7'),_0xfb43('0x8'),_0xfb43('0xa')]},{'model':_0xfb43('0xb'),'as':_0xfb43('0xc'),'attributes':['id',_0xfb43('0xd'),'data1',_0xfb43('0xe'),_0xfb43('0xf'),_0xfb43('0x10'),_0xfb43('0x11'),_0xfb43('0x12'),'data7']}]},'log':_0xfb43('0x2')});};};