f6c387714a2b3d3b07a14123656db97c6df569b3
[motion2.git] / server / api / automation / automation.model.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 _0x67ea=['../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','Automation','tools_automations','lodash'];(function(_0x3cfb0d,_0x4df584){var _0x3486b4=function(_0x1b0939){while(--_0x1b0939){_0x3cfb0d['push'](_0x3cfb0d['shift']());}};_0x3486b4(++_0x4df584);}(_0x67ea,0x11f));var _0xa67e=function(_0x4fbfd9,_0x3ab91a){_0x4fbfd9=_0x4fbfd9-0x0;var _0x31dc94=_0x67ea[_0x4fbfd9];return _0x31dc94;};'use strict';var _=require(_0xa67e('0x0'));var util=require('util');var logger=require(_0xa67e('0x1'))(_0xa67e('0x2'));var moment=require('moment');var BPromise=require(_0xa67e('0x3'));var rp=require(_0xa67e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa67e('0x5'));var config=require(_0xa67e('0x6'));var attributes=require('./automation.attributes');module['exports']=function(_0x2c7fb0,_0x1c2383){return _0x2c7fb0['define'](_0xa67e('0x7'),attributes,{'tableName':_0xa67e('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};