f057ab96e06ded441a35a7ab2ae99dd4ee9f18e5
[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 _0xea54=['../../config/logger','path','../../config/environment','exports','define','Automation','tools_automations'];(function(_0xe59404,_0xc31864){var _0x23a1e1=function(_0x46d8e7){while(--_0x46d8e7){_0xe59404['push'](_0xe59404['shift']());}};_0x23a1e1(++_0xc31864);}(_0xea54,0x142));var _0x4ea5=function(_0x236936,_0x40c7b3){_0x236936=_0x236936-0x0;var _0x12d33e=_0xea54[_0x236936];return _0x12d33e;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4ea5('0x0'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4ea5('0x1'));var rimraf=require('rimraf');var config=require(_0x4ea5('0x2'));var attributes=require('./automation.attributes');module[_0x4ea5('0x3')]=function(_0xc3e1b4,_0x57b36e){return _0xc3e1b4[_0x4ea5('0x4')](_0x4ea5('0x5'),attributes,{'tableName':_0x4ea5('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};