Built motion from commit 980b26c3.|2.6.29
[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 _0xed0f=['getTriggers','Request','GetTrigger','channel','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','data1','data3','data4','data5','data6','../client'];(function(_0x5a778c,_0x212dbb){var _0x2eea4f=function(_0x5b43d1){while(--_0x5b43d1){_0x5a778c['push'](_0x5a778c['shift']());}};_0x2eea4f(++_0x212dbb);}(_0xed0f,0xe3));var _0xfed0=function(_0x58319a,_0x145060){_0x58319a=_0x58319a-0x0;var _0x4cf654=_0xed0f[_0x58319a];return _0x4cf654;};'use strict';var client=require(_0xfed0('0x0'));exports[_0xfed0('0x1')]=function(_0x112a77){return function(_0x57c4c6){return client[_0xfed0('0x2')](_0xfed0('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xfed0('0x4'),_0xfed0('0x5')],'include':[{'model':_0xfed0('0x6'),'as':_0xfed0('0x7'),'attributes':['id',_0xfed0('0x8'),_0xfed0('0x9'),_0xfed0('0xa')]},{'model':_0xfed0('0x6'),'as':_0xfed0('0xb'),'attributes':['id',_0xfed0('0x8'),'operator','value']},{'model':_0xfed0('0xc'),'as':_0xfed0('0xd'),'attributes':['id','action',_0xfed0('0xe'),'data2',_0xfed0('0xf'),_0xfed0('0x10'),_0xfed0('0x11'),_0xfed0('0x12'),'data7']}]},'log':_0xfed0('0x3')});};};