2d147a63d7017ee8be8e68f74e2fdf3562b46b8f
[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 _0xdafd=['exports','utf8mb4','lodash','util','../../config/logger','moment','bluebird','path','../../config/environment'];(function(_0x39bc44,_0x1d4373){var _0x2916d8=function(_0x1767ac){while(--_0x1767ac){_0x39bc44['push'](_0x39bc44['shift']());}};_0x2916d8(++_0x1d4373);}(_0xdafd,0x146));var _0xddaf=function(_0x5df885,_0x336e62){_0x5df885=_0x5df885-0x0;var _0xb858a7=_0xdafd[_0x5df885];return _0xb858a7;};'use strict';var _=require(_0xddaf('0x0'));var util=require(_0xddaf('0x1'));var logger=require(_0xddaf('0x2'))('api');var moment=require(_0xddaf('0x3'));var BPromise=require(_0xddaf('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xddaf('0x5'));var rimraf=require('rimraf');var config=require(_0xddaf('0x6'));var attributes=require('./cannedAnswer.attributes');module[_0xddaf('0x7')]=function(_0x1cbe9c,_0x33cadd){return _0x1cbe9c['define']('CannedAnswer',attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xddaf('0x8'),'collate':'utf8mb4_unicode_ci'});};