e129dfe8fedf2cdccaa74e2c3ce5c0465701ad05
[motion2.git] / server / api / chatWebsite / chatWebsite.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 _0x04fe=['rimraf','./chatWebsite.attributes','exports','define','ChatWebsite','chat_websites','util','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x3788a0,_0x48aeeb){var _0x5169a2=function(_0x231160){while(--_0x231160){_0x3788a0['push'](_0x3788a0['shift']());}};_0x5169a2(++_0x48aeeb);}(_0x04fe,0x1b6));var _0xe04f=function(_0x385dbf,_0x3109c9){_0x385dbf=_0x385dbf-0x0;var _0x14d625=_0x04fe[_0x385dbf];return _0x14d625;};'use strict';var _=require('lodash');var util=require(_0xe04f('0x0'));var logger=require(_0xe04f('0x1'))('api');var moment=require(_0xe04f('0x2'));var BPromise=require(_0xe04f('0x3'));var rp=require(_0xe04f('0x4'));var fs=require('fs');var path=require(_0xe04f('0x5'));var rimraf=require(_0xe04f('0x6'));var config=require('../../config/environment');var attributes=require(_0xe04f('0x7'));module[_0xe04f('0x8')]=function(_0x1c058b,_0x2d3854){return _0x1c058b[_0xe04f('0x9')](_0xe04f('0xa'),attributes,{'tableName':_0xe04f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};