Built motion from commit 3e059bc2.|2.5.32
[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 _0x8a0c=['moment','bluebird','request-promise','path','exports','define','CannedAnswer','utf8mb4','utf8mb4_unicode_ci','../../config/logger','api'];(function(_0xe8e91,_0x401ca3){var _0x1258fe=function(_0x45ac8a){while(--_0x45ac8a){_0xe8e91['push'](_0xe8e91['shift']());}};_0x1258fe(++_0x401ca3);}(_0x8a0c,0x132));var _0xc8a0=function(_0x13d07a,_0x41efc3){_0x13d07a=_0x13d07a-0x0;var _0x5ee0ee=_0x8a0c[_0x13d07a];return _0x5ee0ee;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc8a0('0x0'))(_0xc8a0('0x1'));var moment=require(_0xc8a0('0x2'));var BPromise=require(_0xc8a0('0x3'));var rp=require(_0xc8a0('0x4'));var fs=require('fs');var path=require(_0xc8a0('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./cannedAnswer.attributes');module[_0xc8a0('0x6')]=function(_0x1bae04,_0xb37c6e){return _0x1bae04[_0xc8a0('0x7')](_0xc8a0('0x8'),attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xc8a0('0x9'),'collate':_0xc8a0('0xa')});};