adc04fb3908f1822a4f74dae202924808b5165bb
[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 _0x94fd=['bluebird','request-promise','path','rimraf','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','lodash','../../config/logger','api','moment'];(function(_0x123f6b,_0x52a359){var _0x4d8666=function(_0x8b74b3){while(--_0x8b74b3){_0x123f6b['push'](_0x123f6b['shift']());}};_0x4d8666(++_0x52a359);}(_0x94fd,0x14c));var _0xd94f=function(_0x3e77ac,_0x28d7d2){_0x3e77ac=_0x3e77ac-0x0;var _0x33306d=_0x94fd[_0x3e77ac];return _0x33306d;};'use strict';var _=require(_0xd94f('0x0'));var util=require('util');var logger=require(_0xd94f('0x1'))(_0xd94f('0x2'));var moment=require(_0xd94f('0x3'));var BPromise=require(_0xd94f('0x4'));var rp=require(_0xd94f('0x5'));var fs=require('fs');var path=require(_0xd94f('0x6'));var rimraf=require(_0xd94f('0x7'));var config=require('../../config/environment');var attributes=require(_0xd94f('0x8'));module[_0xd94f('0x9')]=function(_0x272a59,_0x567dff){return _0x272a59[_0xd94f('0xa')](_0xd94f('0xb'),attributes,{'tableName':_0xd94f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xd94f('0xd'),'collate':'utf8mb4_unicode_ci'});};