7cfbab49d770652c4c193e33dab3e92bb979c1ab
[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 _0x35e0=['migrations','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./migration.attributes','exports','define'];(function(_0x1beef3,_0x57c4b8){var _0x5af964=function(_0x36f463){while(--_0x36f463){_0x1beef3['push'](_0x1beef3['shift']());}};_0x5af964(++_0x57c4b8);}(_0x35e0,0x160));var _0x035e=function(_0x472ddf,_0x22b836){_0x472ddf=_0x472ddf-0x0;var _0x42c7de=_0x35e0[_0x472ddf];return _0x42c7de;};'use strict';var _=require('lodash');var util=require(_0x035e('0x0'));var logger=require(_0x035e('0x1'))(_0x035e('0x2'));var moment=require(_0x035e('0x3'));var BPromise=require(_0x035e('0x4'));var rp=require(_0x035e('0x5'));var fs=require('fs');var path=require(_0x035e('0x6'));var rimraf=require(_0x035e('0x7'));var config=require(_0x035e('0x8'));var attributes=require(_0x035e('0x9'));module[_0x035e('0xa')]=function(_0x24d67c,_0xca3eaf){return _0x24d67c[_0x035e('0xb')]('Migration',attributes,{'tableName':_0x035e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};