Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0x71d6=['../../config/environment','exports','tools_canned_answers','utf8mb4','lodash','util','api','moment','request-promise','path','rimraf'];(function(_0x194785,_0x3af834){var _0x5804a6=function(_0x543dbb){while(--_0x543dbb){_0x194785['push'](_0x194785['shift']());}};_0x5804a6(++_0x3af834);}(_0x71d6,0x7d));var _0x671d=function(_0xcf18d7,_0x2ef3e0){_0xcf18d7=_0xcf18d7-0x0;var _0x553faf=_0x71d6[_0xcf18d7];return _0x553faf;};'use strict';var _=require(_0x671d('0x0'));var util=require(_0x671d('0x1'));var logger=require('../../config/logger')(_0x671d('0x2'));var moment=require(_0x671d('0x3'));var BPromise=require('bluebird');var rp=require(_0x671d('0x4'));var fs=require('fs');var path=require(_0x671d('0x5'));var rimraf=require(_0x671d('0x6'));var config=require(_0x671d('0x7'));var attributes=require('./cannedAnswer.attributes');module[_0x671d('0x8')]=function(_0xc1d34d,_0x3c27c4){return _0xc1d34d['define']('CannedAnswer',attributes,{'tableName':_0x671d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x671d('0xa'),'collate':'utf8mb4_unicode_ci'});};