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 _0xd9c0=['GetTrigger','../client','getTriggers','Request','channel','status','Condition','AllConditions','field','operator','value','AnyConditions','Actions','data2','data3','data4','data5','data7'];(function(_0x32aa1c,_0x444d3c){var _0x5db016=function(_0x118a2f){while(--_0x118a2f){_0x32aa1c['push'](_0x32aa1c['shift']());}};_0x5db016(++_0x444d3c);}(_0xd9c0,0x6d));var _0x0d9c=function(_0x16021e,_0x418f89){_0x16021e=_0x16021e-0x0;var _0x8bd8cb=_0xd9c0[_0x16021e];return _0x8bd8cb;};'use strict';var client=require(_0x0d9c('0x0'));exports[_0x0d9c('0x1')]=function(_0xe27826){return function(_0xdf4af7){return client[_0x0d9c('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id','name',_0x0d9c('0x3'),_0x0d9c('0x4')],'include':[{'model':_0x0d9c('0x5'),'as':_0x0d9c('0x6'),'attributes':['id',_0x0d9c('0x7'),_0x0d9c('0x8'),_0x0d9c('0x9')]},{'model':_0x0d9c('0x5'),'as':_0x0d9c('0xa'),'attributes':['id','field','operator',_0x0d9c('0x9')]},{'model':'Action','as':_0x0d9c('0xb'),'attributes':['id','action','data1',_0x0d9c('0xc'),_0x0d9c('0xd'),_0x0d9c('0xe'),_0x0d9c('0xf'),'data6',_0x0d9c('0x10')]}]},'log':_0x0d9c('0x11')});};};