Built motion from commit 9d7072cc.|2.5.39
[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 _0xdc76=['operator','AnyConditions','value','Action','data1','data2','data3','data4','data5','data6','data7','../client','GetTrigger','name','channel','status','Condition','AllConditions','field'];(function(_0x46d0c9,_0x526bfa){var _0x174506=function(_0x654bc6){while(--_0x654bc6){_0x46d0c9['push'](_0x46d0c9['shift']());}};_0x174506(++_0x526bfa);}(_0xdc76,0x102));var _0x6dc7=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0xdc76[_0x3b380d];return _0x54502b;};'use strict';var client=require(_0x6dc7('0x0'));exports['getTriggers']=function(_0xa4b52e){return function(_0x33ef52){return client['Request'](_0x6dc7('0x1'),{'options':{'raw':![],'attributes':['id',_0x6dc7('0x2'),_0x6dc7('0x3'),_0x6dc7('0x4')],'include':[{'model':_0x6dc7('0x5'),'as':_0x6dc7('0x6'),'attributes':['id',_0x6dc7('0x7'),_0x6dc7('0x8'),'value']},{'model':_0x6dc7('0x5'),'as':_0x6dc7('0x9'),'attributes':['id','field',_0x6dc7('0x8'),_0x6dc7('0xa')]},{'model':_0x6dc7('0xb'),'as':'Actions','attributes':['id','action',_0x6dc7('0xc'),_0x6dc7('0xd'),_0x6dc7('0xe'),_0x6dc7('0xf'),_0x6dc7('0x10'),_0x6dc7('0x11'),_0x6dc7('0x12')]}]},'log':'GetTrigger'});};};