Built motion from commit da617fac.|2.6.6
[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 _0xfe6a=['lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./chatApplication.attributes','exports','define','ChatApplication','utf8mb4'];(function(_0x380774,_0x2424bf){var _0x1e0bac=function(_0x46a6ec){while(--_0x46a6ec){_0x380774['push'](_0x380774['shift']());}};_0x1e0bac(++_0x2424bf);}(_0xfe6a,0x16c));var _0xafe6=function(_0x3fe8c1,_0x50a69a){_0x3fe8c1=_0x3fe8c1-0x0;var _0x25eced=_0xfe6a[_0x3fe8c1];return _0x25eced;};'use strict';var _=require(_0xafe6('0x0'));var util=require(_0xafe6('0x1'));var logger=require(_0xafe6('0x2'))('api');var moment=require(_0xafe6('0x3'));var BPromise=require(_0xafe6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xafe6('0x5'));var rimraf=require(_0xafe6('0x6'));var config=require(_0xafe6('0x7'));var attributes=require(_0xafe6('0x8'));module[_0xafe6('0x9')]=function(_0x14c224,_0x27d937){return _0x14c224[_0xafe6('0xa')](_0xafe6('0xb'),attributes,{'tableName':'chat_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xafe6('0xc'),'collate':'utf8mb4_unicode_ci'});};