f146ac13deb27eb01621e6b4520d1d90ca480897
[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 _0x627e=['lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','define','Variable','tools_variables'];(function(_0x5192a3,_0x13238e){var _0x16cd81=function(_0x498439){while(--_0x498439){_0x5192a3['push'](_0x5192a3['shift']());}};_0x16cd81(++_0x13238e);}(_0x627e,0x14a));var _0xe627=function(_0x402f2b,_0xdf30e){_0x402f2b=_0x402f2b-0x0;var _0x2ff4db=_0x627e[_0x402f2b];return _0x2ff4db;};'use strict';var _=require(_0xe627('0x0'));var util=require(_0xe627('0x1'));var logger=require(_0xe627('0x2'))(_0xe627('0x3'));var moment=require(_0xe627('0x4'));var BPromise=require('bluebird');var rp=require(_0xe627('0x5'));var fs=require('fs');var path=require(_0xe627('0x6'));var rimraf=require(_0xe627('0x7'));var config=require('../../config/environment');var attributes=require('./variable.attributes');module['exports']=function(_0x1a1a3d,_0x3f2791){return _0x1a1a3d[_0xe627('0x8')](_0xe627('0x9'),attributes,{'tableName':_0xe627('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};