972bde8bf6b6765ca0900c5d0c9eea8208505f9f
[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 _0x6b1a=['lodash','bluebird','rimraf','../../config/environment','./chatWebsite.attributes','exports','define','ChatWebsite','chat_websites'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x6b1a,0x1dd));var _0xa6b1=function(_0x4ce398,_0x117377){_0x4ce398=_0x4ce398-0x0;var _0x12ca83=_0x6b1a[_0x4ce398];return _0x12ca83;};'use strict';var _=require(_0xa6b1('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xa6b1('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xa6b1('0x2'));var config=require(_0xa6b1('0x3'));var attributes=require(_0xa6b1('0x4'));module[_0xa6b1('0x5')]=function(_0x3adeb9,_0x5e2809){return _0x3adeb9[_0xa6b1('0x6')](_0xa6b1('0x7'),attributes,{'tableName':_0xa6b1('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};