Built motion from commit (unavailable).|2.5.30
[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 _0x2333=['utf8mb4','utf8mb4_unicode_ci','lodash','util','moment','bluebird','path','rimraf','../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0x2333,0x11a));var _0x3233=function(_0x1871d6,_0x3c419d){_0x1871d6=_0x1871d6-0x0;var _0x34d196=_0x2333[_0x1871d6];return _0x34d196;};'use strict';var _=require(_0x3233('0x0'));var util=require(_0x3233('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x3233('0x2'));var BPromise=require(_0x3233('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3233('0x4'));var rimraf=require(_0x3233('0x5'));var config=require(_0x3233('0x6'));var attributes=require(_0x3233('0x7'));module[_0x3233('0x8')]=function(_0x31452c,_0x4120f6){return _0x31452c[_0x3233('0x9')](_0x3233('0xa'),attributes,{'tableName':_0x3233('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3233('0xc'),'collate':_0x3233('0xd')});};