Built motion from commit 3c2ce842.|2.6.31
[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 _0xda1e=['rimraf','exports','define','ChatWebsite','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x46a3ff,_0x470b9a){var _0x404bc2=function(_0x20f25f){while(--_0x20f25f){_0x46a3ff['push'](_0x46a3ff['shift']());}};_0x404bc2(++_0x470b9a);}(_0xda1e,0x130));var _0xeda1=function(_0x38ced4,_0x24263f){_0x38ced4=_0x38ced4-0x0;var _0x547c07=_0xda1e[_0x38ced4];return _0x547c07;};'use strict';var _=require(_0xeda1('0x0'));var util=require(_0xeda1('0x1'));var logger=require(_0xeda1('0x2'))(_0xeda1('0x3'));var moment=require(_0xeda1('0x4'));var BPromise=require('bluebird');var rp=require(_0xeda1('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xeda1('0x6'));var config=require('../../config/environment');var attributes=require('./chatWebsite.attributes');module[_0xeda1('0x7')]=function(_0x14f1f4,_0x5a1276){return _0x14f1f4[_0xeda1('0x8')](_0xeda1('0x9'),attributes,{'tableName':'chat_websites','paranoid':![],'indexes':[],'timestamps':!![]});};