cf1ead97ba31ca81bd18c0e775e957022fc9f2ec
[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 _0xd37f=['rimraf','../../config/environment','exports','define','Migration','lodash','util','../../config/logger','api','bluebird','path'];(function(_0x46d0c9,_0x526bfa){var _0x174506=function(_0x654bc6){while(--_0x654bc6){_0x46d0c9['push'](_0x46d0c9['shift']());}};_0x174506(++_0x526bfa);}(_0xd37f,0xb5));var _0xfd37=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0xd37f[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require(_0xfd37('0x0'));var util=require(_0xfd37('0x1'));var logger=require(_0xfd37('0x2'))(_0xfd37('0x3'));var moment=require('moment');var BPromise=require(_0xfd37('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xfd37('0x5'));var rimraf=require(_0xfd37('0x6'));var config=require(_0xfd37('0x7'));var attributes=require('./migration.attributes');module[_0xfd37('0x8')]=function(_0x5c8f34,_0x21cb98){return _0x5c8f34[_0xfd37('0x9')](_0xfd37('0xa'),attributes,{'tableName':'migrations','paranoid':![],'indexes':[],'timestamps':!![]});};