b3dc18ce4d918c91f0a3c37d0ed25629f5a45537
[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 _0x13b5=['../../config/environment','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','util','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x3ff085,_0x27c92e){var _0x2b68c3=function(_0x37811e){while(--_0x37811e){_0x3ff085['push'](_0x3ff085['shift']());}};_0x2b68c3(++_0x27c92e);}(_0x13b5,0x69));var _0x513b=function(_0x32f7d7,_0x54231b){_0x32f7d7=_0x32f7d7-0x0;var _0x133d09=_0x13b5[_0x32f7d7];return _0x133d09;};'use strict';var _=require('lodash');var util=require(_0x513b('0x0'));var logger=require('../../config/logger')(_0x513b('0x1'));var moment=require(_0x513b('0x2'));var BPromise=require(_0x513b('0x3'));var rp=require(_0x513b('0x4'));var fs=require('fs');var path=require(_0x513b('0x5'));var rimraf=require(_0x513b('0x6'));var config=require(_0x513b('0x7'));var attributes=require('./cannedAnswer.attributes');module[_0x513b('0x8')]=function(_0x28fc69,_0x27f9a7){return _0x28fc69[_0x513b('0x9')](_0x513b('0xa'),attributes,{'tableName':_0x513b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x513b('0xc'),'collate':_0x513b('0xd')});};