f7b22290d49adc883715cfc6530ad2cc7fea3f0d
[motion2.git] / server / api / migration / migration.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 _0xad22=['define','Migration','lodash','api','moment','request-promise','path','rimraf','../../config/environment','./migration.attributes'];(function(_0x2c7071,_0x2f2093){var _0x38f954=function(_0x40568f){while(--_0x40568f){_0x2c7071['push'](_0x2c7071['shift']());}};_0x38f954(++_0x2f2093);}(_0xad22,0x142));var _0x2ad2=function(_0x37b3e5,_0x33b516){_0x37b3e5=_0x37b3e5-0x0;var _0x207f20=_0xad22[_0x37b3e5];return _0x207f20;};'use strict';var _=require(_0x2ad2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x2ad2('0x1'));var moment=require(_0x2ad2('0x2'));var BPromise=require('bluebird');var rp=require(_0x2ad2('0x3'));var fs=require('fs');var path=require(_0x2ad2('0x4'));var rimraf=require(_0x2ad2('0x5'));var config=require(_0x2ad2('0x6'));var attributes=require(_0x2ad2('0x7'));module['exports']=function(_0x2855fc,_0x50a0a7){return _0x2855fc[_0x2ad2('0x8')](_0x2ad2('0x9'),attributes,{'tableName':'migrations','paranoid':![],'indexes':[],'timestamps':!![]});};