c30a3cf02f9f0601b66108ef28893fd90f30f18c
[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 _0xdf7f=['Actions','action','data1','data2','data4','data5','data6','data7','../client','getTriggers','Request','GetTrigger','name','channel','status','Condition','AllConditions','field','operator','value','Action'];(function(_0x2763f2,_0x416af8){var _0x3ef471=function(_0x288aa2){while(--_0x288aa2){_0x2763f2['push'](_0x2763f2['shift']());}};_0x3ef471(++_0x416af8);}(_0xdf7f,0x1d6));var _0xfdf7=function(_0x475ba1,_0x18f987){_0x475ba1=_0x475ba1-0x0;var _0x4ec8d5=_0xdf7f[_0x475ba1];return _0x4ec8d5;};'use strict';var client=require(_0xfdf7('0x0'));exports[_0xfdf7('0x1')]=function(_0x580ad9){return function(_0x279faa){return client[_0xfdf7('0x2')](_0xfdf7('0x3'),{'options':{'raw':![],'attributes':['id',_0xfdf7('0x4'),_0xfdf7('0x5'),_0xfdf7('0x6')],'include':[{'model':_0xfdf7('0x7'),'as':_0xfdf7('0x8'),'attributes':['id',_0xfdf7('0x9'),_0xfdf7('0xa'),_0xfdf7('0xb')]},{'model':_0xfdf7('0x7'),'as':'AnyConditions','attributes':['id',_0xfdf7('0x9'),_0xfdf7('0xa'),_0xfdf7('0xb')]},{'model':_0xfdf7('0xc'),'as':_0xfdf7('0xd'),'attributes':['id',_0xfdf7('0xe'),_0xfdf7('0xf'),_0xfdf7('0x10'),'data3',_0xfdf7('0x11'),_0xfdf7('0x12'),_0xfdf7('0x13'),_0xfdf7('0x14')]}]},'log':_0xfdf7('0x3')});};};