d8d26453b7186448ec26b4e91d72a5635ec30674
[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 _0xc24e=['request-promise','path','rimraf','../../config/environment','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','lodash','util','api','bluebird'];(function(_0x9fb081,_0x48f480){var _0x43f8b0=function(_0x418570){while(--_0x418570){_0x9fb081['push'](_0x9fb081['shift']());}};_0x43f8b0(++_0x48f480);}(_0xc24e,0x146));var _0xec24=function(_0x24a2f6,_0xe4b682){_0x24a2f6=_0x24a2f6-0x0;var _0x37da8b=_0xc24e[_0x24a2f6];return _0x37da8b;};'use strict';var _=require(_0xec24('0x0'));var util=require(_0xec24('0x1'));var logger=require('../../config/logger')(_0xec24('0x2'));var moment=require('moment');var BPromise=require(_0xec24('0x3'));var rp=require(_0xec24('0x4'));var fs=require('fs');var path=require(_0xec24('0x5'));var rimraf=require(_0xec24('0x6'));var config=require(_0xec24('0x7'));var attributes=require('./cannedAnswer.attributes');module['exports']=function(_0x442079,_0x22c8b7){return _0x442079['define']('CannedAnswer',attributes,{'tableName':_0xec24('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xec24('0x9'),'collate':_0xec24('0xa')});};