Built motion from commit ffdca78c.|2.6.24
[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 _0xf1c9=['rimraf','../../config/environment','ChatApplication','chat_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x5a6251,_0x3ca035){var _0x8fecab=function(_0x16ab47){while(--_0x16ab47){_0x5a6251['push'](_0x5a6251['shift']());}};_0x8fecab(++_0x3ca035);}(_0xf1c9,0xa0));var _0x9f1c=function(_0x53dc6d,_0x456dc6){_0x53dc6d=_0x53dc6d-0x0;var _0x5051f3=_0xf1c9[_0x53dc6d];return _0x5051f3;};'use strict';var _=require(_0x9f1c('0x0'));var util=require(_0x9f1c('0x1'));var logger=require(_0x9f1c('0x2'))(_0x9f1c('0x3'));var moment=require(_0x9f1c('0x4'));var BPromise=require(_0x9f1c('0x5'));var rp=require(_0x9f1c('0x6'));var fs=require('fs');var path=require(_0x9f1c('0x7'));var rimraf=require(_0x9f1c('0x8'));var config=require(_0x9f1c('0x9'));var attributes=require('./chatApplication.attributes');module['exports']=function(_0x57086d,_0x109722){return _0x57086d['define'](_0x9f1c('0xa'),attributes,{'tableName':_0x9f1c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x9f1c('0xc'),'collate':_0x9f1c('0xd')});};