9829962eaa2a9963f7df3df36f5d512395626ea3
[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 _0xa12f=['define','Variable','tools_variables','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./variable.attributes','exports'];(function(_0xd8e439,_0x4e34ca){var _0x4c93fb=function(_0x432cee){while(--_0x432cee){_0xd8e439['push'](_0xd8e439['shift']());}};_0x4c93fb(++_0x4e34ca);}(_0xa12f,0x1df));var _0xfa12=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0xa12f[_0x501510];return _0x1e6ee5;};'use strict';var _=require(_0xfa12('0x0'));var util=require(_0xfa12('0x1'));var logger=require(_0xfa12('0x2'))('api');var moment=require(_0xfa12('0x3'));var BPromise=require(_0xfa12('0x4'));var rp=require(_0xfa12('0x5'));var fs=require('fs');var path=require(_0xfa12('0x6'));var rimraf=require(_0xfa12('0x7'));var config=require(_0xfa12('0x8'));var attributes=require(_0xfa12('0x9'));module[_0xfa12('0xa')]=function(_0x5c2660,_0x338e8d){return _0x5c2660[_0xfa12('0xb')](_0xfa12('0xc'),attributes,{'tableName':_0xfa12('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};