Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / ami / rpc / trigger.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 _0xdc1b=['Condition','AllConditions','operator','value','AnyConditions','Action','Actions','action','data1','data2','data4','data5','data6','data7','../client','Request','GetTrigger','name','channel','status'];(function(_0x123935,_0x1670ba){var _0x1a8ebf=function(_0xa6933e){while(--_0xa6933e){_0x123935['push'](_0x123935['shift']());}};_0x1a8ebf(++_0x1670ba);}(_0xdc1b,0x9a));var _0xbdc1=function(_0x474d97,_0x5909ce){_0x474d97=_0x474d97-0x0;var _0x1edf25=_0xdc1b[_0x474d97];return _0x1edf25;};'use strict';var client=require(_0xbdc1('0x0'));exports['getTriggers']=function(_0x1709bf){return function(_0x55a4e9){return client[_0xbdc1('0x1')](_0xbdc1('0x2'),{'options':{'raw':![],'attributes':['id',_0xbdc1('0x3'),_0xbdc1('0x4'),_0xbdc1('0x5')],'include':[{'model':_0xbdc1('0x6'),'as':_0xbdc1('0x7'),'attributes':['id','field',_0xbdc1('0x8'),_0xbdc1('0x9')]},{'model':_0xbdc1('0x6'),'as':_0xbdc1('0xa'),'attributes':['id','field',_0xbdc1('0x8'),'value']},{'model':_0xbdc1('0xb'),'as':_0xbdc1('0xc'),'attributes':['id',_0xbdc1('0xd'),_0xbdc1('0xe'),_0xbdc1('0xf'),'data3',_0xbdc1('0x10'),_0xbdc1('0x11'),_0xbdc1('0x12'),_0xbdc1('0x13')]}]},'log':_0xbdc1('0x2')});};};