ec052f9c4fcab574ef656885ed86c267e0f39084
[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 _0x6309=['../../config/environment','./chatWebsite.attributes','exports','ChatWebsite','chat_websites','lodash','util','../../config/logger','api','path','rimraf'];(function(_0x9ca828,_0x47a7d9){var _0x223f00=function(_0x4b7e4f){while(--_0x4b7e4f){_0x9ca828['push'](_0x9ca828['shift']());}};_0x223f00(++_0x47a7d9);}(_0x6309,0xe1));var _0x9630=function(_0x41d432,_0x20e878){_0x41d432=_0x41d432-0x0;var _0x1650f9=_0x6309[_0x41d432];return _0x1650f9;};'use strict';var _=require(_0x9630('0x0'));var util=require(_0x9630('0x1'));var logger=require(_0x9630('0x2'))(_0x9630('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9630('0x4'));var rimraf=require(_0x9630('0x5'));var config=require(_0x9630('0x6'));var attributes=require(_0x9630('0x7'));module[_0x9630('0x8')]=function(_0x465e69,_0x109115){return _0x465e69['define'](_0x9630('0x9'),attributes,{'tableName':_0x9630('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};