Built motion from commit (unavailable).|2.5.5
[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 _0x25c3=['AnyConditions','Action','action','data2','data4','data6','data7','../client','GetTrigger','name','channel','status','Condition','AllConditions','field','value'];(function(_0x58d728,_0x33aae3){var _0x56a4a2=function(_0x13016b){while(--_0x13016b){_0x58d728['push'](_0x58d728['shift']());}};_0x56a4a2(++_0x33aae3);}(_0x25c3,0x177));var _0x325c=function(_0x566fba,_0x46d42c){_0x566fba=_0x566fba-0x0;var _0x55ea98=_0x25c3[_0x566fba];return _0x55ea98;};'use strict';var client=require(_0x325c('0x0'));exports['getTriggers']=function(_0xa2cbb7){return function(_0x1d8470){return client['Request'](_0x325c('0x1'),{'options':{'raw':![],'attributes':['id',_0x325c('0x2'),_0x325c('0x3'),_0x325c('0x4')],'include':[{'model':_0x325c('0x5'),'as':_0x325c('0x6'),'attributes':['id',_0x325c('0x7'),'operator',_0x325c('0x8')]},{'model':_0x325c('0x5'),'as':_0x325c('0x9'),'attributes':['id',_0x325c('0x7'),'operator',_0x325c('0x8')]},{'model':_0x325c('0xa'),'as':'Actions','attributes':['id',_0x325c('0xb'),'data1',_0x325c('0xc'),'data3',_0x325c('0xd'),'data5',_0x325c('0xe'),_0x325c('0xf')]}]},'log':'GetTrigger'});};};