Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0x7e74=['bluebird','request-promise','path','rimraf','./openchannelApplication.attributes','define','OpenchannelApplication','openchannel_applications','utf8mb4','../../config/logger'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x7e74,0x1e9));var _0x47e7=function(_0x1daeaa,_0x102077){_0x1daeaa=_0x1daeaa-0x0;var _0x21e49e=_0x7e74[_0x1daeaa];return _0x21e49e;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x47e7('0x0'))('api');var moment=require('moment');var BPromise=require(_0x47e7('0x1'));var rp=require(_0x47e7('0x2'));var fs=require('fs');var path=require(_0x47e7('0x3'));var rimraf=require(_0x47e7('0x4'));var config=require('../../config/environment');var attributes=require(_0x47e7('0x5'));module['exports']=function(_0x1a6af4,_0x6859ef){return _0x1a6af4[_0x47e7('0x6')](_0x47e7('0x7'),attributes,{'tableName':_0x47e7('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x47e7('0x9'),'collate':'utf8mb4_unicode_ci'});};