66a912da0a6fc12104607ef7d7e1a265ec9a53c1
[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 _0x2f15=['bluebird','path','rimraf','./automation.attributes','exports','define','Automation','lodash'];(function(_0x1664f9,_0xc1d5f3){var _0x50aee1=function(_0x118215){while(--_0x118215){_0x1664f9['push'](_0x1664f9['shift']());}};_0x50aee1(++_0xc1d5f3);}(_0x2f15,0x1af));var _0x52f1=function(_0x5ddec9,_0x209a36){_0x5ddec9=_0x5ddec9-0x0;var _0x5abb94=_0x2f15[_0x5ddec9];return _0x5abb94;};'use strict';var _=require(_0x52f1('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x52f1('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x52f1('0x2'));var rimraf=require(_0x52f1('0x3'));var config=require('../../config/environment');var attributes=require(_0x52f1('0x4'));module[_0x52f1('0x5')]=function(_0x28043b,_0x421e6c){return _0x28043b[_0x52f1('0x6')](_0x52f1('0x7'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};