Built motion from commit (unavailable).|2.4.18
[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 _0x3f06=['tools_automations','util','api','moment','request-promise','path','rimraf','../../config/environment','./automation.attributes','exports','Automation'];(function(_0x50b378,_0x34adb1){var _0x29e608=function(_0x591db6){while(--_0x591db6){_0x50b378['push'](_0x50b378['shift']());}};_0x29e608(++_0x34adb1);}(_0x3f06,0x140));var _0x63f0=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x3f06[_0x57b54c];return _0x59cc19;};'use strict';var _=require('lodash');var util=require(_0x63f0('0x0'));var logger=require('../../config/logger')(_0x63f0('0x1'));var moment=require(_0x63f0('0x2'));var BPromise=require('bluebird');var rp=require(_0x63f0('0x3'));var fs=require('fs');var path=require(_0x63f0('0x4'));var rimraf=require(_0x63f0('0x5'));var config=require(_0x63f0('0x6'));var attributes=require(_0x63f0('0x7'));module[_0x63f0('0x8')]=function(_0x393e14,_0x1f1017){return _0x393e14['define'](_0x63f0('0x9'),attributes,{'tableName':_0x63f0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};