Built motion from commit 0900f080.|2.5.45
[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 _0xa3e0=['chat_websites','lodash','util','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./chatWebsite.attributes','exports','define','ChatWebsite'];(function(_0x3b22ee,_0x53cb84){var _0x5e712e=function(_0x3294bd){while(--_0x3294bd){_0x3b22ee['push'](_0x3b22ee['shift']());}};_0x5e712e(++_0x53cb84);}(_0xa3e0,0xeb));var _0x0a3e=function(_0x184a31,_0x6b315c){_0x184a31=_0x184a31-0x0;var _0x36db99=_0xa3e0[_0x184a31];return _0x36db99;};'use strict';var _=require(_0x0a3e('0x0'));var util=require(_0x0a3e('0x1'));var logger=require(_0x0a3e('0x2'))(_0x0a3e('0x3'));var moment=require('moment');var BPromise=require(_0x0a3e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0a3e('0x5'));var rimraf=require(_0x0a3e('0x6'));var config=require(_0x0a3e('0x7'));var attributes=require(_0x0a3e('0x8'));module[_0x0a3e('0x9')]=function(_0x21f41d,_0x40f2d7){return _0x21f41d[_0x0a3e('0xa')](_0x0a3e('0xb'),attributes,{'tableName':_0x0a3e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};