f131fff35d80c91cfc795c981224775a5ab28ce5
[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 _0x7991=['tools_automations','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./automation.attributes','exports','Automation'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x7991,0xf1));var _0x1799=function(_0x190404,_0x594195){_0x190404=_0x190404-0x0;var _0x7b180c=_0x7991[_0x190404];return _0x7b180c;};'use strict';var _=require('lodash');var util=require(_0x1799('0x0'));var logger=require(_0x1799('0x1'))(_0x1799('0x2'));var moment=require(_0x1799('0x3'));var BPromise=require(_0x1799('0x4'));var rp=require(_0x1799('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1799('0x6'));var config=require(_0x1799('0x7'));var attributes=require(_0x1799('0x8'));module[_0x1799('0x9')]=function(_0x171393,_0x5f0773){return _0x171393['define'](_0x1799('0xa'),attributes,{'tableName':_0x1799('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};