9ff8113127a78f29df31e72bd00730855fbf3788
[motion2.git] / server / api / chatApplication / chatApplication.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 _0xcd63=['path','./chatApplication.attributes','exports','define','ChatApplication','chat_applications','utf8mb4','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0xd5709b,_0x101823){var _0x3dc484=function(_0x28a409){while(--_0x28a409){_0xd5709b['push'](_0xd5709b['shift']());}};_0x3dc484(++_0x101823);}(_0xcd63,0xe4));var _0x3cd6=function(_0x51b9df,_0x6bbd74){_0x51b9df=_0x51b9df-0x0;var _0xf271f=_0xcd63[_0x51b9df];return _0xf271f;};'use strict';var _=require(_0x3cd6('0x0'));var util=require(_0x3cd6('0x1'));var logger=require(_0x3cd6('0x2'))(_0x3cd6('0x3'));var moment=require(_0x3cd6('0x4'));var BPromise=require('bluebird');var rp=require(_0x3cd6('0x5'));var fs=require('fs');var path=require(_0x3cd6('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x3cd6('0x7'));module[_0x3cd6('0x8')]=function(_0x17974e,_0x5d0192){return _0x17974e[_0x3cd6('0x9')](_0x3cd6('0xa'),attributes,{'tableName':_0x3cd6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3cd6('0xc'),'collate':'utf8mb4_unicode_ci'});};