8f228b9d42dd5faaebb89507db2dd54e632c304c
[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 _0xaf35=['migrations','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','./migration.attributes','exports'];(function(_0x285f26,_0x399b96){var _0x5e308e=function(_0x551958){while(--_0x551958){_0x285f26['push'](_0x285f26['shift']());}};_0x5e308e(++_0x399b96);}(_0xaf35,0x6f));var _0x5af3=function(_0x4c2f30,_0xa91340){_0x4c2f30=_0x4c2f30-0x0;var _0xb8854d=_0xaf35[_0x4c2f30];return _0xb8854d;};'use strict';var _=require(_0x5af3('0x0'));var util=require(_0x5af3('0x1'));var logger=require('../../config/logger')(_0x5af3('0x2'));var moment=require(_0x5af3('0x3'));var BPromise=require(_0x5af3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5af3('0x5'));var rimraf=require(_0x5af3('0x6'));var config=require(_0x5af3('0x7'));var attributes=require(_0x5af3('0x8'));module[_0x5af3('0x9')]=function(_0x55ea8e,_0xa2de62){return _0x55ea8e['define']('Migration',attributes,{'tableName':_0x5af3('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};