472cd9204f8988e3876f06e52ee196b87f08d026
[motion2.git] / server / api / setting / setting.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 _0x4e11=['exports','settings','lodash','util','../../config/logger','moment','bluebird','request-promise','../../config/environment'];(function(_0x2d1748,_0x25bfea){var _0x12ab36=function(_0x512774){while(--_0x512774){_0x2d1748['push'](_0x2d1748['shift']());}};_0x12ab36(++_0x25bfea);}(_0x4e11,0x1e8));var _0x14e1=function(_0x199b64,_0x5d1120){_0x199b64=_0x199b64-0x0;var _0x42b220=_0x4e11[_0x199b64];return _0x42b220;};'use strict';var _=require(_0x14e1('0x0'));var util=require(_0x14e1('0x1'));var logger=require(_0x14e1('0x2'))('api');var moment=require(_0x14e1('0x3'));var BPromise=require(_0x14e1('0x4'));var rp=require(_0x14e1('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x14e1('0x6'));var attributes=require('./setting.attributes');module[_0x14e1('0x7')]=function(_0x2a177a,_0x12e859){return _0x2a177a['define']('Setting',attributes,{'tableName':_0x14e1('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};