88f19998cc559c17a161259ff9ca1131f520f79a
[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 _0x7e03=['api','moment','path','rimraf','../../config/environment','./chatWebsite.attributes','exports','define','ChatWebsite','chat_websites','lodash','util','../../config/logger'];(function(_0x90653a,_0x20e4a2){var _0x55b77c=function(_0x23e3a8){while(--_0x23e3a8){_0x90653a['push'](_0x90653a['shift']());}};_0x55b77c(++_0x20e4a2);}(_0x7e03,0xa6));var _0x37e0=function(_0x2818cc,_0x1e6de9){_0x2818cc=_0x2818cc-0x0;var _0x498eab=_0x7e03[_0x2818cc];return _0x498eab;};'use strict';var _=require(_0x37e0('0x0'));var util=require(_0x37e0('0x1'));var logger=require(_0x37e0('0x2'))(_0x37e0('0x3'));var moment=require(_0x37e0('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x37e0('0x5'));var rimraf=require(_0x37e0('0x6'));var config=require(_0x37e0('0x7'));var attributes=require(_0x37e0('0x8'));module[_0x37e0('0x9')]=function(_0x394f30,_0x41d1eb){return _0x394f30[_0x37e0('0xa')](_0x37e0('0xb'),attributes,{'tableName':_0x37e0('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};