Built motion from commit ab870f9e.|2.5.44
[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 _0xa753=['GetTrigger','status','Condition','AllConditions','operator','value','field','Action','Actions','data2','data4','data5','data6','data7','../client','Request'];(function(_0x44411e,_0x53f237){var _0x42ad7a=function(_0x9bc533){while(--_0x9bc533){_0x44411e['push'](_0x44411e['shift']());}};_0x42ad7a(++_0x53f237);}(_0xa753,0x1be));var _0x3a75=function(_0x153d2a,_0x628209){_0x153d2a=_0x153d2a-0x0;var _0x3736ff=_0xa753[_0x153d2a];return _0x3736ff;};'use strict';var client=require(_0x3a75('0x0'));exports['getTriggers']=function(_0x30b393){return function(_0x372eee){return client[_0x3a75('0x1')](_0x3a75('0x2'),{'options':{'raw':![],'attributes':['id','name','channel',_0x3a75('0x3')],'include':[{'model':_0x3a75('0x4'),'as':_0x3a75('0x5'),'attributes':['id','field',_0x3a75('0x6'),_0x3a75('0x7')]},{'model':_0x3a75('0x4'),'as':'AnyConditions','attributes':['id',_0x3a75('0x8'),'operator',_0x3a75('0x7')]},{'model':_0x3a75('0x9'),'as':_0x3a75('0xa'),'attributes':['id','action','data1',_0x3a75('0xb'),'data3',_0x3a75('0xc'),_0x3a75('0xd'),_0x3a75('0xe'),_0x3a75('0xf')]}]},'log':'GetTrigger'});};};