36eb290f8be272ccfe2cc8959939eba2ca4e886d
[motion2.git] / server / api / variable / variable.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 _0xbe0f=['util','moment','request-promise','rimraf','../../config/environment','./variable.attributes','Variable','tools_variables','lodash'];(function(_0x3d2e4b,_0x1f6653){var _0x509e78=function(_0x307037){while(--_0x307037){_0x3d2e4b['push'](_0x3d2e4b['shift']());}};_0x509e78(++_0x1f6653);}(_0xbe0f,0x1d3));var _0xfbe0=function(_0x36c04e,_0x41ea8f){_0x36c04e=_0x36c04e-0x0;var _0x445a49=_0xbe0f[_0x36c04e];return _0x445a49;};'use strict';var _=require(_0xfbe0('0x0'));var util=require(_0xfbe0('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xfbe0('0x2'));var BPromise=require('bluebird');var rp=require(_0xfbe0('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xfbe0('0x4'));var config=require(_0xfbe0('0x5'));var attributes=require(_0xfbe0('0x6'));module['exports']=function(_0x397f1e,_0x3fc207){return _0x397f1e['define'](_0xfbe0('0x7'),attributes,{'tableName':_0xfbe0('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};