1cfe95287a639e233ee36c8f5b173e9f08060afd
[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 _0x87dd=['exports','define','Variable','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./variable.attributes'];(function(_0x250116,_0x262783){var _0x526dc8=function(_0x4deb3c){while(--_0x4deb3c){_0x250116['push'](_0x250116['shift']());}};_0x526dc8(++_0x262783);}(_0x87dd,0x16f));var _0xd87d=function(_0x336264,_0x32e1d9){_0x336264=_0x336264-0x0;var _0x53cf91=_0x87dd[_0x336264];return _0x53cf91;};'use strict';var _=require('lodash');var util=require(_0xd87d('0x0'));var logger=require(_0xd87d('0x1'))(_0xd87d('0x2'));var moment=require(_0xd87d('0x3'));var BPromise=require(_0xd87d('0x4'));var rp=require(_0xd87d('0x5'));var fs=require('fs');var path=require(_0xd87d('0x6'));var rimraf=require(_0xd87d('0x7'));var config=require(_0xd87d('0x8'));var attributes=require(_0xd87d('0x9'));module[_0xd87d('0xa')]=function(_0x88367c,_0x444f98){return _0x88367c[_0xd87d('0xb')](_0xd87d('0xc'),attributes,{'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]});};