Built motion from commit 9e1ec266.|2.6.28
[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 _0x25f3=['define','Automation','api','moment','bluebird','../../config/environment','exports'];(function(_0x2db12b,_0x30ab1d){var _0x20990b=function(_0x589477){while(--_0x589477){_0x2db12b['push'](_0x2db12b['shift']());}};_0x20990b(++_0x30ab1d);}(_0x25f3,0x167));var _0x325f=function(_0x256e19,_0x6e625){_0x256e19=_0x256e19-0x0;var _0x4a2bf8=_0x25f3[_0x256e19];return _0x4a2bf8;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x325f('0x0'));var moment=require(_0x325f('0x1'));var BPromise=require(_0x325f('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x325f('0x3'));var attributes=require('./automation.attributes');module[_0x325f('0x4')]=function(_0x5080bb,_0x380e93){return _0x5080bb[_0x325f('0x5')](_0x325f('0x6'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};