af795c8dec9b58ef7488f386563a10c70f801d82
[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 _0x16eb=['util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','ChatWebsite','chat_websites','lodash'];(function(_0x2b2e37,_0x1a8273){var _0x2a62ff=function(_0x36df7b){while(--_0x36df7b){_0x2b2e37['push'](_0x2b2e37['shift']());}};_0x2a62ff(++_0x1a8273);}(_0x16eb,0x110));var _0xb16e=function(_0x55cd92,_0x2af5b1){_0x55cd92=_0x55cd92-0x0;var _0x102822=_0x16eb[_0x55cd92];return _0x102822;};'use strict';var _=require(_0xb16e('0x0'));var util=require(_0xb16e('0x1'));var logger=require(_0xb16e('0x2'))(_0xb16e('0x3'));var moment=require('moment');var BPromise=require(_0xb16e('0x4'));var rp=require(_0xb16e('0x5'));var fs=require('fs');var path=require(_0xb16e('0x6'));var rimraf=require(_0xb16e('0x7'));var config=require(_0xb16e('0x8'));var attributes=require('./chatWebsite.attributes');module[_0xb16e('0x9')]=function(_0x554ac0,_0x31e10d){return _0x554ac0[_0xb16e('0xa')](_0xb16e('0xb'),attributes,{'tableName':_0xb16e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};