Built motion from commit 85328c08.|2.5.50
[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 _0x6d1d=['define','tools_canned_answers','utf8mb4','util','../../config/logger','api','request-promise','path','rimraf','./cannedAnswer.attributes','exports'];(function(_0x2c4d46,_0x2bbf7f){var _0x2573dd=function(_0x570669){while(--_0x570669){_0x2c4d46['push'](_0x2c4d46['shift']());}};_0x2573dd(++_0x2bbf7f);}(_0x6d1d,0x19a));var _0xd6d1=function(_0x168ad0,_0x45e98b){_0x168ad0=_0x168ad0-0x0;var _0x3596fc=_0x6d1d[_0x168ad0];return _0x3596fc;};'use strict';var _=require('lodash');var util=require(_0xd6d1('0x0'));var logger=require(_0xd6d1('0x1'))(_0xd6d1('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xd6d1('0x3'));var fs=require('fs');var path=require(_0xd6d1('0x4'));var rimraf=require(_0xd6d1('0x5'));var config=require('../../config/environment');var attributes=require(_0xd6d1('0x6'));module[_0xd6d1('0x7')]=function(_0x56dd60,_0x338bd9){return _0x56dd60[_0xd6d1('0x8')]('CannedAnswer',attributes,{'tableName':_0xd6d1('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xd6d1('0xa'),'collate':'utf8mb4_unicode_ci'});};