Built motion from commit 19a84241.|2.5.34
[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 _0x5af7=['lodash','../../config/logger','bluebird','path','rimraf','../../config/environment','exports','define','ChatApplication','chat_applications','utf8mb4','utf8mb4_unicode_ci'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x5af7,0x9c));var _0x75af=function(_0x2bcddb,_0x3eaf37){_0x2bcddb=_0x2bcddb-0x0;var _0x12a9e8=_0x5af7[_0x2bcddb];return _0x12a9e8;};'use strict';var _=require(_0x75af('0x0'));var util=require('util');var logger=require(_0x75af('0x1'))('api');var moment=require('moment');var BPromise=require(_0x75af('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x75af('0x3'));var rimraf=require(_0x75af('0x4'));var config=require(_0x75af('0x5'));var attributes=require('./chatApplication.attributes');module[_0x75af('0x6')]=function(_0x4351e9,_0x3354a0){return _0x4351e9[_0x75af('0x7')](_0x75af('0x8'),attributes,{'tableName':_0x75af('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x75af('0xa'),'collate':_0x75af('0xb')});};